2018-06-30 05:08:28 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-03-16 23:01:02 +01:00
<class name= "ScriptCreateDialog" inherits= "ConfirmationDialog" version= "3.5" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2018-06-30 05:08:28 +02:00
<brief_description >
The Editor's popup dialog for creating new [Script] files.
</brief_description>
<description >
2019-03-29 23:37:35 +01:00
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 [method Popup.popup] methods.
2018-06-30 05:08:28 +02:00
[codeblock]
func _ready():
2019-06-22 01:04:47 +02: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
2018-12-14 09:37:19 +01:00
dialog.popup_centered()
2018-06-30 05:08:28 +02:00
[/codeblock]
</description>
<tutorials >
</tutorials>
<methods >
<method name= "config" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "inherits" type= "String" />
<argument index= "1" name= "path" type= "String" />
<argument index= "2" name= "built_in_enabled" type= "bool" default= "true" />
<argument index= "3" name= "load_enabled" type= "bool" default= "true" />
2018-06-30 05:08:28 +02:00
<description >
Prefills required fields to configure the ScriptCreateDialog for use.
</description>
</method>
</methods>
2019-09-03 12:44:58 +02:00
<members >
2021-12-02 21:15:17 +01:00
<member name= "dialog_hide_on_ok" type= "bool" setter= "set_hide_on_ok" getter= "get_hide_on_ok" overrides= "AcceptDialog" default= "false" />
<member name= "margin_bottom" type= "float" setter= "set_margin" getter= "get_margin" overrides= "Control" default= "258.0" />
<member name= "margin_right" type= "float" setter= "set_margin" getter= "get_margin" overrides= "Control" default= "366.0" />
<member name= "rect_size" type= "Vector2" setter= "_set_size" getter= "get_size" overrides= "Control" default= "Vector2( 366, 258 )" />
<member name= "window_title" type= "String" setter= "set_title" getter= "get_title" overrides= "WindowDialog" default= ""Attach Node Script"" />
2019-09-03 12:44:58 +02:00
</members>
2018-06-30 05:08:28 +02:00
<signals >
<signal name= "script_created" >
2021-07-30 15:28:05 +02:00
<argument index= "0" name= "script" type= "Script" />
2018-06-30 05:08:28 +02:00
<description >
Emitted when the user clicks the OK button.
</description>
</signal>
</signals>
<constants >
</constants>
</class>