]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/Text/character_settings/character_moods_settings.tscn
0817998359bdd479d4d53f230538d05331fae896
[wolf-seeking-sheep.git] / addons / dialogic / Modules / Text / character_settings / character_moods_settings.tscn
1 [gd_scene load_steps=9 format=3 uid="uid://8ad1pwbjuqpt"]
2
3 [ext_resource type="Script" path="res://addons/dialogic/Modules/Text/character_settings/character_moods_settings.gd" id="1_3px07"]
4 [ext_resource type="PackedScene" uid="uid://7mvxuaulctcq" path="res://addons/dialogic/Editor/Events/Fields/field_file.tscn" id="2_e1vyd"]
5 [ext_resource type="PackedScene" uid="uid://kdpp3mibml33" path="res://addons/dialogic/Editor/Events/Fields/field_number.tscn" id="3_yjcns"]
6 [ext_resource type="Script" path="res://addons/dialogic/Modules/Text/node_type_sound.gd" id="5_yscws"]
7
8 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y7t05"]
9 content_margin_left = 10.0
10 content_margin_top = 10.0
11 content_margin_right = 10.0
12 content_margin_bottom = 10.0
13 bg_color = Color(1, 1, 1, 1)
14 corner_radius_top_left = 20
15 corner_radius_top_right = 20
16
17 [sub_resource type="Image" id="Image_ylh4a"]
18 data = {
19 "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),
20 "format": "RGBA8",
21 "height": 16,
22 "mipmaps": false,
23 "width": 16
24 }
25
26 [sub_resource type="ImageTexture" id="ImageTexture_drtd2"]
27 image = SubResource("Image_ylh4a")
28
29 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_40fkd"]
30 content_margin_top = 10.0
31 content_margin_bottom = 10.0
32 bg_color = Color(1, 1, 1, 0.0588235)
33 border_width_left = 1
34 border_width_right = 1
35 border_width_bottom = 1
36 corner_radius_bottom_right = 10
37 corner_radius_bottom_left = 10
38
39 [node name="Typing Sounds" type="VBoxContainer"]
40 offset_right = 443.0
41 offset_bottom = 144.0
42 script = ExtResource("1_3px07")
43
44 [node name="VBox" type="VBoxContainer" parent="."]
45 layout_mode = 2
46 theme_override_constants/separation = 0
47
48 [node name="ListPanel" type="PanelContainer" parent="VBox"]
49 unique_name_in_owner = true
50 self_modulate = Color(0, 0, 0, 1)
51 layout_mode = 2
52 theme_override_styles/panel = SubResource("StyleBoxFlat_y7t05")
53
54 [node name="Vbox" type="VBoxContainer" parent="VBox/ListPanel"]
55 layout_mode = 2
56
57 [node name="HBoxContainer" type="HBoxContainer" parent="VBox/ListPanel/Vbox"]
58 layout_mode = 2
59 alignment = 2
60
61 [node name="Add" type="Button" parent="VBox/ListPanel/Vbox/HBoxContainer"]
62 unique_name_in_owner = true
63 layout_mode = 2
64 tooltip_text = "Add type sound mood"
65 icon = SubResource("ImageTexture_drtd2")
66
67 [node name="Duplicate" type="Button" parent="VBox/ListPanel/Vbox/HBoxContainer"]
68 unique_name_in_owner = true
69 layout_mode = 2
70 tooltip_text = "Duplicate"
71 icon = SubResource("ImageTexture_drtd2")
72
73 [node name="Delete" type="Button" parent="VBox/ListPanel/Vbox/HBoxContainer"]
74 unique_name_in_owner = true
75 layout_mode = 2
76 tooltip_text = "Delete mood"
77 icon = SubResource("ImageTexture_drtd2")
78
79 [node name="VSeparator" type="VSeparator" parent="VBox/ListPanel/Vbox/HBoxContainer"]
80 layout_mode = 2
81
82 [node name="Play" type="Button" parent="VBox/ListPanel/Vbox/HBoxContainer"]
83 unique_name_in_owner = true
84 layout_mode = 2
85 tooltip_text = "Preview"
86 icon = SubResource("ImageTexture_drtd2")
87
88 [node name="Default" type="Button" parent="VBox/ListPanel/Vbox/HBoxContainer"]
89 unique_name_in_owner = true
90 layout_mode = 2
91 tooltip_text = "Default"
92 toggle_mode = true
93 icon = SubResource("ImageTexture_drtd2")
94
95 [node name="MoodList" type="ItemList" parent="VBox/ListPanel/Vbox"]
96 unique_name_in_owner = true
97 custom_minimum_size = Vector2(0, 100)
98 layout_mode = 2
99
100 [node name="Settings" type="PanelContainer" parent="VBox"]
101 unique_name_in_owner = true
102 layout_mode = 2
103 theme_override_styles/panel = SubResource("StyleBoxFlat_40fkd")
104
105 [node name="Grid" type="GridContainer" parent="VBox/Settings"]
106 layout_mode = 2
107 columns = 2
108
109 [node name="Label" type="Label" parent="VBox/Settings/Grid"]
110 layout_mode = 2
111 text = "Name:"
112
113 [node name="Name" type="LineEdit" parent="VBox/Settings/Grid"]
114 unique_name_in_owner = true
115 layout_mode = 2
116 size_flags_horizontal = 3
117 tooltip_text = "Mood name"
118 text = "New Mood"
119 placeholder_text = "Enter Mood Name"
120 caret_blink = true
121
122 [node name="NameWarning" type="TextureRect" parent="VBox/Settings/Grid/Name"]
123 unique_name_in_owner = true
124 layout_mode = 1
125 anchors_preset = 11
126 anchor_left = 1.0
127 anchor_right = 1.0
128 anchor_bottom = 1.0
129 offset_left = -31.0
130 grow_horizontal = 0
131 grow_vertical = 2
132 texture = SubResource("ImageTexture_drtd2")
133 stretch_mode = 3
134
135 [node name="Label6" type="Label" parent="VBox/Settings/Grid"]
136 layout_mode = 2
137 text = "Mode:"
138
139 [node name="Mode" type="OptionButton" parent="VBox/Settings/Grid"]
140 unique_name_in_owner = true
141 layout_mode = 2
142 tooltip_text = "Interrupt = The next sound will stop the previous
143 Overlap = Multiple sounds may play at once
144 Await = A sound will only be played if the previous has finished"
145 item_count = 3
146 selected = 0
147 popup/item_0/text = "Interrupt"
148 popup/item_0/id = 0
149 popup/item_1/text = "Overlap"
150 popup/item_1/id = 1
151 popup/item_2/text = "Await"
152 popup/item_2/id = 2
153
154 [node name="Label4" type="Label" parent="VBox/Settings/Grid"]
155 layout_mode = 2
156 text = "File/Folder:"
157
158 [node name="SoundFolder" parent="VBox/Settings/Grid" instance=ExtResource("2_e1vyd")]
159 unique_name_in_owner = true
160 custom_minimum_size = Vector2(100, 0)
161 layout_mode = 2
162 size_flags_horizontal = 3
163 file_filter = "*.ogg, *.mp3, *.wav"
164 file_mode = 3
165
166 [node name="Label2" type="Label" parent="VBox/Settings/Grid"]
167 layout_mode = 2
168 text = "Pitch:"
169
170 [node name="Pitch" type="HBoxContainer" parent="VBox/Settings/Grid"]
171 layout_mode = 2
172 theme_override_constants/separation = -6
173 alignment = 2
174
175 [node name="PitchBase" parent="VBox/Settings/Grid/Pitch" instance=ExtResource("3_yjcns")]
176 unique_name_in_owner = true
177 layout_mode = 2
178 enforce_step = false
179 max = 4.0
180
181 [node name="Label4" type="Label" parent="VBox/Settings/Grid/Pitch"]
182 layout_mode = 2
183 text = "+/-  "
184
185 [node name="PitchVariance" parent="VBox/Settings/Grid/Pitch" instance=ExtResource("3_yjcns")]
186 unique_name_in_owner = true
187 layout_mode = 2
188 enforce_step = false
189
190 [node name="Label3" type="Label" parent="VBox/Settings/Grid"]
191 layout_mode = 2
192 text = "Volume:"
193
194 [node name="Volume" type="HBoxContainer" parent="VBox/Settings/Grid"]
195 layout_mode = 2
196 theme_override_constants/separation = -6
197 alignment = 2
198
199 [node name="VolumeBase" parent="VBox/Settings/Grid/Volume" instance=ExtResource("3_yjcns")]
200 unique_name_in_owner = true
201 layout_mode = 2
202 min = -60.0
203 max = 30.0
204
205 [node name="Label4" type="Label" parent="VBox/Settings/Grid/Volume"]
206 layout_mode = 2
207 text = "+/-  "
208
209 [node name="VolumeVariance" parent="VBox/Settings/Grid/Volume" instance=ExtResource("3_yjcns")]
210 unique_name_in_owner = true
211 layout_mode = 2
212
213 [node name="Label5" type="Label" parent="VBox/Settings/Grid"]
214 layout_mode = 2
215 text = "Skip:"
216
217 [node name="Skip" parent="VBox/Settings/Grid" instance=ExtResource("3_yjcns")]
218 unique_name_in_owner = true
219 layout_mode = 2
220 alignment = 2
221 step = 1.0
222
223 [node name="Preview" type="AudioStreamPlayer" parent="."]
224 script = ExtResource("5_yscws")
225 play_every_character = 0
226
227 [connection signal="pressed" from="VBox/ListPanel/Vbox/HBoxContainer/Add" to="." method="_on_add_pressed"]
228 [connection signal="pressed" from="VBox/ListPanel/Vbox/HBoxContainer/Duplicate" to="." method="_on_duplicate_pressed"]
229 [connection signal="pressed" from="VBox/ListPanel/Vbox/HBoxContainer/Delete" to="." method="_on_delete_pressed"]
230 [connection signal="pressed" from="VBox/ListPanel/Vbox/HBoxContainer/Play" to="." method="preview"]
231 [connection signal="toggled" from="VBox/ListPanel/Vbox/HBoxContainer/Default" to="." method="_on_default_toggled"]
232 [connection signal="item_selected" from="VBox/ListPanel/Vbox/MoodList" to="." method="_on_mood_list_item_selected"]
233 [connection signal="focus_exited" from="VBox/Settings/Grid/Name" to="." method="_on_name_focus_exited"]
234 [connection signal="text_changed" from="VBox/Settings/Grid/Name" to="." method="_on_name_text_changed"]
235 [connection signal="text_submitted" from="VBox/Settings/Grid/Name" to="." method="_on_name_text_submitted"]