This commit is contained in:
2023-02-07 16:21:22 +01:00
parent 0ba6c3782a
commit 4371d1d386
46 changed files with 1702 additions and 52 deletions

View File

@@ -0,0 +1,42 @@
# A simple main menu
extends Control
# Start the game
func _on_new_game_pressed():
escoria.new_game()
# Show the load slots
func _on_load_game_pressed():
$main.hide()
$load_game.refresh_savegames()
$load_game.show()
# Show the options panel
func _on_options_pressed():
$main.hide()
$options.show()
# Quit the game
func _on_quit_pressed():
escoria.quit()
# Hide the options panel again
func _on_options_back_button_pressed():
reset()
# Hide the load panel
func _on_load_game_back_button_pressed():
reset()
# Resets the UI to initial state
func reset():
$load_game.hide()
$options.hide()
$main.show()