Documentation
¶
Overview ¶
Base editor for editing scripts in the ScriptEditor. This does not include documentation items.
Index ¶
- type Advanced
- type Any
- type Extension
- func (self *Extension[T]) AsBoxContainer() BoxContainer.Instance
- func (self *Extension[T]) AsCanvasItem() CanvasItem.Instance
- func (self *Extension[T]) AsContainer() Container.Instance
- func (self *Extension[T]) AsControl() Control.Instance
- func (self *Extension[T]) AsNode() Node.Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsScriptEditorBase() Instance
- func (self *Extension[T]) AsVBoxContainer() VBoxContainer.Instance
- type ID
- type Instance
- func (self Instance) AddSyntaxHighlighter(highlighter EditorSyntaxHighlighter.Instance)
- func (self Instance) AsBoxContainer() BoxContainer.Instance
- func (self Instance) AsCanvasItem() CanvasItem.Instance
- func (self Instance) AsContainer() Container.Instance
- func (self Instance) AsControl() Control.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsScriptEditorBase() Instance
- func (self Instance) AsVBoxContainer() VBoxContainer.Instance
- func (self Instance) GetBaseEditor() Control.Instance
- func (self Instance) ID() ID
- func (self Instance) OnEditedScriptChanged(cb func(), flags ...Signal.Flags)
- func (self Instance) OnGoToHelp(cb func(what string), flags ...Signal.Flags)
- func (self Instance) OnGoToMethod(cb func(script Object.Instance, method string), flags ...Signal.Flags)
- func (self Instance) OnNameChanged(cb func(), flags ...Signal.Flags)
- func (self Instance) OnReplaceInFilesRequested(cb func(text string), flags ...Signal.Flags)
- func (self Instance) OnRequestHelp(cb func(topic string), flags ...Signal.Flags)
- func (self Instance) OnRequestOpenScriptAtLine(cb func(script Object.Instance, line int), flags ...Signal.Flags)
- func (self Instance) OnRequestSaveHistory(cb func(), flags ...Signal.Flags)
- func (self Instance) OnRequestSavePreviousState(cb func(state map[any]any), flags ...Signal.Flags)
- func (self Instance) OnSearchInFilesRequested(cb func(text string), flags ...Signal.Flags)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) Virtual(name string) reflect.Value
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 Extension ¶
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 (*Extension[T]) AsScriptEditorBase ¶
func (*Extension[T]) AsVBoxContainer ¶
func (self *Extension[T]) AsVBoxContainer() VBoxContainer.Instance
type 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.
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 (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 (Instance) AsScriptEditorBase ¶
func (Instance) AsVBoxContainer ¶
func (self Instance) AsVBoxContainer() VBoxContainer.Instance
func (Instance) GetBaseEditor ¶
Returns the underlying Control used for editing scripts. For text scripts, this is a CodeEdit.
func (Instance) OnEditedScriptChanged ¶
Emitted after script validation.
func (Instance) OnGoToHelp ¶
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 ¶
Emitted after script validation or when the edited resource has changed.
func (Instance) OnReplaceInFilesRequested ¶
Emitted when the user request to find and replace text in the file system.
func (Instance) OnRequestHelp ¶
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 ¶
Emitted when the user contextual goto and the item is in the same script.
func (Instance) OnRequestSavePreviousState ¶
Emitted when the user changes current script or moves caret by 10 or more columns within the same script.
func (Instance) OnSearchInFilesRequested ¶
Emitted when the user request to search text in the file system.