Button sprites updated

This commit is contained in:
2025-12-25 00:01:08 +03:00
parent 5384fa3caa
commit 0ed500097d
19 changed files with 467 additions and 282 deletions
+1 -10
View File
@@ -7,7 +7,6 @@ signal show_main_menu
@onready var pause_menu : Control = $PauseMenu
@onready var options : Control = $Options
@onready var credits : Control = $Credits
func _ready() -> void:
@@ -20,7 +19,7 @@ func _input(event: InputEvent) -> void:
func _show_menu(menu: Control) -> void:
var menus : Array[Control] = [ pause_menu, options, credits ]
var menus : Array[Control] = [ pause_menu, options ]
for m in menus:
m.hide()
@@ -44,13 +43,5 @@ func _on_options_back() -> void:
_show_menu(pause_menu)
func _on_options_show_credits() -> void:
_show_menu(credits)
func _on_credits_back() -> void:
_show_menu(options)
func _on_visibility_changed() -> void:
get_tree().paused = visible