]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/StyleEditor/Components/style_browser.tscn
Squashed commit of the following:
[wolf-seeking-sheep.git] / addons / dialogic / Modules / StyleEditor / Components / style_browser.tscn
1 [gd_scene load_steps=11 format=3 uid="uid://cs381i3h7sveq"]
2
3 [ext_resource type="Script" uid="uid://goes30xbqo7d" path="res://addons/dialogic/Modules/StyleEditor/Components/style_browser.gd" id="1_3sdb0"]
4
5 [sub_resource type="Gradient" id="Gradient_0o1u0"]
6 colors = PackedColorArray(0.296448, 0.231485, 0.52887, 1, 0.100572, 0.303996, 0.476999, 1)
7
8 [sub_resource type="GradientTexture2D" id="GradientTexture2D_vd6co"]
9 gradient = SubResource("Gradient_0o1u0")
10 fill_from = Vector2(1, 1)
11
12 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4e858"]
13 content_margin_left = 6.0
14 content_margin_top = 3.0
15 content_margin_right = 6.0
16 content_margin_bottom = 3.0
17 draw_center = false
18 border_width_left = 2
19 border_width_top = 2
20 border_width_right = 2
21 border_width_bottom = 2
22 border_color = Color(1, 1, 1, 0.615686)
23 corner_radius_top_left = 5
24 corner_radius_top_right = 5
25 corner_radius_bottom_right = 5
26 corner_radius_bottom_left = 5
27
28 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_t3eoa"]
29 content_margin_left = 6.0
30 content_margin_top = 3.0
31 content_margin_right = 6.0
32 content_margin_bottom = 3.0
33 draw_center = false
34 border_width_left = 3
35 border_width_top = 3
36 border_width_right = 3
37 border_width_bottom = 3
38 border_color = Color(1, 1, 1, 1)
39 corner_radius_top_left = 5
40 corner_radius_top_right = 5
41 corner_radius_bottom_right = 5
42 corner_radius_bottom_left = 5
43 expand_margin_left = 2.0
44 expand_margin_top = 2.0
45 expand_margin_right = 2.0
46 expand_margin_bottom = 2.0
47
48 [sub_resource type="Image" id="Image_5ythk"]
49 data = {
50 "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),
51 "format": "RGBA8",
52 "height": 16,
53 "mipmaps": false,
54 "width": 16
55 }
56
57 [sub_resource type="ImageTexture" id="ImageTexture_f5xt2"]
58 image = SubResource("Image_5ythk")
59
60 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mavtr"]
61 bg_color = Color(0.0588235, 0.0313726, 0.0980392, 1)
62 border_width_left = 5
63
64 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dqdat"]
65 bg_color = Color(1, 1, 1, 1)
66 draw_center = false
67 corner_radius_top_left = 10
68 corner_radius_top_right = 10
69 corner_radius_bottom_right = 10
70 corner_radius_bottom_left = 10
71 shadow_color = Color(0.992157, 0.992157, 0.992157, 0.101961)
72 shadow_size = 10
73
74 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_otau4"]
75 bg_color = Color(1, 1, 1, 1)
76 corner_radius_top_left = 10
77 corner_radius_top_right = 10
78 corner_radius_bottom_right = 10
79 corner_radius_bottom_left = 10
80
81 [node name="StyleBrowser" type="Control"]
82 layout_mode = 3
83 anchors_preset = 15
84 anchor_right = 1.0
85 anchor_bottom = 1.0
86 grow_horizontal = 2
87 grow_vertical = 2
88 script = ExtResource("1_3sdb0")
89
90 [node name="BGColor" type="TextureRect" parent="."]
91 layout_mode = 1
92 anchors_preset = 15
93 anchor_right = 1.0
94 anchor_bottom = 1.0
95 grow_horizontal = 2
96 grow_vertical = 2
97 texture = SubResource("GradientTexture2D_vd6co")
98
99 [node name="HSplitContainer" type="HSplitContainer" parent="."]
100 clip_contents = true
101 layout_mode = 1
102 anchors_preset = 15
103 anchor_right = 1.0
104 anchor_bottom = 1.0
105 grow_horizontal = 2
106 grow_vertical = 2
107 size_flags_vertical = 3
108
109 [node name="Margin" type="MarginContainer" parent="HSplitContainer"]
110 layout_mode = 2
111 size_flags_horizontal = 3
112 size_flags_stretch_ratio = 1.5
113 theme_override_constants/margin_left = 10
114 theme_override_constants/margin_top = 10
115 theme_override_constants/margin_right = 10
116 theme_override_constants/margin_bottom = 10
117
118 [node name="VBox" type="VBoxContainer" parent="HSplitContainer/Margin"]
119 layout_mode = 2
120 size_flags_horizontal = 3
121
122 [node name="BrowserTitle" type="Label" parent="HSplitContainer/Margin/VBox"]
123 layout_mode = 2
124 theme_type_variation = &"DialogicSubTitle"
125 theme_override_font_sizes/font_size = 25
126 text = "Dialogic Style Browser"
127
128 [node name="HBox" type="HBoxContainer" parent="HSplitContainer/Margin/VBox"]
129 layout_mode = 2
130
131 [node name="Search" type="LineEdit" parent="HSplitContainer/Margin/VBox/HBox"]
132 unique_name_in_owner = true
133 layout_mode = 2
134 size_flags_horizontal = 3
135 theme_override_styles/normal = SubResource("StyleBoxFlat_4e858")
136 theme_override_styles/focus = SubResource("StyleBoxFlat_t3eoa")
137 placeholder_text = "Search"
138 right_icon = SubResource("ImageTexture_f5xt2")
139
140 [node name="ScrollContainer" type="ScrollContainer" parent="HSplitContainer/Margin/VBox"]
141 layout_mode = 2
142 size_flags_vertical = 3
143
144 [node name="PartGrid" type="HFlowContainer" parent="HSplitContainer/Margin/VBox/ScrollContainer"]
145 unique_name_in_owner = true
146 layout_mode = 2
147 size_flags_horizontal = 3
148 size_flags_vertical = 3
149
150 [node name="Buttons" type="HBoxContainer" parent="HSplitContainer/Margin/VBox"]
151 layout_mode = 2
152 alignment = 1
153
154 [node name="CloseButton" type="Button" parent="HSplitContainer/Margin/VBox/Buttons"]
155 unique_name_in_owner = true
156 layout_mode = 2
157 text = "Close"
158 icon = SubResource("ImageTexture_f5xt2")
159
160 [node name="PanelContainer" type="PanelContainer" parent="HSplitContainer"]
161 layout_mode = 2
162 size_flags_horizontal = 3
163 theme_override_styles/panel = SubResource("StyleBoxFlat_mavtr")
164
165 [node name="Control" type="Control" parent="HSplitContainer/PanelContainer"]
166 layout_mode = 2
167
168 [node name="Panel" type="Panel" parent="HSplitContainer/PanelContainer/Control"]
169 layout_mode = 1
170 anchors_preset = 9
171 anchor_bottom = 1.0
172 offset_left = -4.0
173 offset_right = 40.0
174 offset_bottom = 71.0
175 grow_vertical = 2
176 rotation = 0.0349066
177 theme_override_styles/panel = SubResource("StyleBoxFlat_mavtr")
178
179 [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/PanelContainer"]
180 layout_mode = 2
181 theme_override_constants/margin_left = 5
182 theme_override_constants/margin_top = 10
183 theme_override_constants/margin_right = 10
184 theme_override_constants/margin_bottom = 10
185
186 [node name="VBox" type="VBoxContainer" parent="HSplitContainer/PanelContainer/MarginContainer"]
187 layout_mode = 2
188 alignment = 1
189
190 [node name="Panel" type="PanelContainer" parent="HSplitContainer/PanelContainer/MarginContainer/VBox"]
191 layout_mode = 2
192 theme_override_styles/panel = SubResource("StyleBoxFlat_dqdat")
193
194 [node name="Panel" type="PanelContainer" parent="HSplitContainer/PanelContainer/MarginContainer/VBox/Panel"]
195 clip_children = 1
196 layout_mode = 2
197 theme_override_styles/panel = SubResource("StyleBoxFlat_otau4")
198
199 [node name="PreviewImage" type="TextureRect" parent="HSplitContainer/PanelContainer/MarginContainer/VBox/Panel/Panel"]
200 unique_name_in_owner = true
201 layout_mode = 2
202 expand_mode = 5
203 stretch_mode = 6
204
205 [node name="HFlowContainer" type="HFlowContainer" parent="HSplitContainer/PanelContainer/MarginContainer/VBox"]
206 layout_mode = 2
207
208 [node name="PartTitle" type="Label" parent="HSplitContainer/PanelContainer/MarginContainer/VBox/HFlowContainer"]
209 unique_name_in_owner = true
210 layout_mode = 2
211 size_flags_vertical = 8
212 theme_type_variation = &"DialogicTitle"
213 text = "Cool Style Part"
214
215 [node name="PartAuthor" type="Label" parent="HSplitContainer/PanelContainer/MarginContainer/VBox/HFlowContainer"]
216 unique_name_in_owner = true
217 layout_mode = 2
218 size_flags_vertical = 8
219 theme_type_variation = &"DialogicHintText"
220 text = "by Jowan"
221
222 [node name="PartType" type="Label" parent="HSplitContainer/PanelContainer/MarginContainer/VBox/HFlowContainer"]
223 visible = false
224 layout_mode = 2
225 size_flags_vertical = 8
226 theme_type_variation = &"DialogicHintText"
227 text = "a style"
228
229 [node name="PartDescription" type="Label" parent="HSplitContainer/PanelContainer/MarginContainer/VBox"]
230 unique_name_in_owner = true
231 layout_mode = 2
232 theme_type_variation = &"DialogicHintText2"
233 text = "A cool textbox layer"
234 autowrap_mode = 3
235
236 [node name="ActivateButton" type="Button" parent="HSplitContainer/PanelContainer/MarginContainer/VBox"]
237 unique_name_in_owner = true
238 layout_mode = 2
239 text = "Use"
240
241 [connection signal="text_changed" from="HSplitContainer/Margin/VBox/HBox/Search" to="." method="_on_search_text_changed"]
242 [connection signal="pressed" from="HSplitContainer/Margin/VBox/Buttons/CloseButton" to="." method="_on_close_button_pressed"]
243 [connection signal="pressed" from="HSplitContainer/PanelContainer/MarginContainer/VBox/ActivateButton" to="." method="_on_activate_button_pressed"]