Fries
425bf2ad27
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.
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://buvptlse06qej"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Managers/UI/Menus/MainMenu.cs" id="1_essvw"]
|
|
[ext_resource type="Theme" uid="uid://bk0vu443pyq1g" path="res://Resources/MenuTheme.tres" id="1_qt6h4"]
|
|
[ext_resource type="LabelSettings" uid="uid://dkyqusswobqb3" path="res://Resources/ScoreLabelSettings.tres" id="2_mtqkf"]
|
|
|
|
[node name="MainMenu" type="VBoxContainer"]
|
|
offset_right = 800.0
|
|
offset_bottom = 600.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme = ExtResource("1_qt6h4")
|
|
script = ExtResource("1_essvw")
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
layout_mode = 2
|
|
text = "Pong"
|
|
label_settings = ExtResource("2_mtqkf")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="PlayButton" type="Button" parent="."]
|
|
layout_mode = 2
|
|
text = "Play
|
|
"
|
|
|
|
[node name="SettingsButton" type="Button" parent="."]
|
|
layout_mode = 2
|
|
text = "Settings"
|
|
|
|
[connection signal="pressed" from="PlayButton" to="." method="OnPlayButtonPressed"]
|
|
[connection signal="pressed" from="SettingsButton" to="." method="OnSettingsButtonPressed"]
|