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