]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/Choice/settings_choices.tscn
95957ac8e5c9d74afd03f391ebbc2ed1da8013e4
[wolf-seeking-sheep.git] / addons / dialogic / Modules / Choice / settings_choices.tscn
1 [gd_scene load_steps=5 format=3 uid="uid://uarvgnbrcltm"]
2
3 [ext_resource type="Script" path="res://addons/dialogic/Modules/Choice/settings_choices.gd" id="2"]
4 [ext_resource type="PackedScene" uid="uid://dbpkta2tjsqim" path="res://addons/dialogic/Editor/Common/hint_tooltip_icon.tscn" id="2_nxutt"]
5
6 [sub_resource type="Image" id="Image_2imc3"]
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_udy8i"]
16 image = SubResource("Image_2imc3")
17
18 [node name="Choices" type="VBoxContainer"]
19 anchors_preset = 15
20 anchor_right = 1.0
21 anchor_bottom = 1.0
22 offset_bottom = -227.0
23 grow_horizontal = 2
24 grow_vertical = 2
25 script = ExtResource("2")
26
27 [node name="VBoxContainer2" type="HBoxContainer" parent="."]
28 layout_mode = 2
29
30 [node name="Title" type="Label" parent="VBoxContainer2"]
31 layout_mode = 2
32 theme_type_variation = &"DialogicSettingsSection"
33 text = "Behaviour"
34
35 [node name="VBoxContainer" type="GridContainer" parent="."]
36 layout_mode = 2
37 size_flags_horizontal = 3
38 columns = 2
39
40 [node name="AutofocusLabel" type="HBoxContainer" parent="VBoxContainer"]
41 layout_mode = 2
42
43 [node name="Label" type="Label" parent="VBoxContainer/AutofocusLabel"]
44 layout_mode = 2
45 text = "Autofocus first choice"
46
47 [node name="Autofocus" type="CheckBox" parent="VBoxContainer"]
48 unique_name_in_owner = true
49 layout_mode = 2
50
51 [node name="AppearModeLabel" type="HBoxContainer" parent="VBoxContainer"]
52 layout_mode = 2
53
54 [node name="Label2" type="Label" parent="VBoxContainer/AppearModeLabel"]
55 layout_mode = 2
56 text = "Choices appear"
57
58 [node name="HintTooltip" parent="VBoxContainer/AppearModeLabel" instance=ExtResource("2_nxutt")]
59 layout_mode = 2
60 tooltip_text = "Choices can appear either instantly when the text finished, after a delay, a click or either."
61 texture = SubResource("ImageTexture_udy8i")
62 hint_text = "Choices can appear either instantly when the text finished, after a delay, a click or either."
63
64 [node name="RevealDelayLabel" type="HBoxContainer" parent="VBoxContainer"]
65 unique_name_in_owner = true
66 layout_mode = 2
67
68 [node name="AppearMode" type="OptionButton" parent="VBoxContainer/RevealDelayLabel"]
69 unique_name_in_owner = true
70 layout_mode = 2
71 size_flags_horizontal = 3
72 item_count = 4
73 selected = 0
74 fit_to_longest_item = false
75 popup/item_0/text = "Instantly"
76 popup/item_0/id = 0
77 popup/item_1/text = "After delay"
78 popup/item_1/id = 1
79 popup/item_2/text = "After another click"
80 popup/item_2/id = 2
81 popup/item_3/text = "After delay or click"
82 popup/item_3/id = 3
83
84 [node name="RevealDelay" type="SpinBox" parent="VBoxContainer/RevealDelayLabel"]
85 unique_name_in_owner = true
86 layout_mode = 2
87 tooltip_text = "Delay after which choices will appear (in seconds)."
88 step = 0.01
89
90 [node name="DelayLabel" type="HBoxContainer" parent="VBoxContainer"]
91 layout_mode = 2
92
93 [node name="Label2" type="Label" parent="VBoxContainer/DelayLabel"]
94 layout_mode = 2
95 text = "Delay before choices can be pressed"
96
97 [node name="HintTooltip2" parent="VBoxContainer/DelayLabel" instance=ExtResource("2_nxutt")]
98 layout_mode = 2
99 tooltip_text = "Adding a small delay before choices can be activated can prevent accidentally choosing an option."
100 texture = SubResource("ImageTexture_udy8i")
101 hint_text = "Adding a small delay before choices can be activated can prevent accidentally choosing an option."
102
103 [node name="Delay" type="SpinBox" parent="VBoxContainer"]
104 unique_name_in_owner = true
105 layout_mode = 2
106 step = 0.01
107
108 [node name="DefaultFalseBehaviourLabel" type="HBoxContainer" parent="VBoxContainer"]
109 layout_mode = 2
110
111 [node name="Label3" type="Label" parent="VBoxContainer/DefaultFalseBehaviourLabel"]
112 layout_mode = 2
113 text = "Default behaviour for false choices"
114
115 [node name="HintTooltip3" parent="VBoxContainer/DefaultFalseBehaviourLabel" instance=ExtResource("2_nxutt")]
116 layout_mode = 2
117 tooltip_text = "Define the default behaviour (hide or disable) for choices that have a condition that isn't met.
118
119 Choices can overwrite this setting individually."
120 texture = SubResource("ImageTexture_udy8i")
121 hint_text = "Define the default behaviour (hide or disable) for choices that have a condition that isn't met.
122
123 Choices can overwrite this setting individually."
124
125 [node name="FalseBehaviour" type="OptionButton" parent="VBoxContainer"]
126 unique_name_in_owner = true
127 layout_mode = 2
128 item_count = 2
129 selected = 0
130 popup/item_0/text = "Hide"
131 popup/item_0/id = 0
132 popup/item_1/text = "Disable"
133 popup/item_1/id = 1
134
135 [node name="HSeparator" type="HSeparator" parent="."]
136 layout_mode = 2
137
138 [node name="HotkeySelection" type="HBoxContainer" parent="."]
139 layout_mode = 2
140
141 [node name="Title2" type="Label" parent="HotkeySelection"]
142 layout_mode = 2
143 theme_type_variation = &"DialogicSettingsSection"
144 text = "Choice Hotkeys"
145
146 [node name="HintTooltip4" parent="HotkeySelection" instance=ExtResource("2_nxutt")]
147 layout_mode = 2
148 tooltip_text = "You can add more complex hotkeys (or individual ones) by editing the choice buttons of your layout scene."
149 texture = SubResource("ImageTexture_udy8i")
150 hint_text = "You can add more complex hotkeys (or individual ones) by editing the choice buttons of your layout scene."
151
152 [node name="VBoxContainer3" type="HBoxContainer" parent="."]
153 layout_mode = 2
154 size_flags_horizontal = 3
155
156 [node name="Label4" type="Label" parent="VBoxContainer3"]
157 layout_mode = 2
158 text = "Hotkey type"
159
160 [node name="HotkeyType" type="OptionButton" parent="VBoxContainer3"]
161 unique_name_in_owner = true
162 layout_mode = 2
163 size_flags_vertical = 4
164 item_count = 2
165 selected = 0
166 popup/item_0/text = "No Hotkeys"
167 popup/item_0/id = 0
168 popup/item_1/text = "Default (1-9)"
169 popup/item_1/id = 1
170
171 [connection signal="toggled" from="VBoxContainer/Autofocus" to="." method="_on_Autofocus_toggled"]
172 [connection signal="item_selected" from="VBoxContainer/RevealDelayLabel/AppearMode" to="." method="_on_appear_mode_item_selected"]
173 [connection signal="value_changed" from="VBoxContainer/RevealDelayLabel/RevealDelay" to="." method="_on_reveal_delay_value_changed"]
174 [connection signal="value_changed" from="VBoxContainer/Delay" to="." method="_on_Delay_value_changed"]
175 [connection signal="item_selected" from="VBoxContainer/FalseBehaviour" to="." method="_on_FalseBehaviour_item_selected"]
176 [connection signal="item_selected" from="VBoxContainer3/HotkeyType" to="." method="_on_HotkeyType_item_selected"]