]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/Variable/variables_editor/variables_editor.tscn
Squashed commit of the following:
[wolf-seeking-sheep.git] / addons / dialogic / Modules / Variable / variables_editor / variables_editor.tscn
1 [gd_scene load_steps=10 format=3 uid="uid://6tdle4y5o03o"]
2
3 [ext_resource type="Script" uid="uid://dg7cebyjl2hsy" path="res://addons/dialogic/Modules/Variable/variables_editor/variables_editor.gd" id="2"]
4 [ext_resource type="Script" uid="uid://b3ewwrymngi85" path="res://addons/dialogic/Modules/Variable/variables_editor/variable_tree.gd" id="2_1i17i"]
5
6 [sub_resource type="Image" id="Image_1bhct"]
7 data = {
8 "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 93, 93, 41, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
9 "format": "RGBA8",
10 "height": 16,
11 "mipmaps": false,
12 "width": 16
13 }
14
15 [sub_resource type="ImageTexture" id="ImageTexture_sr7s6"]
16 image = SubResource("Image_1bhct")
17
18 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7aodm"]
19 content_margin_left = 2.0
20 content_margin_top = 0.0
21 content_margin_right = 2.0
22 content_margin_bottom = 0.0
23 bg_color = Color(0.44, 0.73, 0.98, 0.1)
24 border_width_left = 2
25 border_width_top = 2
26 border_width_right = 2
27 border_width_bottom = 2
28 border_color = Color(0.44, 0.73, 0.98, 1)
29 corner_radius_top_left = 3
30 corner_radius_top_right = 3
31 corner_radius_bottom_right = 3
32 corner_radius_bottom_left = 3
33 corner_detail = 3
34 anti_aliasing = false
35
36 [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_vn21i"]
37
38 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ffuxp"]
39 content_margin_bottom = 0.0
40 bg_color = Color(0.44, 0.73, 0.98, 0.1)
41 border_width_bottom = 2
42 border_color = Color(0.44, 0.73, 0.98, 1)
43 expand_margin_left = 4.0
44 expand_margin_top = 2.0
45 expand_margin_right = 4.0
46 expand_margin_bottom = 4.0
47 anti_aliasing = false
48
49 [sub_resource type="Theme" id="Theme_17j6i"]
50 Button/styles/hover = SubResource("StyleBoxFlat_7aodm")
51 Button/styles/normal = SubResource("StyleBoxEmpty_vn21i")
52 Button/styles/pressed = SubResource("StyleBoxFlat_7aodm")
53 pressed/styles/Button = SubResource("StyleBoxFlat_ffuxp")
54
55 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ncgqs"]
56 bg_color = Color(1, 1, 1, 1)
57 corner_radius_top_left = 3
58 corner_radius_top_right = 3
59 corner_radius_bottom_right = 3
60 corner_radius_bottom_left = 3
61
62 [node name="VariablesEditor" type="HSplitContainer"]
63 anchors_preset = 15
64 anchor_right = 1.0
65 anchor_bottom = 1.0
66 grow_horizontal = 2
67 grow_vertical = 2
68 script = ExtResource("2")
69
70 [node name="Editor" type="VBoxContainer" parent="."]
71 layout_mode = 2
72 size_flags_horizontal = 3
73
74 [node name="HBox" type="HBoxContainer" parent="Editor"]
75 layout_mode = 2
76
77 [node name="Title" type="Label" parent="Editor/HBox"]
78 layout_mode = 2
79 theme_type_variation = &"DialogicSubTitle"
80 text = "Variables"
81
82 [node name="Search" type="LineEdit" parent="Editor/HBox"]
83 unique_name_in_owner = true
84 layout_mode = 2
85 size_flags_horizontal = 3
86 placeholder_text = "Search"
87 right_icon = SubResource("ImageTexture_sr7s6")
88
89 [node name="Tree" type="Tree" parent="Editor"]
90 unique_name_in_owner = true
91 layout_mode = 2
92 size_flags_vertical = 3
93 theme_type_variation = &"DialogicPanelB"
94 theme_override_constants/button_margin = 4
95 theme_override_constants/draw_guides = 1
96 columns = 3
97 column_titles_visible = true
98 script = ExtResource("2_1i17i")
99
100 [node name="ChangeTypePopup" type="PanelContainer" parent="Editor/Tree"]
101 unique_name_in_owner = true
102 visible = false
103 self_modulate = Color(0, 0, 0, 1)
104 layout_mode = 0
105 offset_left = 140.0
106 offset_top = 160.0
107 offset_right = 272.0
108 offset_bottom = 190.0
109 theme = SubResource("Theme_17j6i")
110 theme_override_styles/panel = SubResource("StyleBoxFlat_ncgqs")
111
112 [node name="HBox" type="HBoxContainer" parent="Editor/Tree/ChangeTypePopup"]
113 layout_mode = 2
114
115 [node name="String" type="Button" parent="Editor/Tree/ChangeTypePopup/HBox"]
116 custom_minimum_size = Vector2(30, 30)
117 layout_mode = 2
118 tooltip_text = "String (Any text)"
119 toggle_mode = true
120 icon = SubResource("ImageTexture_sr7s6")
121 icon_alignment = 1
122
123 [node name="Float" type="Button" parent="Editor/Tree/ChangeTypePopup/HBox"]
124 custom_minimum_size = Vector2(30, 30)
125 layout_mode = 2
126 tooltip_text = "Float (Number with Decimals)"
127 toggle_mode = true
128 icon = SubResource("ImageTexture_sr7s6")
129 icon_alignment = 1
130
131 [node name="Int" type="Button" parent="Editor/Tree/ChangeTypePopup/HBox"]
132 custom_minimum_size = Vector2(30, 30)
133 layout_mode = 2
134 tooltip_text = "Int (Integer)"
135 toggle_mode = true
136 icon = SubResource("ImageTexture_sr7s6")
137 icon_alignment = 1
138
139 [node name="Bool" type="Button" parent="Editor/Tree/ChangeTypePopup/HBox"]
140 custom_minimum_size = Vector2(30, 30)
141 layout_mode = 2
142 tooltip_text = "Bool (True/False flag)"
143 toggle_mode = true
144 icon = SubResource("ImageTexture_sr7s6")
145 icon_alignment = 1
146
147 [node name="RightClickMenu" type="PopupMenu" parent="Editor/Tree"]
148 unique_name_in_owner = true
149 size = Vector2i(67, 35)
150 item_count = 1
151 item_0/text = "Copy"
152 item_0/id = 0
153
154 [node name="ReferenceInfo" type="HBoxContainer" parent="Editor"]
155 unique_name_in_owner = true
156 layout_mode = 2
157
158 [node name="Label" type="Label" parent="Editor/ReferenceInfo"]
159 layout_mode = 2
160 size_flags_horizontal = 3
161 theme_override_colors/font_color = Color(0, 0, 0, 1)
162 text = "You've made some changes to existing variables! Use the reference manager to check if something broke."
163 autowrap_mode = 3
164
165 [node name="ReferenceManager" type="Button" parent="Editor/ReferenceInfo"]
166 layout_mode = 2
167 text = "Reference Manager"
168
169 [node name="Info" type="VBoxContainer" parent="."]
170 layout_mode = 2
171 size_flags_horizontal = 3
172
173 [node name="HBox" type="HBoxContainer" parent="Info"]
174 layout_mode = 2
175
176 [node name="Title" type="Label" parent="Info/HBox"]
177 layout_mode = 2
178 size_flags_horizontal = 3
179 theme_type_variation = &"DialogicSection"
180 text = "How to use variables"
181
182 [node name="Documentation" type="LinkButton" parent="Info/HBox"]
183 layout_mode = 2
184 text = "Read the Docs"
185 uri = "https://docs.dialogic.pro/variables.html"
186
187 [node name="RichTextLabel" type="RichTextLabel" parent="Info"]
188 layout_mode = 2
189 text = "Variables are good way to keep track of all kinds of things during your game. Dialogic has an easy-to-use and beginner friendly variable system built in. However Dialogic allows to use outside variables (of Autoload Singletons) just as easily. You can also access the Dialogic variables from outside scripts."
190 fit_content = true
191
192 [connection signal="text_changed" from="Editor/HBox/Search" to="." method="_on_search_text_changed"]
193 [connection signal="button_clicked" from="Editor/Tree" to="Editor/Tree" method="_on_button_clicked"]
194 [connection signal="gui_input" from="Editor/Tree" to="Editor/Tree" method="_on_gui_input"]
195 [connection signal="item_edited" from="Editor/Tree" to="Editor/Tree" method="_on_item_edited"]
196 [connection signal="id_pressed" from="Editor/Tree/RightClickMenu" to="Editor/Tree" method="_on_right_click_menu_id_pressed"]
197 [connection signal="pressed" from="Editor/ReferenceInfo/ReferenceManager" to="." method="_on_reference_manager_pressed"]