271 lines
11 KiB
Text
271 lines
11 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://cbfcolm6mjolp"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/UI/SettingsMenu.gd" id="1_2rgd2"]
|
|
[ext_resource type="Script" path="res://Scripts/UI/Remaping/RemapController.gd" id="2_2f8ap"]
|
|
[ext_resource type="Script" path="res://Scripts/UI/Remaping/RemapButton.gd" id="2_4asaa"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_02uod"]
|
|
bg_color = Color(0.439216, 0.631373, 0.537255, 1)
|
|
|
|
[node name="SettingsMenu" type="Node" node_paths=PackedStringArray("back_button", "tab_container", "bottom_item_video", "bottom_item_audio", "bottom_item_controls", "display_options_button", "vsync_toggle", "resolutions_options_button", "master_volume_slider", "music_volume_slider", "sfx_volume_slider")]
|
|
script = ExtResource("1_2rgd2")
|
|
back_button = NodePath("Back Button")
|
|
tab_container = NodePath("SettingsTabs")
|
|
bottom_item_video = NodePath("SettingsTabs/Video/MarginContainer/GridContainer/ResolutionsOptions")
|
|
bottom_item_audio = NodePath("SettingsTabs/Audio/MarginContainer/GridContainer/SFXVolSlider")
|
|
bottom_item_controls = NodePath("SettingsTabs/Controls/MarginContainer/GridContainer/MoveRightRemapButton")
|
|
display_options_button = NodePath("SettingsTabs/Video/MarginContainer/GridContainer/DisplayModeOptions")
|
|
vsync_toggle = NodePath("SettingsTabs/Video/MarginContainer/GridContainer/VsyncButton")
|
|
resolutions_options_button = NodePath("SettingsTabs/Video/MarginContainer/GridContainer/ResolutionsOptions")
|
|
master_volume_slider = NodePath("SettingsTabs/Audio/MarginContainer/GridContainer/MasterVolumeSlider")
|
|
music_volume_slider = NodePath("SettingsTabs/Audio/MarginContainer/GridContainer/MusicVolSlider")
|
|
sfx_volume_slider = NodePath("SettingsTabs/Audio/MarginContainer/GridContainer/SFXVolSlider")
|
|
|
|
[node name="Remap Controller" type="Control" parent="."]
|
|
visible = false
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_left = 12.0
|
|
offset_top = 12.0
|
|
offset_right = 12.0
|
|
offset_bottom = 12.0
|
|
script = ExtResource("2_2f8ap")
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_02uod")
|
|
|
|
[node name="SettingsTabs" type="TabContainer" parent="."]
|
|
custom_minimum_size = Vector2(1050, 475)
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 12.0
|
|
offset_top = 12.0
|
|
offset_right = -12.0
|
|
offset_bottom = -109.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_font_sizes/font_size = 29
|
|
|
|
[node name="Video" type="VBoxContainer" parent="SettingsTabs"]
|
|
layout_mode = 2
|
|
focus_neighbor_left = NodePath("../Controls")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="SettingsTabs/Video"]
|
|
custom_minimum_size = Vector2(0, 425)
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 25
|
|
theme_override_constants/margin_top = 25
|
|
theme_override_constants/margin_right = 25
|
|
theme_override_constants/margin_bottom = 25
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="SettingsTabs/Video/MarginContainer"]
|
|
layout_mode = 2
|
|
columns = 2
|
|
|
|
[node name="DisplayModeLabel" type="Label" parent="SettingsTabs/Video/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "Display Mode"
|
|
vertical_alignment = 1
|
|
|
|
[node name="DisplayModeOptions" type="OptionButton" parent="SettingsTabs/Video/MarginContainer/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
item_count = 5
|
|
selected = 0
|
|
popup/item_0/text = "Full-Screen"
|
|
popup/item_0/id = 0
|
|
popup/item_1/text = "Windowed"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "Maximized"
|
|
popup/item_2/id = 2
|
|
popup/item_3/text = "Minimized"
|
|
popup/item_3/id = 3
|
|
popup/item_4/text = "Exclusive Full-Screen"
|
|
popup/item_4/id = 4
|
|
|
|
[node name="VSync Label" type="Label" parent="SettingsTabs/Video/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "VSync
|
|
"
|
|
vertical_alignment = 1
|
|
|
|
[node name="VsyncButton" type="CheckButton" parent="SettingsTabs/Video/MarginContainer/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Vsync"
|
|
|
|
[node name="ResolutionsLabel" type="Label" parent="SettingsTabs/Video/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "Resolutions
|
|
"
|
|
vertical_alignment = 1
|
|
|
|
[node name="ResolutionsOptions" type="OptionButton" parent="SettingsTabs/Video/MarginContainer/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
focus_neighbor_bottom = NodePath("../../../../../Back Button")
|
|
fit_to_longest_item = false
|
|
|
|
[node name="Audio" type="VBoxContainer" parent="SettingsTabs"]
|
|
visible = false
|
|
layout_mode = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="SettingsTabs/Audio"]
|
|
custom_minimum_size = Vector2(0, 425)
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 25
|
|
theme_override_constants/margin_top = 25
|
|
theme_override_constants/margin_right = 25
|
|
theme_override_constants/margin_bottom = 25
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="SettingsTabs/Audio/MarginContainer"]
|
|
layout_mode = 2
|
|
columns = 2
|
|
|
|
[node name="MasterVolLabel" type="Label" parent="SettingsTabs/Audio/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "Master Volume
|
|
"
|
|
vertical_alignment = 1
|
|
|
|
[node name="MasterVolumeSlider" type="HSlider" parent="SettingsTabs/Audio/MarginContainer/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
min_value = -72.0
|
|
max_value = 0.0
|
|
|
|
[node name="MusicVolLabel" type="Label" parent="SettingsTabs/Audio/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "Music Volume
|
|
"
|
|
vertical_alignment = 1
|
|
|
|
[node name="MusicVolSlider" type="HSlider" parent="SettingsTabs/Audio/MarginContainer/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
min_value = -72.0
|
|
max_value = 0.0
|
|
|
|
[node name="SFXVolLabel" type="Label" parent="SettingsTabs/Audio/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "SFX Volume"
|
|
vertical_alignment = 1
|
|
|
|
[node name="SFXVolSlider" type="HSlider" parent="SettingsTabs/Audio/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(500, 40)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
focus_neighbor_bottom = NodePath("../../../../../Back Button")
|
|
min_value = -72.0
|
|
max_value = 0.0
|
|
|
|
[node name="Controls" type="VBoxContainer" parent="SettingsTabs"]
|
|
visible = false
|
|
layout_mode = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="SettingsTabs/Controls"]
|
|
custom_minimum_size = Vector2(0, 425)
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 25
|
|
theme_override_constants/margin_top = 25
|
|
theme_override_constants/margin_right = 25
|
|
theme_override_constants/margin_bottom = 25
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="SettingsTabs/Controls/MarginContainer"]
|
|
layout_mode = 2
|
|
columns = 2
|
|
|
|
[node name="MoveUpLabel" type="Label" parent="SettingsTabs/Controls/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "Move Up"
|
|
vertical_alignment = 1
|
|
|
|
[node name="MoveUpRemapButton" type="Button" parent="SettingsTabs/Controls/MarginContainer/GridContainer" node_paths=PackedStringArray("remap_controller")]
|
|
layout_mode = 2
|
|
script = ExtResource("2_4asaa")
|
|
input_action_name = "move_up"
|
|
remap_controller = NodePath("../../../../../Remap Controller")
|
|
|
|
[node name="MoveLeftLabel" type="Label" parent="SettingsTabs/Controls/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "Move Left"
|
|
vertical_alignment = 1
|
|
|
|
[node name="MoveLeftRemapButton" type="Button" parent="SettingsTabs/Controls/MarginContainer/GridContainer" node_paths=PackedStringArray("remap_controller")]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
script = ExtResource("2_4asaa")
|
|
input_action_name = "move_left"
|
|
remap_controller = NodePath("../../../../../Remap Controller")
|
|
|
|
[node name="MoveDownLabel" type="Label" parent="SettingsTabs/Controls/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "Move Down"
|
|
vertical_alignment = 1
|
|
|
|
[node name="MoveDownRemapButton" type="Button" parent="SettingsTabs/Controls/MarginContainer/GridContainer" node_paths=PackedStringArray("remap_controller")]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
script = ExtResource("2_4asaa")
|
|
input_action_name = "move_down"
|
|
remap_controller = NodePath("../../../../../Remap Controller")
|
|
|
|
[node name="MoveRightLabel" type="Label" parent="SettingsTabs/Controls/MarginContainer/GridContainer"]
|
|
custom_minimum_size = Vector2(400, 40)
|
|
layout_mode = 2
|
|
text = "Move RIght"
|
|
vertical_alignment = 1
|
|
|
|
[node name="MoveRightRemapButton" type="Button" parent="SettingsTabs/Controls/MarginContainer/GridContainer" node_paths=PackedStringArray("remap_controller")]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
focus_neighbor_bottom = NodePath("../../../../../Back Button")
|
|
script = ExtResource("2_4asaa")
|
|
input_action_name = "move_right"
|
|
remap_controller = NodePath("../../../../../Remap Controller")
|
|
|
|
[node name="Back Button" type="Button" parent="."]
|
|
custom_minimum_size = Vector2(500, 40)
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -250.0
|
|
offset_top = -80.0
|
|
offset_right = 250.0
|
|
offset_bottom = -40.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_font_sizes/font_size = 23
|
|
text = "Back"
|
|
|
|
[connection signal="item_selected" from="SettingsTabs/Video/MarginContainer/GridContainer/DisplayModeOptions" to="." method="_on_display_mode_options_item_selected"]
|
|
[connection signal="toggled" from="SettingsTabs/Video/MarginContainer/GridContainer/VsyncButton" to="." method="_on_vsync_button_toggled"]
|
|
[connection signal="item_selected" from="SettingsTabs/Video/MarginContainer/GridContainer/ResolutionsOptions" to="." method="_on_resolutions_options_item_selected"]
|
|
[connection signal="drag_ended" from="SettingsTabs/Audio/MarginContainer/GridContainer/MasterVolumeSlider" to="." method="_on_master_volume_slider_drag_ended"]
|
|
[connection signal="value_changed" from="SettingsTabs/Audio/MarginContainer/GridContainer/MasterVolumeSlider" to="." method="_on_master_volume_slider_value_changed"]
|
|
[connection signal="drag_ended" from="SettingsTabs/Audio/MarginContainer/GridContainer/MusicVolSlider" to="." method="_on_music_vol_slider_drag_ended"]
|
|
[connection signal="value_changed" from="SettingsTabs/Audio/MarginContainer/GridContainer/MusicVolSlider" to="." method="_on_music_vol_slider_value_changed"]
|
|
[connection signal="drag_ended" from="SettingsTabs/Audio/MarginContainer/GridContainer/SFXVolSlider" to="." method="_on_sfx_vol_slider_drag_ended"]
|
|
[connection signal="value_changed" from="SettingsTabs/Audio/MarginContainer/GridContainer/SFXVolSlider" to="." method="_on_sfx_vol_slider_value_changed"]
|
|
[connection signal="pressed" from="SettingsTabs/Controls/MarginContainer/GridContainer/MoveUpRemapButton" to="SettingsTabs/Controls/MarginContainer/GridContainer/MoveUpRemapButton" method="_on_pressed"]
|
|
[connection signal="pressed" from="SettingsTabs/Controls/MarginContainer/GridContainer/MoveLeftRemapButton" to="SettingsTabs/Controls/MarginContainer/GridContainer/MoveLeftRemapButton" method="_on_pressed"]
|
|
[connection signal="pressed" from="SettingsTabs/Controls/MarginContainer/GridContainer/MoveDownRemapButton" to="SettingsTabs/Controls/MarginContainer/GridContainer/MoveDownRemapButton" method="_on_pressed"]
|
|
[connection signal="pressed" from="SettingsTabs/Controls/MarginContainer/GridContainer/MoveRightRemapButton" to="SettingsTabs/Controls/MarginContainer/GridContainer/MoveRightRemapButton" method="_on_pressed"]
|
|
[connection signal="pressed" from="Back Button" to="." method="_on_back_pressed"]
|