aboutsummaryrefslogtreecommitdiff
path: root/game/src/OptionsMenu.tscn
blob: 495d72c5f7b3c7fac548eda714fe0f64424675d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[gd_scene load_steps=2 format=3 uid="uid://ch03lp7d7fvw3"]

[ext_resource type="Script" path="res://src/OptionsMenu.gd" id="1_2tajv"]

[node name="OptionsMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_2tajv")

[node name="TabContainer" type="TabContainer" parent="."]
layout_mode = 0
offset_right = 1152.0
offset_bottom = 648.0

[node name="VideoTab" type="TabBar" parent="TabContainer"]
layout_mode = 2
tooltip_text = "This is my cool and very nice tooltip"

[node name="GridContainer" type="GridContainer" parent="TabContainer/VideoTab"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
columns = 2

[node name="Label2" type="Label" parent="TabContainer/VideoTab/GridContainer"]
layout_mode = 2
text = "Resolution:"

[node name="ResolutionSelector" type="OptionButton" parent="TabContainer/VideoTab/GridContainer"]
layout_mode = 2
item_count = 3
selected = 0
popup/item_0/text = "1920x1080"
popup/item_0/id = 0
popup/item_1/text = "1366x768"
popup/item_1/id = 1
popup/item_2/text = "1280x1024"
popup/item_2/id = 2

[node name="Label3" type="Label" parent="TabContainer/VideoTab/GridContainer"]
layout_mode = 2
text = "Screen Mode:"

[node name="ScreenModeSelector" type="OptionButton" parent="TabContainer/VideoTab/GridContainer"]
layout_mode = 2
item_count = 3
selected = 0
popup/item_0/text = "Borderless"
popup/item_0/id = 0
popup/item_1/text = "Windowed"
popup/item_1/id = 1
popup/item_2/text = "Fullscreen"
popup/item_2/id = 2

[node name="Label" type="Label" parent="TabContainer/VideoTab/GridContainer"]
layout_mode = 2
text = "Monitor Selection:"

[node name="MonitorDisplaySelector" type="OptionButton" parent="TabContainer/VideoTab/GridContainer"]
layout_mode = 2
item_count = 1
selected = 0
popup/item_0/text = "Monitor 1"
popup/item_0/id = 0

[node name="BackButton" type="Button" parent="TabContainer/VideoTab/GridContainer"]
layout_mode = 2
text = "Back to Main Menu"

[node name="SaveSettingsButton" type="Button" parent="TabContainer/VideoTab/GridContainer"]
layout_mode = 2
text = "Save Me!"

[node name="SoundTab" type="TabBar" parent="TabContainer"]
visible = false
layout_mode = 2

[node name="GridContainer" type="GridContainer" parent="TabContainer/SoundTab"]
layout_mode = 0
offset_top = 33.0
offset_right = 1152.0
offset_bottom = 648.0
columns = 2

[node name="Label" type="Label" parent="TabContainer/SoundTab/GridContainer"]
layout_mode = 2
text = "Music Volume"
horizontal_alignment = 2

[node name="MusicVolume" type="HSlider" parent="TabContainer/SoundTab/GridContainer"]
layout_mode = 2
value = 100.0

[node name="Label3" type="Label" parent="TabContainer/SoundTab/GridContainer"]
layout_mode = 2
text = "SFX Volume"
horizontal_alignment = 2

[node name="SfxVolume" type="HSlider" parent="TabContainer/SoundTab/GridContainer"]
layout_mode = 2
value = 100.0

[node name="Label2" type="Label" parent="TabContainer/SoundTab/GridContainer"]
layout_mode = 2
horizontal_alignment = 2

[node name="EarExploder" type="CheckButton" parent="TabContainer/SoundTab/GridContainer"]
layout_mode = 2
text = "Explode Eardrums on Startup?"

[node name="OtherTab" type="TabBar" parent="TabContainer"]
visible = false
layout_mode = 2

[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/OtherTab"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0

[node name="Label" type="Label" parent="TabContainer/OtherTab/HBoxContainer"]
layout_mode = 2
text = "Spinbox Example :)"

[node name="SpinBox" type="SpinBox" parent="TabContainer/OtherTab/HBoxContainer"]
layout_mode = 2

[connection signal="item_selected" from="TabContainer/VideoTab/GridContainer/ResolutionSelector" to="." method="_on_resolution_selector_item_selected"]
[connection signal="item_selected" from="TabContainer/VideoTab/GridContainer/ScreenModeSelector" to="." method="_on_screen_mode_selector_item_selected"]
[connection signal="item_selected" from="TabContainer/VideoTab/GridContainer/MonitorDisplaySelector" to="." method="_on_monitor_display_selector_item_selected"]
[connection signal="pressed" from="TabContainer/VideoTab/GridContainer/BackButton" to="." method="_on_back_button_pressed"]
[connection signal="pressed" from="TabContainer/VideoTab/GridContainer/SaveSettingsButton" to="." method="_on_save_settings_button_pressed"]
[connection signal="changed" from="TabContainer/SoundTab/GridContainer/MusicVolume" to="." method="_on_music_volume_changed"]
[connection signal="drag_ended" from="TabContainer/SoundTab/GridContainer/MusicVolume" to="." method="_on_music_volume_drag_ended"]
[connection signal="value_changed" from="TabContainer/SoundTab/GridContainer/MusicVolume" to="." method="_on_music_volume_value_changed"]
[connection signal="value_changed" from="TabContainer/SoundTab/GridContainer/SfxVolume" to="." method="_on_sfx_volume_value_changed"]
[connection signal="toggled" from="TabContainer/SoundTab/GridContainer/EarExploder" to="." method="_on_ear_exploder_toggled"]
[connection signal="value_changed" from="TabContainer/OtherTab/HBoxContainer/SpinBox" to="." method="_on_spin_box_value_changed"]