- Implemented LocalizationManager for handling multiple languages. - Updated LoadGameMenu, MainMenu, PauseMenu, and SettingsMenu to support localization. - Added InstanceSelectionMenu for selecting game instances. - Refactored SaveManager to handle new SaveInstance structure. - Created SaveDialog for saving games with user-defined names. - Enhanced SaveData to manage multiple save instances. - Added error handling and logging for save/load operations. - Updated UI elements to reflect localized text.
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://dsrcpteclv0ar"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/MainMenu.cs" id="1_g4hxb"]
|
|
|
|
[node name="MainMenu" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource("1_g4hxb")
|
|
|
|
[node name="Background" type="ColorRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
color = Color(0.15, 0.15, 0.25, 1)
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -100.0
|
|
offset_top = -100.0
|
|
offset_right = 100.0
|
|
offset_bottom = 100.0
|
|
|
|
[node name="TitleLabel" type="Label" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "THE GAME"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="StartButton" type="Button" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Start Game"
|
|
|
|
[node name="LoadButton" type="Button" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Load Game"
|
|
|
|
[node name="SettingsButton" type="Button" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Settings"
|
|
|
|
[node name="ExitButton" type="Button" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Exit"
|
|
|
|
[connection signal="pressed" from="VBoxContainer/StartButton" to="." method="_on_start_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/LoadButton" to="." method="_on_load_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/SettingsButton" to="." method="_on_settings_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/ExitButton" to="." method="_on_exit_button_pressed"] |