]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/Glossary/glossary_editor.tscn
Updated export config options
[wolf-seeking-sheep.git] / addons / dialogic / Modules / Glossary / glossary_editor.tscn
1 [gd_scene load_steps=5 format=3 uid="uid://due48ce7jiudt"]
2
3 [ext_resource type="Script" uid="uid://x0rg7c4g53ar" path="res://addons/dialogic/Modules/Glossary/glossary_editor.gd" id="1_tf3p1"]
4 [ext_resource type="Texture2D" uid="uid://cenut3sc5cul0" path="res://addons/dialogic/Modules/Glossary/add-glossary.svg" id="2_0elx7"]
5
6 [sub_resource type="Image" id="Image_2730t"]
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_dfvxn"]
16 image = SubResource("Image_2730t")
17
18 [node name="GlossaryEditor" type="VBoxContainer"]
19 anchors_preset = 15
20 anchor_right = 1.0
21 anchor_bottom = 1.0
22 script = ExtResource("1_tf3p1")
23
24 [node name="Entries" type="HSplitContainer" parent="."]
25 layout_mode = 2
26 size_flags_horizontal = 3
27 size_flags_vertical = 3
28 split_offset = -200
29
30 [node name="Settings" type="VBoxContainer" parent="Entries"]
31 layout_mode = 2
32 size_flags_horizontal = 3
33 size_flags_stretch_ratio = 0.3
34
35 [node name="Label" type="Label" parent="Entries/Settings"]
36 layout_mode = 2
37 theme_type_variation = &"DialogicSection"
38 text = "Glossaries"
39
40 [node name="Glossaries" type="PanelContainer" parent="Entries/Settings"]
41 layout_mode = 2
42 size_flags_vertical = 3
43 theme_type_variation = &"DialogicPanelA"
44
45 [node name="Glossaries" type="VBoxContainer" parent="Entries/Settings/Glossaries"]
46 layout_mode = 2
47 size_flags_horizontal = 3
48 size_flags_vertical = 3
49 size_flags_stretch_ratio = 0.69
50
51 [node name="HBox" type="HBoxContainer" parent="Entries/Settings/Glossaries/Glossaries"]
52 layout_mode = 2
53
54 [node name="AddGlossaryFile" type="Button" parent="Entries/Settings/Glossaries/Glossaries/HBox"]
55 unique_name_in_owner = true
56 layout_mode = 2
57 size_flags_vertical = 4
58 tooltip_text = "New Glossary"
59 icon = ExtResource("2_0elx7")
60
61 [node name="LoadGlossaryFile" type="Button" parent="Entries/Settings/Glossaries/Glossaries/HBox"]
62 unique_name_in_owner = true
63 layout_mode = 2
64 size_flags_vertical = 4
65 tooltip_text = "Import Glossary File"
66 icon = SubResource("ImageTexture_dfvxn")
67
68 [node name="DeleteGlossaryFile" type="Button" parent="Entries/Settings/Glossaries/Glossaries/HBox"]
69 unique_name_in_owner = true
70 layout_mode = 2
71 size_flags_vertical = 4
72 tooltip_text = "Delete Glossary"
73 icon = SubResource("ImageTexture_dfvxn")
74
75 [node name="ScrollContainer" type="ScrollContainer" parent="Entries/Settings/Glossaries/Glossaries"]
76 layout_mode = 2
77 size_flags_horizontal = 3
78 size_flags_vertical = 3
79
80 [node name="GlossaryList" type="ItemList" parent="Entries/Settings/Glossaries/Glossaries/ScrollContainer"]
81 unique_name_in_owner = true
82 layout_mode = 2
83 size_flags_horizontal = 3
84 size_flags_vertical = 3
85
86 [node name="Label2" type="Label" parent="Entries/Settings"]
87 layout_mode = 2
88 theme_type_variation = &"DialogicSection"
89 text = "Defaults"
90
91 [node name="Defaults" type="VBoxContainer" parent="Entries/Settings"]
92 layout_mode = 2
93
94 [node name="DefaultsColor" type="HBoxContainer" parent="Entries/Settings/Defaults"]
95 layout_mode = 2
96
97 [node name="Label" type="Label" parent="Entries/Settings/Defaults/DefaultsColor"]
98 layout_mode = 2
99 size_flags_horizontal = 3
100 text = "Color"
101
102 [node name="DefaultColor" type="ColorPickerButton" parent="Entries/Settings/Defaults/DefaultsColor"]
103 unique_name_in_owner = true
104 custom_minimum_size = Vector2(50, 0)
105 layout_mode = 2
106 size_flags_horizontal = 8
107
108 [node name="DefCaseSensitive" type="HBoxContainer" parent="Entries/Settings/Defaults"]
109 layout_mode = 2
110
111 [node name="Label" type="Label" parent="Entries/Settings/Defaults/DefCaseSensitive"]
112 layout_mode = 2
113 size_flags_horizontal = 3
114 text = "Case sensitive"
115
116 [node name="DefaultCaseSensitive" type="CheckBox" parent="Entries/Settings/Defaults/DefCaseSensitive"]
117 unique_name_in_owner = true
118 layout_mode = 2
119
120 [node name="HSplit" type="HSplitContainer" parent="Entries"]
121 layout_mode = 2
122 size_flags_horizontal = 3
123
124 [node name="VBoxContainer" type="VBoxContainer" parent="Entries/HSplit"]
125 layout_mode = 2
126 size_flags_horizontal = 3
127
128 [node name="Label2" type="Label" parent="Entries/HSplit/VBoxContainer"]
129 layout_mode = 2
130 theme_type_variation = &"DialogicSection"
131 text = "Entries"
132
133 [node name="Tabs" type="PanelContainer" parent="Entries/HSplit/VBoxContainer"]
134 layout_mode = 2
135 size_flags_horizontal = 3
136 size_flags_vertical = 3
137 theme_type_variation = &"DialogicPanelA"
138
139 [node name="Entries" type="VBoxContainer" parent="Entries/HSplit/VBoxContainer/Tabs"]
140 layout_mode = 2
141 size_flags_horizontal = 3
142 size_flags_stretch_ratio = 0.69
143
144 [node name="HBox" type="HBoxContainer" parent="Entries/HSplit/VBoxContainer/Tabs/Entries"]
145 layout_mode = 2
146
147 [node name="AddGlossaryEntry" type="Button" parent="Entries/HSplit/VBoxContainer/Tabs/Entries/HBox"]
148 unique_name_in_owner = true
149 layout_mode = 2
150 size_flags_vertical = 4
151 tooltip_text = "New Glossary Entry"
152 icon = SubResource("ImageTexture_dfvxn")
153
154 [node name="DeleteGlossaryEntry" type="Button" parent="Entries/HSplit/VBoxContainer/Tabs/Entries/HBox"]
155 unique_name_in_owner = true
156 layout_mode = 2
157 size_flags_vertical = 4
158 tooltip_text = "Delete Glossary Entry"
159 icon = SubResource("ImageTexture_dfvxn")
160
161 [node name="EntrySearch" type="LineEdit" parent="Entries/HSplit/VBoxContainer/Tabs/Entries/HBox"]
162 unique_name_in_owner = true
163 layout_mode = 2
164 size_flags_horizontal = 3
165 placeholder_text = "Search"
166 right_icon = SubResource("ImageTexture_dfvxn")
167
168 [node name="ScrollContainer" type="ScrollContainer" parent="Entries/HSplit/VBoxContainer/Tabs/Entries"]
169 layout_mode = 2
170 size_flags_horizontal = 3
171 size_flags_vertical = 3
172
173 [node name="EntryList" type="ItemList" parent="Entries/HSplit/VBoxContainer/Tabs/Entries/ScrollContainer"]
174 unique_name_in_owner = true
175 layout_mode = 2
176 size_flags_horizontal = 3
177 size_flags_vertical = 3
178 focus_neighbor_right = NodePath("../../../../EntryEditor/Tabs/Entry Settings/EntrySettings/HBox/EntryName")
179
180 [node name="EntryEditor" type="ScrollContainer" parent="Entries/HSplit"]
181 unique_name_in_owner = true
182 layout_mode = 2
183 size_flags_horizontal = 3
184 horizontal_scroll_mode = 0
185 metadata/_edit_layout_mode = 1
186
187 [node name="VBox" type="VBoxContainer" parent="Entries/HSplit/EntryEditor"]
188 layout_mode = 2
189 size_flags_horizontal = 3
190 size_flags_vertical = 3
191
192 [node name="Label" type="Label" parent="Entries/HSplit/EntryEditor/VBox"]
193 layout_mode = 2
194 theme_type_variation = &"DialogicSection"
195 text = "Entry Settings"
196
197 [node name="Entry Settings" type="VBoxContainer" parent="Entries/HSplit/EntryEditor/VBox"]
198 layout_mode = 2
199 size_flags_horizontal = 3
200 size_flags_vertical = 3
201
202 [node name="EntrySettings" type="GridContainer" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings"]
203 unique_name_in_owner = true
204 layout_mode = 2
205 size_flags_horizontal = 3
206 size_flags_vertical = 3
207 theme_override_constants/h_separation = 13
208 columns = 2
209
210 [node name="Label2" type="Label" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
211 layout_mode = 2
212 size_flags_vertical = 0
213 text = "Name"
214
215 [node name="HBox2" type="HBoxContainer" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
216 layout_mode = 2
217
218 [node name="EntryName" type="LineEdit" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/HBox2"]
219 unique_name_in_owner = true
220 layout_mode = 2
221 size_flags_horizontal = 3
222 focus_neighbor_left = NodePath("../../../../../../VBoxContainer/Tabs/Entries/ScrollContainer/EntryList")
223 theme_override_colors/caret_color = Color(0, 0, 0, 1)
224 placeholder_text = "Enter unique name..."
225 caret_blink = true
226
227 [node name="EntryCaseSensitive" type="Button" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/HBox2"]
228 unique_name_in_owner = true
229 layout_mode = 2
230 tooltip_text = "Case sensitive"
231 toggle_mode = true
232 icon = SubResource("ImageTexture_dfvxn")
233 flat = true
234
235 [node name="Label3" type="Label" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
236 layout_mode = 2
237 size_flags_vertical = 0
238 text = "Alternatives"
239
240 [node name="EntryAlternatives" type="LineEdit" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
241 unique_name_in_owner = true
242 layout_mode = 2
243 size_flags_horizontal = 3
244 caret_blink = true
245
246 [node name="Label4" type="Label" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
247 layout_mode = 2
248 size_flags_vertical = 0
249 text = "Title"
250
251 [node name="EntryTitle" type="LineEdit" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
252 unique_name_in_owner = true
253 layout_mode = 2
254 size_flags_horizontal = 3
255 caret_blink = true
256
257 [node name="Label5" type="Label" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
258 layout_mode = 2
259 size_flags_vertical = 0
260 text = "Description"
261
262 [node name="EntryText" type="TextEdit" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
263 unique_name_in_owner = true
264 custom_minimum_size = Vector2(0, 100)
265 layout_mode = 2
266 focus_next = NodePath("../EntryExtra")
267 wrap_mode = 1
268
269 [node name="Label6" type="Label" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
270 layout_mode = 2
271 size_flags_vertical = 0
272 text = "Extra"
273
274 [node name="EntryExtra" type="TextEdit" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
275 unique_name_in_owner = true
276 custom_minimum_size = Vector2(0, 50)
277 layout_mode = 2
278 wrap_mode = 1
279
280 [node name="Label8" type="Label" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
281 layout_mode = 2
282 size_flags_vertical = 0
283 text = "Enabled"
284
285 [node name="EntryEnabled" type="CheckBox" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
286 unique_name_in_owner = true
287 layout_mode = 2
288 button_pressed = true
289
290 [node name="Label7" type="Label" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
291 layout_mode = 2
292 size_flags_vertical = 0
293 text = "Color"
294
295 [node name="HBox" type="HBoxContainer" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings"]
296 layout_mode = 2
297
298 [node name="EntryCustomColor" type="CheckBox" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/HBox"]
299 unique_name_in_owner = true
300 layout_mode = 2
301
302 [node name="EntryColor" type="ColorPickerButton" parent="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/HBox"]
303 unique_name_in_owner = true
304 layout_mode = 2
305 size_flags_horizontal = 3
306
307 [connection signal="pressed" from="Entries/Settings/Glossaries/Glossaries/HBox/AddGlossaryFile" to="." method="_on_add_glossary_file_pressed"]
308 [connection signal="pressed" from="Entries/Settings/Glossaries/Glossaries/HBox/LoadGlossaryFile" to="." method="_on_load_glossary_file_pressed"]
309 [connection signal="pressed" from="Entries/HSplit/VBoxContainer/Tabs/Entries/HBox/AddGlossaryEntry" to="." method="_on_add_glossary_entry_pressed"]
310 [connection signal="pressed" from="Entries/HSplit/VBoxContainer/Tabs/Entries/HBox/DeleteGlossaryEntry" to="." method="_on_delete_glossary_entry_pressed"]
311 [connection signal="text_changed" from="Entries/HSplit/VBoxContainer/Tabs/Entries/HBox/EntrySearch" to="." method="_on_entry_search_text_changed"]
312 [connection signal="text_changed" from="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/HBox2/EntryName" to="." method="_on_entry_name_text_changed"]
313 [connection signal="toggled" from="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/HBox2/EntryCaseSensitive" to="." method="_on_entry_case_sensitive_toggled"]
314 [connection signal="text_changed" from="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/EntryTitle" to="." method="_on_entry_title_text_changed"]
315 [connection signal="text_changed" from="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/EntryText" to="." method="_on_entry_text_text_changed"]
316 [connection signal="text_changed" from="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/EntryExtra" to="." method="_on_entry_extra_text_changed"]
317 [connection signal="toggled" from="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/EntryEnabled" to="." method="_on_entry_enabled_toggled"]
318 [connection signal="toggled" from="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/HBox/EntryCustomColor" to="." method="_on_entry_custom_color_toggled"]
319 [connection signal="color_changed" from="Entries/HSplit/EntryEditor/VBox/Entry Settings/EntrySettings/HBox/EntryColor" to="." method="_on_entry_color_color_changed"]