Move all C# scripts from flat structure to organized folders: - Core/ for game logic (Game, GameState, GameSettings) - UI/Menus/ and UI/Dialogs/ for user interface - Systems/ for reusable systems (Save, Localization) - Data/ for data models and configuration - Added framework for future: Gameplay/, Story/, Modding/ Update all .tscn scene files to reference new script paths. Fix timing issue in AdvancedSaveDialog focus handling.
126 lines
3.5 KiB
Plaintext
126 lines
3.5 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://bqkwdpfmu7tge"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/Core/Game.cs" id="1_xncbp"]
|
|
[ext_resource type="Script" path="res://scripts/UI/Menus/PauseMenu.cs" id="2_a5qiy"]
|
|
|
|
[node name="Game" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource("1_xncbp")
|
|
|
|
[node name="Background" type="ColorRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
color = Color(0.2, 0.3, 0.4, 1)
|
|
|
|
[node name="UI" type="Control" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="PauseButton" type="Button" parent="UI"]
|
|
layout_mode = 0
|
|
anchor_right = 0.1
|
|
anchor_bottom = 0.08
|
|
offset_left = 10.0
|
|
offset_top = 10.0
|
|
offset_right = -10.0
|
|
offset_bottom = -10.0
|
|
text = "☰"
|
|
|
|
[node name="TimerLabel" type="Label" parent="UI"]
|
|
layout_mode = 0
|
|
anchor_left = 0.85
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.08
|
|
offset_left = 10.0
|
|
offset_top = 10.0
|
|
offset_right = -10.0
|
|
offset_bottom = -10.0
|
|
text = "00:00:00"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="GameContent" type="Label" 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 = -20.0
|
|
offset_right = 100.0
|
|
offset_bottom = 20.0
|
|
text = "GAME CONTENT HERE
|
|
Press ESC or click pause button to pause"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="PauseMenu" type="Control" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
process_mode = 3
|
|
script = ExtResource("2_a5qiy")
|
|
|
|
[node name="Background" type="ColorRect" parent="PauseMenu"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
color = Color(0, 0, 0, 0.8)
|
|
|
|
[node name="MenuContainer" type="VBoxContainer" parent="PauseMenu"]
|
|
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 = -120.0
|
|
offset_right = 100.0
|
|
offset_bottom = 120.0
|
|
|
|
[node name="TitleLabel" type="Label" parent="PauseMenu/MenuContainer"]
|
|
layout_mode = 2
|
|
text = "PAUSED"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="PauseMenu/MenuContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="ResumeButton" type="Button" parent="PauseMenu/MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Resume"
|
|
|
|
[node name="SaveButton" type="Button" parent="PauseMenu/MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Save Game"
|
|
|
|
[node name="SettingsButton" type="Button" parent="PauseMenu/MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Settings"
|
|
|
|
[node name="MainMenuButton" type="Button" parent="PauseMenu/MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Exit to Main Menu"
|
|
|
|
[node name="DesktopButton" type="Button" parent="PauseMenu/MenuContainer"]
|
|
layout_mode = 2
|
|
text = "Exit to Desktop"
|
|
|
|
[connection signal="pressed" from="UI/PauseButton" to="." method="_on_pause_button_pressed"]
|
|
[connection signal="pressed" from="PauseMenu/MenuContainer/ResumeButton" to="PauseMenu" method="_on_resume_button_pressed"]
|
|
[connection signal="pressed" from="PauseMenu/MenuContainer/SaveButton" to="PauseMenu" method="_on_save_button_pressed"]
|
|
[connection signal="pressed" from="PauseMenu/MenuContainer/SettingsButton" to="PauseMenu" method="_on_settings_button_pressed"]
|
|
[connection signal="pressed" from="PauseMenu/MenuContainer/MainMenuButton" to="PauseMenu" method="_on_main_menu_button_pressed"]
|
|
[connection signal="pressed" from="PauseMenu/MenuContainer/DesktopButton" to="PauseMenu" method="_on_desktop_button_pressed"] |