ScriptCreateDialog
Reckfell editor's popup dialog for creating new Script files.
Reckfell editor's popup dialog for creating new Script files.
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.
public override void _Ready()
{
var dialog = new ScriptCreateDialog();
dialog.Config("Entity", "asset://NewNode.cs"); // For in-engine types.
dialog.Config("\"asset://BaseNode.cs\"", "asset://DerivedNode.cs"); // For script types.
dialog.PopupCentered();
}Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
ScriptCreateDialogConstructor
public ScriptCreateDialog();Methods1
Configvoid
public void Config(string inherits, string path, bool builtInEnabled = true, bool loadEnabled = true);Prefills required fields to configure the ScriptCreateDialog for use.
| Name | Type | Default |
|---|---|---|
inherits | string | — |
path | string | — |
builtInEnabled | bool | true |
loadEnabled | bool | true |
Signals and events1
ScriptCreatedEvent
public event ScriptCreateDialog.ScriptCreatedEventHandler ScriptCreated;Emitted when the user clicks the OK button.
| Name | Type | Default |
|---|---|---|
script | Script | — |
Reckfell Engine documentationBack to top ↑