1 [gd_scene load_steps=9 format=3 uid="uid://kdpp3mibml33"]
3 [ext_resource type="Script" path="res://addons/dialogic/Editor/Events/Fields/field_number.gd" id="1_0jdnn"]
4 [ext_resource type="Texture2D" uid="uid://dh1ycbmw8anqh" path="res://addons/dialogic/Editor/Images/Interactable/increment_icon.svg" id="3_v5cne"]
5 [ext_resource type="Texture2D" uid="uid://brjikovneb63n" path="res://addons/dialogic/Editor/Images/Interactable/decrement_icon.svg" id="4_ph52o"]
7 [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_sj3oj"]
8 content_margin_left = 3.0
9 content_margin_right = 1.0
11 [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_8yqsu"]
13 [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_smq50"]
14 content_margin_left = 2.0
15 content_margin_right = 1.0
17 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_increment"]
18 content_margin_left = 2.0
19 content_margin_top = 6.0
20 content_margin_right = 2.0
21 content_margin_bottom = 2.0
22 bg_color = Color(0.94, 0.94, 0.94, 0)
23 border_color = Color(0, 0, 0, 0)
25 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_decrement"]
26 content_margin_left = 2.0
27 content_margin_top = 2.0
28 content_margin_right = 2.0
29 content_margin_bottom = 6.0
30 bg_color = Color(0.94, 0.94, 0.94, 0)
31 border_color = Color(0, 0, 0, 0)
33 [node name="Field_Number" type="HBoxContainer"]
37 offset_right = -1102.0
38 offset_bottom = -617.0
41 theme_override_constants/separation = 0
42 script = ExtResource("1_0jdnn")
44 [node name="Value_Panel" type="PanelContainer" parent="."]
46 theme_type_variation = &"DialogicEventEdit"
48 [node name="Layout" type="HBoxContainer" parent="Value_Panel"]
50 theme_override_constants/separation = 0
52 [node name="Prefix" type="RichTextLabel" parent="Value_Panel/Layout"]
53 unique_name_in_owner = true
58 size_flags_horizontal = 0
59 size_flags_vertical = 4
61 mouse_default_cursor_shape = 1
62 theme_override_colors/default_color = Color(0.54099, 0.540991, 0.54099, 1)
63 theme_override_styles/focus = SubResource("StyleBoxEmpty_sj3oj")
64 theme_override_styles/normal = SubResource("StyleBoxEmpty_sj3oj")
70 shortcut_keys_enabled = false
71 drag_and_drop_selection_enabled = false
74 [node name="Value" type="LineEdit" parent="Value_Panel/Layout"]
75 unique_name_in_owner = true
77 size_flags_horizontal = 3
79 theme_override_constants/minimum_character_width = 0
80 theme_override_styles/normal = SubResource("StyleBoxEmpty_8yqsu")
81 theme_override_styles/focus = SubResource("StyleBoxEmpty_8yqsu")
82 theme_override_styles/read_only = SubResource("StyleBoxEmpty_8yqsu")
85 expand_to_text_length = true
86 virtual_keyboard_type = 3
88 [node name="Suffix" type="RichTextLabel" parent="Value_Panel/Layout"]
89 unique_name_in_owner = true
94 size_flags_horizontal = 8
95 size_flags_vertical = 4
96 mouse_default_cursor_shape = 1
97 theme_override_colors/default_color = Color(0.435192, 0.435192, 0.435192, 1)
98 theme_override_styles/focus = SubResource("StyleBoxEmpty_smq50")
99 theme_override_styles/normal = SubResource("StyleBoxEmpty_smq50")
100 bbcode_enabled = true
102 scroll_active = false
105 shortcut_keys_enabled = false
106 drag_and_drop_selection_enabled = false
109 [node name="Spin" type="VBoxContainer" parent="Value_Panel/Layout"]
110 unique_name_in_owner = true
112 theme_override_constants/separation = 0
115 [node name="Increment" type="Button" parent="Value_Panel/Layout/Spin"]
117 size_flags_vertical = 3
118 auto_translate = false
119 focus_neighbor_left = NodePath("../../Value")
120 focus_neighbor_top = NodePath(".")
121 focus_neighbor_bottom = NodePath("../Decrement")
122 theme_override_colors/icon_hover_color = Color(0.412738, 0.550094, 0.760917, 1)
123 theme_override_colors/icon_focus_color = Color(0.412738, 0.550094, 0.760917, 1)
124 theme_override_styles/normal = SubResource("StyleBoxFlat_increment")
125 theme_override_styles/hover = SubResource("StyleBoxFlat_increment")
126 theme_override_styles/pressed = SubResource("StyleBoxFlat_increment")
127 theme_override_styles/disabled = SubResource("StyleBoxFlat_increment")
128 theme_override_styles/focus = SubResource("StyleBoxFlat_increment")
129 icon = ExtResource("3_v5cne")
131 vertical_icon_alignment = 2
133 [node name="Decrement" type="Button" parent="Value_Panel/Layout/Spin"]
135 size_flags_vertical = 3
136 auto_translate = false
137 focus_neighbor_left = NodePath("../../Value")
138 focus_neighbor_top = NodePath("../Increment")
139 focus_neighbor_bottom = NodePath(".")
140 theme_override_colors/icon_hover_color = Color(0.412738, 0.550094, 0.760917, 1)
141 theme_override_colors/icon_focus_color = Color(0.412738, 0.550094, 0.760917, 1)
142 theme_override_styles/normal = SubResource("StyleBoxFlat_decrement")
143 theme_override_styles/hover = SubResource("StyleBoxFlat_decrement")
144 theme_override_styles/pressed = SubResource("StyleBoxFlat_decrement")
145 theme_override_styles/disabled = SubResource("StyleBoxFlat_decrement")
146 theme_override_styles/focus = SubResource("StyleBoxFlat_decrement")
147 icon = ExtResource("4_ph52o")
149 vertical_icon_alignment = 2
151 [connection signal="gui_input" from="Value_Panel/Layout/Prefix" to="." method="_on_sublabel_clicked"]
152 [connection signal="focus_entered" from="Value_Panel/Layout/Value" to="." method="_on_value_focus_entered"]
153 [connection signal="focus_exited" from="Value_Panel/Layout/Value" to="." method="_on_value_focus_exited"]
154 [connection signal="gui_input" from="Value_Panel/Layout/Value" to="." method="_on_gui_input"]
155 [connection signal="text_submitted" from="Value_Panel/Layout/Value" to="." method="_on_value_text_submitted"]
156 [connection signal="gui_input" from="Value_Panel/Layout/Suffix" to="." method="_on_sublabel_clicked"]
157 [connection signal="button_down" from="Value_Panel/Layout/Spin/Increment" to="." method="_on_increment_button_down" binds= [NodePath("%Spin/Increment")]]
158 [connection signal="gui_input" from="Value_Panel/Layout/Spin/Increment" to="." method="_on_gui_input"]
159 [connection signal="button_down" from="Value_Panel/Layout/Spin/Decrement" to="." method="_on_decrement_button_down" binds= [NodePath("%Spin/Decrement")]]
160 [connection signal="gui_input" from="Value_Panel/Layout/Spin/Decrement" to="." method="_on_gui_input"]