ScriptCreateDialog
Inherits: ConfirmationDialog < AcceptDialog < Window < Viewport < Actor < Object
Gobu editor’s popup dialog for creating new Script files.
Description
Section titled “Description”The ScriptCreateDialog creates script files according to a given template for a given scripting language. The standard use is to configure its fields prior to calling one of the Window.popup() methods.
fn _ready() void { dialog : ScriptCreateDialog = ScriptCreateDialog.new() dialog.config("Actor", "res://new_node.gro") # For in-engine types. dialog.popup_centered()}Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| bool | dialog_hide_on_ok | false |
| String | ok_button_text | "Create" |
| String | title | "Attach Actor Script" |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| void | config(inherits, path, built_in_enabled, load_enabled) |
Signals
Section titled “Signals”script_created
Section titled “script_created”script_created(script: Script)Emitted when the user clicks the OK button.
Property descriptions
Section titled “Property descriptions”dialog_hide_on_ok
Section titled “dialog_hide_on_ok”bool dialog_hide_on_ok = false
Setter/getter: set_hide_on_ok(), get_hide_on_ok()
No description yet.
ok_button_text
Section titled “ok_button_text”String ok_button_text = "Create"
Setter/getter: set_ok_button_text(), get_ok_button_text()
No description yet.
String title = "Attach Actor Script"
Setter/getter: set_title(), get_title()
No description yet.
Method descriptions
Section titled “Method descriptions”config
Section titled “config”void config(inherits: String, path: String, built_in_enabled: bool = true, load_enabled: bool = true)
Prefills required fields to configure the ScriptCreateDialog for use.