blob: aa60ecb12b3eb080a7bcc9f70516de4731f48d09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<?xml version="1.0" encoding="UTF-8" ?>
<class name="ScriptCreateDialog" inherits="ConfirmationDialog" version="4.0">
<brief_description>
The Editor's popup dialog for creating new [Script] files.
</brief_description>
<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 [method Window.popup] methods.
[codeblock]
func _ready():
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()
[/codeblock]
</description>
<tutorials>
</tutorials>
<methods>
<method name="config">
<return type="void">
</return>
<argument index="0" name="inherits" type="String">
</argument>
<argument index="1" name="path" type="String">
</argument>
<argument index="2" name="built_in_enabled" type="bool" default="true">
</argument>
<argument index="3" name="load_enabled" type="bool" default="true">
</argument>
<description>
Prefills required fields to configure the ScriptCreateDialog for use.
</description>
</method>
</methods>
<members>
<member name="dialog_hide_on_ok" type="bool" setter="set_hide_on_ok" getter="get_hide_on_ok" override="true" default="false" />
<member name="title" type="String" setter="set_title" getter="get_title" override="true" default=""Attach Node Script"" />
</members>
<signals>
<signal name="script_created">
<argument index="0" name="script" type="Script">
</argument>
<description>
Emitted when the user clicks the OK button.
</description>
</signal>
</signals>
<constants>
</constants>
</class>
|