ScriptEditorBase
Base editor for editing scripts in the ScriptEditor
.
class ScriptEditorBase
Base editor for editing scripts in the ScriptEditor
. This does not include documentation items.
This object emits the following signals:
Superclasses
class VBoxContainer
A container that arranges its child controls vertically.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Types
class Signal1
Signal support.
class Signal2
Signal support.
class Signal3
Signal support.
class Signal4
Signal support.
class Signal5
Signal support.
class Signal6
Signal support.
class Signal7
Signal support.
Type members
Instance members
var editedScriptChanged: SimpleSignal
Emitted after script validation.
var goToHelp: Signal4
Emitted when the user requests a specific documentation page.
var goToMethod: Signal7
Emitted when the user requests to view a specific method of a script, similar to [signal request_open_script_at_line].
var nameChanged: SimpleSignal
Emitted after script validation or when the edited resource has changed.
var replaceInFilesRequested: Signal6
Emitted when the user request to find and replace text in the file system.
var requestHelp: Signal1
Emitted when the user requests contextual help.
var requestOpenScriptAtLine: Signal2
Emitted when the user requests to view a specific line of a script, similar to [signal go_to_method].
var requestSaveHistory: SimpleSignal
Emitted when the user contextual goto and the item is in the same script.
var requestSavePreviousState: Signal3
Emitted when the user changes current script or moves caret by 10 or more columns within the same script.
var searchInFilesRequested: Signal5
Emitted when the user request to search text in the file system.
func addSyntaxHighlighter(EditorSyntaxHighlighter?
) Adds a
EditorSyntaxHighlighter
to the open script.func getBaseEditor(
) -> Control? Returns the underlying
Control
used for editing scripts. For text scripts, this is aCodeEdit
.