diff options
author | nokoe <nokoe@mailbox.org> | 2024-10-01 14:29:11 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-10-01 14:29:11 +0200 |
commit | 78c13e68040241f0fb76592e3664de2bc24cc981 (patch) | |
tree | 3684b86f31e1253d7c1f62a316f36a034df59838 /client/menu/setup.gd | |
parent | 34f7557f1b956425de3417ba7e92699fe22adb63 (diff) | |
download | hurrycurry-78c13e68040241f0fb76592e3664de2bc24cc981.tar hurrycurry-78c13e68040241f0fb76592e3664de2bc24cc981.tar.bz2 hurrycurry-78c13e68040241f0fb76592e3664de2bc24cc981.tar.zst |
more universal popups
Diffstat (limited to 'client/menu/setup.gd')
-rw-r--r-- | client/menu/setup.gd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/menu/setup.gd b/client/menu/setup.gd index fbf0bfce..580902da 100644 --- a/client/menu/setup.gd +++ b/client/menu/setup.gd @@ -60,7 +60,12 @@ func check(): func _on_sign_pressed(): if check() != null: # TODO show error message - await submenu("res://menu/warning_popup.tscn", check()) + var data := MenuPopup.Data.new() + data.text = check() + var accept_button := Button.new() + accept_button.text = tr("c.menu.accept") + data.buttons = [accept_button] + await submenu("res://menu/popup.tscn", data) return sign_button.disabled = true |