mirror of
https://github.com/deunix-educ/aventuriers-des-mots.git
synced 2026-10-13 02:11:58 +02:00
Add CM1 and CM2 boards, six backdrops and a quit button (0.8.0)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
extends ConfirmationDialog
|
||||
## Confirmation avant de quitter le jeu. La progression est sauvegardee avant
|
||||
## la sortie (GameManager.quit_game). Les textes viennent de fr.json.
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
title = UIText.get_text("quit.confirm_title")
|
||||
dialog_text = UIText.get_text("quit.confirm_message")
|
||||
ok_button_text = UIText.get_text("quit.confirm_yes")
|
||||
cancel_button_text = UIText.get_text("quit.confirm_no")
|
||||
confirmed.connect(_on_confirmed)
|
||||
|
||||
|
||||
func request() -> void:
|
||||
popup_centered()
|
||||
|
||||
|
||||
func _on_confirmed() -> void:
|
||||
GameManager.quit_game()
|
||||
Reference in New Issue
Block a user