Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
getOpenScriptEditors
Returns an array with all ScriptEditorBase
objects which are currently open in editor.
final func getOpenScriptEditors() -> ObjectCollection<ScriptEditorBase>
Other members in extension
Types
class Signal1
Signal support.
class Signal2
Signal support.
Type members
Instance members
var editorScriptChanged: Signal1
Emitted when user changed active script. Argument is a freshly activated
Script
.var scriptClose: Signal2
Emitted when editor is about to close the active script. Argument is a
Script
that is going to be closed.func getCurrentEditor(
) -> ScriptEditorBase? Returns the
ScriptEditorBase
object that the user is currently editing.func getCurrentScript(
) -> Script? Returns a
Script
that is currently active in editor.func getOpenScripts(
) -> ObjectCollection<Script> Returns an array with all
Script
objects which are currently open in editor.func gotoLine(lineNumber: Int32
) Goes to the specified line in the current script.
func openScriptCreateDialog(baseName: String, basePath: String
) Opens the script create dialog. The script will extend
baseName
. The file extension can be omitted frombasePath
. It will be added based on the selected scripting language.func registerSyntaxHighlighter(EditorSyntaxHighlighter?
) Registers the
EditorSyntaxHighlighter
to the editor, theEditorSyntaxHighlighter
will be available on all open scripts.func unregisterSyntaxHighlighter(EditorSyntaxHighlighter?
) Unregisters the
EditorSyntaxHighlighter
from the editor.