Browse Source

Replace Save Game and Load Game buttons with Saves

pull/15/head
Ryan Reed 3 months ago
parent
commit
acab2a7b92
2 changed files with 4 additions and 14 deletions
  1. +1
    -6
      scenes/ui/menus/pause_menu.gd
  2. +3
    -8
      scenes/ui/menus/pause_menu.tscn

+ 1
- 6
scenes/ui/menus/pause_menu.gd View File

@ -26,10 +26,5 @@ func _on_resume_button_pressed() -> void:
func _on_settings_button_pressed() -> void: func _on_settings_button_pressed() -> void:
SignalManager.open_settings_menu.emit() SignalManager.open_settings_menu.emit()
func _on_load_game_pressed() -> void:
SaveGameManager.open_save_list_ui.emit()
func _on_save_game_pressed() -> void:
# TODO
func _on_saves_button_pressed() -> void:
SaveGameManager.open_save_list_ui.emit() SaveGameManager.open_save_list_ui.emit()

+ 3
- 8
scenes/ui/menus/pause_menu.tscn View File

@ -57,13 +57,9 @@ theme_override_constants/separation = 20
layout_mode = 2 layout_mode = 2
text = "Resume" text = "Resume"
[node name="SaveGame" type="Button" parent="Background/MarginContainer/MenuContainer/ButtonsContainer"]
[node name="SavesButton" type="Button" parent="Background/MarginContainer/MenuContainer/ButtonsContainer"]
layout_mode = 2 layout_mode = 2
text = "Save Game"
[node name="LoadGame" type="Button" parent="Background/MarginContainer/MenuContainer/ButtonsContainer"]
layout_mode = 2
text = "Load Game"
text = "Saves"
[node name="SettingsButton" type="Button" parent="Background/MarginContainer/MenuContainer/ButtonsContainer"] [node name="SettingsButton" type="Button" parent="Background/MarginContainer/MenuContainer/ButtonsContainer"]
layout_mode = 2 layout_mode = 2
@ -74,7 +70,6 @@ layout_mode = 2
text = "Exit Game" text = "Exit Game"
[connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/ResumeButton" to="." method="_on_resume_button_pressed"] [connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/ResumeButton" to="." method="_on_resume_button_pressed"]
[connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/SaveGame" to="." method="_on_save_game_pressed"]
[connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/LoadGame" to="." method="_on_load_game_pressed"]
[connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/SavesButton" to="." method="_on_saves_button_pressed"]
[connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/SettingsButton" to="." method="_on_settings_button_pressed"] [connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/SettingsButton" to="." method="_on_settings_button_pressed"]
[connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/ExitGameButton" to="." method="_on_exit_game_button_pressed"] [connection signal="pressed" from="Background/MarginContainer/MenuContainer/ButtonsContainer/ExitGameButton" to="." method="_on_exit_game_button_pressed"]

Loading…
Cancel
Save