2018-06-30 03:08:28 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name= "ScriptCreateDialog" inherits= "ConfirmationDialog" category= "Core" version= "3.1" >
<brief_description >
The Editor's popup dialog for creating new [Script] files.
</brief_description>
<description >
2019-01-07 10:46:26 +00:00
The [code]ScriptCreateDialog[/code] 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 [method Popup.popup] methods.
2018-06-30 03:08:28 +00:00
[codeblock]
func _ready():
2018-12-14 08:37:19 +00:00
dialog.config("Node", "res://new_node.gd") # for in-engine types
dialog.config("\"res://base_node.gd\"", "res://derived_node.gd") # for script types
dialog.popup_centered()
2018-06-30 03:08:28 +00:00
[/codeblock]
</description>
<tutorials >
</tutorials>
<demos >
</demos>
<methods >
<method name= "config" >
<return type= "void" >
</return>
<argument index= "0" name= "inherits" type= "String" >
</argument>
<argument index= "1" name= "path" type= "String" >
</argument>
2018-10-07 13:52:07 +00:00
<argument index= "2" name= "built_in_enabled" type= "bool" default= "true" >
</argument>
2018-06-30 03:08:28 +00:00
<description >
Prefills required fields to configure the ScriptCreateDialog for use.
</description>
</method>
</methods>
<signals >
<signal name= "script_created" >
2018-08-31 19:12:35 +00:00
<argument index= "0" name= "script" type= "Script" >
2018-06-30 03:08:28 +00:00
</argument>
<description >
Emitted when the user clicks the OK button.
</description>
</signal>
</signals>
<constants >
</constants>
</class>