Signal6
Signal support.
ScriptEditorBase.swift:543class Signal6
Use the connect(flags:_:)
method to connect to the signal on the container object, and disconnect(_:)
to drop the connection.
You can also await the emitted
property for waiting for a single emission of the signal.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (19) members.
Types
class Signal1
Signal support.
class Signal2
Signal support.
class Signal3
Signal support.
class Signal4
Signal support.
class Signal5
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
.
Citizens in SwiftGodot
Instance members
var emitted: Void
You can await this property to wait for the signal to be emitted once
func connect(flags: Object.ConnectFlags, @escaping (_ text: String) -> ()
) -> Object Connects the signal to the specified callback
func disconnect(Object
) Disconnects a signal that was previously connected, the return value from calling
connect(flags:_:)