|
1 | | -[gd_scene load_steps=7 format=2] |
| 1 | +[gd_scene load_steps=6 format=2] |
2 | 2 |
|
3 | 3 | [ext_resource path="res://addons/dialogic/Images/Event Icons/Main Icons/wait-seconds.svg" type="Texture" id=1] |
4 | 4 | [ext_resource path="res://addons/dialogic/Editor/Events/WaitSeconds.gd" type="Script" id=2] |
5 | | -[ext_resource path="res://addons/dialogic/Editor/Events/Common/Spacer.tscn" type="PackedScene" id=3] |
6 | | -[ext_resource path="res://addons/dialogic/Editor/Events/Common/PieceExtraSettings.tscn" type="PackedScene" id=4] |
7 | | -[ext_resource path="res://addons/dialogic/Editor/Events/Common/SpinBoxPreventDnD.gd" type="Script" id=6] |
| 5 | +[ext_resource path="res://addons/dialogic/Editor/Events/Common/SecondsSelector.tscn" type="PackedScene" id=3] |
| 6 | +[ext_resource path="res://addons/dialogic/Editor/Events/Templates/EventTemplate.tscn" type="PackedScene" id=4] |
| 7 | +[ext_resource path="res://addons/dialogic/Editor/Events/styles/WaitSeconds.tres" type="StyleBox" id=5] |
8 | 8 |
|
9 | | -[sub_resource type="StyleBoxFlat" id=1] |
10 | | -content_margin_left = 16.0 |
11 | | -content_margin_right = 6.0 |
12 | | -content_margin_top = 6.0 |
13 | | -content_margin_bottom = 6.0 |
14 | | -bg_color = Color( 0.435294, 0.301961, 0.603922, 0.192157 ) |
15 | | -border_width_left = 2 |
16 | | -border_width_top = 2 |
17 | | -border_width_right = 2 |
18 | | -border_width_bottom = 2 |
19 | | -border_color = Color( 0.12549, 0.12549, 0.12549, 1 ) |
20 | | -corner_radius_top_left = 6 |
21 | | -corner_radius_top_right = 6 |
22 | | -corner_radius_bottom_right = 6 |
23 | | -corner_radius_bottom_left = 6 |
24 | | - |
25 | | -[node name="WaitSeconds" type="HBoxContainer"] |
26 | | -margin_right = 1004.0 |
27 | | -margin_bottom = 42.0 |
28 | | -size_flags_horizontal = 3 |
29 | | -size_flags_vertical = 9 |
| 9 | +[node name="EventTemplate" instance=ExtResource( 4 )] |
| 10 | +margin_bottom = 46.0 |
30 | 11 | script = ExtResource( 2 ) |
31 | | -__meta__ = { |
32 | | -"_edit_use_anchors_": false |
33 | | -} |
34 | | - |
35 | | -[node name="Indent" type="Control" parent="."] |
36 | | -visible = false |
37 | | -margin_bottom = 42.0 |
38 | | - |
39 | | -[node name="PanelContainer" type="PanelContainer" parent="."] |
40 | | -margin_right = 1004.0 |
41 | | -margin_bottom = 42.0 |
42 | | -mouse_filter = 1 |
43 | | -size_flags_horizontal = 3 |
44 | | -size_flags_vertical = 3 |
45 | | -custom_styles/panel = SubResource( 1 ) |
46 | | -__meta__ = { |
47 | | -"_edit_use_anchors_": false |
48 | | -} |
| 12 | +event_style = ExtResource( 5 ) |
| 13 | +event_icon = ExtResource( 1 ) |
| 14 | +event_name = "Wait" |
| 15 | +header_scene = ExtResource( 3 ) |
49 | 16 |
|
50 | | -[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"] |
51 | | -margin_left = 16.0 |
52 | | -margin_top = 6.0 |
53 | | -margin_right = 998.0 |
54 | | -margin_bottom = 36.0 |
55 | | -size_flags_horizontal = 3 |
| 17 | +[node name="PanelContainer" parent="." index="1"] |
| 18 | +custom_styles/panel = ExtResource( 5 ) |
56 | 19 |
|
57 | | -[node name="Header" type="HBoxContainer" parent="PanelContainer/VBoxContainer"] |
58 | | -margin_right = 982.0 |
59 | | -margin_bottom = 28.0 |
| 20 | +[node name="IconMarginContainer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="0"] |
| 21 | +margin_right = 37.0 |
60 | 22 |
|
61 | | -[node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer/Header"] |
62 | | -margin_right = 22.0 |
63 | | -margin_bottom = 28.0 |
| 23 | +[node name="IconTexture" parent="PanelContainer/MarginContainer/VBoxContainer/Header/IconMarginContainer" index="0"] |
| 24 | +margin_right = 32.0 |
64 | 25 | texture = ExtResource( 1 ) |
65 | | -stretch_mode = 6 |
66 | 26 |
|
67 | | -[node name="Title" type="Label" parent="PanelContainer/VBoxContainer/Header"] |
68 | | -margin_left = 26.0 |
69 | | -margin_top = 7.0 |
70 | | -margin_right = 75.0 |
71 | | -margin_bottom = 21.0 |
72 | | -text = " Wait " |
| 27 | +[node name="TitleHBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="1"] |
| 28 | +margin_left = 41.0 |
| 29 | +margin_right = 96.0 |
73 | 30 |
|
74 | | -[node name="SpinBox" type="SpinBox" parent="PanelContainer/VBoxContainer/Header"] |
75 | | -margin_left = 79.0 |
76 | | -margin_right = 153.0 |
77 | | -margin_bottom = 28.0 |
78 | | -min_value = 0.1 |
79 | | -step = 0.1 |
80 | | -value = 1.0 |
81 | | -allow_greater = true |
82 | | -align = 1 |
83 | | -script = ExtResource( 6 ) |
| 31 | +[node name="TitleMarginContainer" parent="PanelContainer/MarginContainer/VBoxContainer/Header/TitleHBoxContainer" index="1"] |
| 32 | +margin_right = 47.0 |
84 | 33 |
|
85 | | -[node name="Title2" type="Label" parent="PanelContainer/VBoxContainer/Header"] |
86 | | -margin_left = 157.0 |
87 | | -margin_top = 7.0 |
88 | | -margin_right = 218.0 |
89 | | -margin_bottom = 21.0 |
90 | | -text = " Seconds" |
| 34 | +[node name="TitleLabel" parent="PanelContainer/MarginContainer/VBoxContainer/Header/TitleHBoxContainer/TitleMarginContainer" index="0"] |
| 35 | +margin_right = 34.0 |
| 36 | +text = "Wait" |
91 | 37 |
|
92 | | -[node name="Preview" type="Label" parent="PanelContainer/VBoxContainer/Header"] |
93 | | -margin_left = 222.0 |
94 | | -margin_top = 7.0 |
95 | | -margin_right = 222.0 |
96 | | -margin_bottom = 21.0 |
97 | | -custom_colors/font_color = Color( 1, 1, 1, 0.513726 ) |
| 38 | +[node name="VSeparator2" parent="PanelContainer/MarginContainer/VBoxContainer/Header/TitleHBoxContainer" index="2"] |
| 39 | +margin_left = 51.0 |
| 40 | +margin_right = 55.0 |
98 | 41 |
|
99 | | -[node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 3 )] |
100 | | -margin_left = 226.0 |
101 | | -margin_right = 941.0 |
102 | | -margin_bottom = 28.0 |
| 42 | +[node name="Content" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="2"] |
| 43 | +margin_left = 100.0 |
| 44 | +margin_right = 249.0 |
103 | 45 |
|
104 | | -[node name="OptionButton" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 4 )] |
105 | | -margin_left = 945.0 |
106 | | -margin_right = 982.0 |
107 | | -margin_bottom = 28.0 |
108 | | -items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ] |
| 46 | +[node name="Spacer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="4"] |
| 47 | +margin_left = 253.0 |
109 | 48 |
|
110 | | -[connection signal="value_changed" from="PanelContainer/VBoxContainer/Header/SpinBox" to="." method="_on_SpinBox_value_changed"] |
| 49 | +[node name="OptionsControl" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="6"] |
| 50 | +items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", false, "Remove", null, 0, false, false, 3, 0, null, "", false ] |
0 commit comments