du sel dans le menu

This commit is contained in:
Thomas
2025-03-30 08:31:05 +02:00
parent 423ed95f02
commit 9ecea272ab
2 changed files with 22 additions and 2 deletions

View File

@@ -31,12 +31,18 @@ func _on_button_pressed() -> void:
emit_signal("start")
$MarginContainer/Panel/VBoxContainer/Start.text="Continuer"
$MarginContainer/Panel/VBoxContainer/Save.disabled = false
$MarginContainer/Panel/VBoxContainer/info.text=""
func _on_save_pressed() -> void:
emit_signal("save")
set_last_save_info()
$MarginContainer/Panel/VBoxContainer/info.text="Partie sauvegardée"
$MarginContainer/Panel/VBoxContainer/info/Timer.start()
func _on_load_pressed() -> void:
emit_signal("load")
_on_button_pressed()
func _on_timer_timeout() -> void:
$MarginContainer/Panel/VBoxContainer/info.text=""