ScriptEditorBase

package
v0.0.0-...-357ca8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Base editor for editing scripts in the ScriptEditor. This does not include documentation items.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsScriptEditorBase() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension

func (*Extension[T]) AsBoxContainer

func (self *Extension[T]) AsBoxContainer() BoxContainer.Instance

func (*Extension[T]) AsCanvasItem

func (self *Extension[T]) AsCanvasItem() CanvasItem.Instance

func (*Extension[T]) AsContainer

func (self *Extension[T]) AsContainer() Container.Instance

func (*Extension[T]) AsControl

func (self *Extension[T]) AsControl() Control.Instance

func (*Extension[T]) AsNode

func (self *Extension[T]) AsNode() Node.Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsScriptEditorBase

func (self *Extension[T]) AsScriptEditorBase() Instance

func (*Extension[T]) AsVBoxContainer

func (self *Extension[T]) AsVBoxContainer() VBoxContainer.Instance

type ID

type ID Object.ID

ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

type Instance [1]gdclass.ScriptEditorBase

Instance of the class with convieniently typed arguments and results.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AddSyntaxHighlighter

func (self Instance) AddSyntaxHighlighter(highlighter EditorSyntaxHighlighter.Instance)

Adds an EditorSyntaxHighlighter to the open script.

func (Instance) AsBoxContainer

func (self Instance) AsBoxContainer() BoxContainer.Instance

func (Instance) AsCanvasItem

func (self Instance) AsCanvasItem() CanvasItem.Instance

func (Instance) AsContainer

func (self Instance) AsContainer() Container.Instance

func (Instance) AsControl

func (self Instance) AsControl() Control.Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsScriptEditorBase

func (self Instance) AsScriptEditorBase() Instance

func (Instance) AsVBoxContainer

func (self Instance) AsVBoxContainer() VBoxContainer.Instance

func (Instance) GetBaseEditor

func (self Instance) GetBaseEditor() Control.Instance

Returns the underlying Control used for editing scripts. For text scripts, this is a CodeEdit.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) OnEditedScriptChanged

func (self Instance) OnEditedScriptChanged(cb func(), flags ...Signal.Flags)

Emitted after script validation.

func (Instance) OnGoToHelp

func (self Instance) OnGoToHelp(cb func(what string), flags ...Signal.Flags)

Emitted when the user requests a specific documentation page.

func (Instance) OnGoToMethod

func (self Instance) OnGoToMethod(cb func(script Object.Instance, method string), flags ...Signal.Flags)

Emitted when the user requests to view a specific method of a script, similar to OnRequestOpenScriptAtLine.

func (Instance) OnNameChanged

func (self Instance) OnNameChanged(cb func(), flags ...Signal.Flags)

Emitted after script validation or when the edited resource has changed.

func (Instance) OnReplaceInFilesRequested

func (self Instance) OnReplaceInFilesRequested(cb func(text string), flags ...Signal.Flags)

Emitted when the user request to find and replace text in the file system.

func (Instance) OnRequestHelp

func (self Instance) OnRequestHelp(cb func(topic string), flags ...Signal.Flags)

Emitted when the user requests contextual help.

func (Instance) OnRequestOpenScriptAtLine

func (self Instance) OnRequestOpenScriptAtLine(cb func(script Object.Instance, line int), flags ...Signal.Flags)

Emitted when the user requests to view a specific line of a script, similar to OnGoToMethod.

func (Instance) OnRequestSaveHistory

func (self Instance) OnRequestSaveHistory(cb func(), flags ...Signal.Flags)

Emitted when the user contextual goto and the item is in the same script.

func (Instance) OnRequestSavePreviousState

func (self Instance) OnRequestSavePreviousState(cb func(state map[any]any), flags ...Signal.Flags)

Emitted when the user changes current script or moves caret by 10 or more columns within the same script.

func (Instance) OnSearchInFilesRequested

func (self Instance) OnSearchInFilesRequested(cb func(text string), flags ...Signal.Flags)

Emitted when the user request to search text in the file system.

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL