added first theme progress and switched all files to use static typing

This commit is contained in:
Luca 2024-10-10 15:26:56 +02:00
parent c9458f3627
commit b5ace17da9
2665 changed files with 50249 additions and 476 deletions

View file

@ -3,23 +3,29 @@ extends Control
signal on_new_game_started
signal on_game_continued
@onready var continue_game_button: Button = %ContinueGameButton
@onready var new_game_button: Button = %NewGameButton
# On ready, check which buttons to show
func _ready() -> void:
if SaveManager.save_exists():
%ContinueGameButton.visible = true
%NewGameButton.visible = false
continue_game_button.visible = true
new_game_button.visible = false
else:
continue_game_button.visible = false
new_game_button.visible = true
func _on_new_game_button_pressed() -> void:
# Hide the main menu
self.visible = false
# emit the new game signal
on_new_game_started.emit()
func _on_continue_game_button_pressed() -> void:
# Hide the main menu
self.visible = false
# emit the continue game signal
on_game_continued.emit()