Pong/Scenes/UI/Menus/Settings.tscn
Fries 425bf2ad27 make a settings menu and general refactoring
i added more to the main menu, as it has a settings menu now, that stores its files with json. i also changed the font to atkinson hyperlegible and made a BaseMenu class that takes care of the screen scaling for menus.

i also refactored the project folder structure to make it more organized.
2023-05-20 21:42:38 -07:00

63 lines
1.9 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://ic7535p11pds"]
[ext_resource type="Theme" uid="uid://bk0vu443pyq1g" path="res://Resources/MenuTheme.tres" id="1_p8g8v"]
[ext_resource type="Script" path="res://Scripts/Managers/UI/Menus/Settings.cs" id="2_vlocu"]
[ext_resource type="LabelSettings" uid="uid://dkyqusswobqb3" path="res://Resources/ScoreLabelSettings.tres" id="2_wkoeb"]
[ext_resource type="FontFile" uid="uid://dq8ojwul8884x" path="res://Fonts/AtkinsonHyperlegible-Regular.ttf" id="3_ngmnl"]
[node name="Settings" type="VBoxContainer"]
offset_right = 800.0
offset_bottom = 600.0
theme = ExtResource("1_p8g8v")
script = ExtResource("2_vlocu")
[node name="Label" type="Label" parent="."]
layout_mode = 2
text = "Settings
"
label_settings = ExtResource("2_wkoeb")
horizontal_alignment = 1
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 2
size_flags_vertical = 3
[node name="InternalMainContainer" type="VBoxContainer" parent="ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="ScaleContainer" type="VBoxContainer" parent="ScrollContainer/InternalMainContainer"]
layout_mode = 2
size_flags_horizontal = 4
[node name="Label" type="Label" parent="ScrollContainer/InternalMainContainer/ScaleContainer"]
layout_mode = 2
size_flags_horizontal = 4
text = "Scale
"
[node name="Scale" type="SpinBox" parent="ScrollContainer/InternalMainContainer/ScaleContainer"]
layout_mode = 2
min_value = 1.0
max_value = 2.0
step = 0.01
value = 1.0
alignment = 1
[node name="SaveButton" type="Button" parent="."]
layout_mode = 2
disabled = true
text = "Save
"
[node name="BackButton" type="Button" parent="."]
layout_mode = 2
size_flags_vertical = 8
theme_override_fonts/font = ExtResource("3_ngmnl")
theme_override_font_sizes/font_size = 32
text = "Back
"
[connection signal="pressed" from="SaveButton" to="." method="OnSaveButtonPressed"]
[connection signal="pressed" from="BackButton" to="." method="OnBackButtonPressed"]