This repository has been archived on 2024-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
HoppyEaster/Scenes/SettingsMenu.tscn
2023-04-09 18:34:49 +05:30

290 lines
13 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://dosnlh8axkov6"]
[ext_resource type="Script" path="res://Scripts/SettingsMenu.gd" id="1_2rgd2"]
[ext_resource type="Theme" uid="uid://o3vg845para" path="res://Assets/Theme.tres" id="2_swcn6"]
[ext_resource type="Script" path="res://Scripts/RemapButton.gd" id="3_gktg3"]
[node name="SettingsMenu" type="Node" node_paths=PackedStringArray("display_options_button", "vsync_toggle", "resolutions_options_button", "master_volume_slider", "music_volume_slider", "sfx_volume_slider")]
script = ExtResource("1_2rgd2")
display_options_button = NodePath("MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings/DisplayModeOptions")
vsync_toggle = NodePath("MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings/VsyncButton")
resolutions_options_button = NodePath("MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings/ResolutionsOptions")
master_volume_slider = NodePath("MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/MasterVolumeSlider")
music_volume_slider = NodePath("MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/MusicVolSlider")
sfx_volume_slider = NodePath("MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/SFXVolSlider")
[node name="ColorRect" type="ColorRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.576471, 0.831373, 0.709804, 1)
[node name="MainVBox" type="VBoxContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_swcn6")
theme_override_constants/separation = 0
[node name="TitleContainer" type="CenterContainer" parent="MainVBox"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
[node name="Label" type="Label" parent="MainVBox/TitleContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 35
text = "SETTINGS MENU"
[node name="TabsContainer" type="CenterContainer" parent="MainVBox"]
custom_minimum_size = Vector2(0, 475)
layout_mode = 2
[node name="SettingsTabs" type="TabContainer" parent="MainVBox/TabsContainer"]
custom_minimum_size = Vector2(1050, 475)
layout_mode = 2
theme_override_font_sizes/font_size = 29
[node name="Video" type="VBoxContainer" parent="MainVBox/TabsContainer/SettingsTabs"]
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="MainVBox/TabsContainer/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="VideoSettings" type="GridContainer" parent="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer"]
layout_mode = 2
columns = 2
[node name="DisplayModeLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "Display Mode"
vertical_alignment = 1
[node name="DisplayModeOptions" type="OptionButton" parent="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
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="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "VSync
"
vertical_alignment = 1
[node name="VsyncButton" type="CheckButton" parent="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
text = "Vsync"
[node name="ResolutionsLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "Resolutions
"
vertical_alignment = 1
[node name="ResolutionsOptions" type="OptionButton" parent="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
fit_to_longest_item = false
[node name="Audio" type="VBoxContainer" parent="MainVBox/TabsContainer/SettingsTabs"]
visible = false
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="MainVBox/TabsContainer/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="AudioSettings" type="GridContainer" parent="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer"]
layout_mode = 2
columns = 2
[node name="MasterVolLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "Master Volume
"
vertical_alignment = 1
[node name="MasterVolumeSlider" type="HSlider" parent="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
min_value = -72.0
max_value = 0.0
[node name="MusicVolLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "Music Volume
"
vertical_alignment = 1
[node name="MusicVolSlider" type="HSlider" parent="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
min_value = -72.0
max_value = 0.0
[node name="SFXVolLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "SFX Volume"
vertical_alignment = 1
[node name="SFXVolSlider" type="HSlider" parent="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
min_value = -72.0
max_value = 0.0
[node name="Controls" type="VBoxContainer" parent="MainVBox/TabsContainer/SettingsTabs"]
visible = false
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="MainVBox/TabsContainer/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="ControlSettings" type="GridContainer" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer"]
layout_mode = 2
columns = 2
[node name="MoveUpLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "Move Up"
vertical_alignment = 1
[node name="MoveUpRemapButton" type="Button" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
toggle_mode = true
script = ExtResource("3_gktg3")
input_action_name = "move_up"
[node name="MoveLeftLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "Move Left"
vertical_alignment = 1
[node name="MoveLeftRemapButton" type="Button" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
toggle_mode = true
script = ExtResource("3_gktg3")
input_action_name = "move_left"
[node name="MoveDownLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "Move Down"
vertical_alignment = 1
[node name="MoveDownRemapButton" type="Button" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
toggle_mode = true
script = ExtResource("3_gktg3")
input_action_name = "move_down"
[node name="MoveRightLabel" type="Label" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings"]
custom_minimum_size = Vector2(400, 40)
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 20
text = "Move RIght"
vertical_alignment = 1
[node name="MoveRightRemapButton" type="Button" parent="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
size_flags_horizontal = 10
toggle_mode = true
script = ExtResource("3_gktg3")
input_action_name = "move_right"
[node name="ButtonContainer" type="CenterContainer" parent="MainVBox"]
custom_minimum_size = Vector2(0, 73)
layout_mode = 2
[node name="Back" type="Button" parent="MainVBox/ButtonContainer"]
custom_minimum_size = Vector2(500, 40)
layout_mode = 2
theme_override_font_sizes/font_size = 23
text = "Back"
[connection signal="item_selected" from="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings/DisplayModeOptions" to="." method="_on_display_mode_options_item_selected"]
[connection signal="toggled" from="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings/VsyncButton" to="." method="_on_vsync_button_toggled"]
[connection signal="item_selected" from="MainVBox/TabsContainer/SettingsTabs/Video/MarginContainer/VideoSettings/ResolutionsOptions" to="." method="_on_resolutions_options_item_selected"]
[connection signal="drag_ended" from="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/MasterVolumeSlider" to="." method="_on_master_volume_slider_drag_ended"]
[connection signal="value_changed" from="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/MasterVolumeSlider" to="." method="_on_master_volume_slider_value_changed"]
[connection signal="drag_ended" from="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/MusicVolSlider" to="." method="_on_music_vol_slider_drag_ended"]
[connection signal="value_changed" from="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/MusicVolSlider" to="." method="_on_music_vol_slider_value_changed"]
[connection signal="drag_ended" from="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/SFXVolSlider" to="." method="_on_sfx_vol_slider_drag_ended"]
[connection signal="value_changed" from="MainVBox/TabsContainer/SettingsTabs/Audio/MarginContainer/AudioSettings/SFXVolSlider" to="." method="_on_sfx_vol_slider_value_changed"]
[connection signal="toggled" from="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings/MoveUpRemapButton" to="." method="_on_move_up_remap_button_toggled"]
[connection signal="toggled" from="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings/MoveUpRemapButton" to="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings" method="_on_move_up_remap_button_toggled"]
[connection signal="toggled" from="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings/MoveUpRemapButton" to="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings/MoveUpRemapButton" method="_on_toggled"]
[connection signal="toggled" from="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings/MoveLeftRemapButton" to="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings" method="_on_move_left_remap_button_toggled"]
[connection signal="toggled" from="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings/MoveDownRemapButton" to="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings" method="_on_move_down_remap_button_toggled"]
[connection signal="toggled" from="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings/MoveRightRemapButton" to="MainVBox/TabsContainer/SettingsTabs/Controls/MarginContainer/ControlSettings" method="_on_move_right_remap_button_toggled"]
[connection signal="pressed" from="MainVBox/ButtonContainer/Back" to="." method="_on_back_pressed"]
[connection signal="pressed" from="MainVBox/ButtonContainer/Back" to="." method="_on_button_pressed"]