From af50819a16e08a440f59c15036a6554bbca99a08 Mon Sep 17 00:00:00 2001 From: coder-bot Date: Thu, 20 Aug 2026 14:01:20 +0000 Subject: [PATCH] WIP checkpoint: Main menu: fix Register-mode UI trapping the user (remove the confusing mode toggle) --- scenes/main_menu.tscn | 5 ----- scripts/main_menu.gd | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/scenes/main_menu.tscn b/scenes/main_menu.tscn index 6f5e688..b7371b7 100644 --- a/scenes/main_menu.tscn +++ b/scenes/main_menu.tscn @@ -89,10 +89,6 @@ visible = false placeholder_text = "Date of Birth (YYYY-MM-DD)" size_flags_horizontal = 3 -[node name="ModeToggle" type="CheckButton" parent="CenterContainer/VBoxContainer/AuthPanel/MarginContainer/AuthVBox"] -layout_mode = 1 -text = "Register" - [node name="AuthButton" type="Button" parent="CenterContainer/VBoxContainer/AuthPanel/MarginContainer/AuthVBox"] layout_mode = 1 text = "Login" @@ -125,7 +121,6 @@ size_flags_horizontal = 4 [connection signal="pressed" from="CenterContainer/VBoxContainer/AuthButtonsRow/RegisterButton" to="." method="_on_register_button_pressed"] [connection signal="pressed" from="CenterContainer/VBoxContainer/PlayButton" to="." method="_on_play_button_pressed"] [connection signal="pressed" from="CenterContainer/VBoxContainer/QuitButton" to="." method="_on_quit_button_pressed"] -[connection signal="toggled" from="CenterContainer/VBoxContainer/AuthPanel/MarginContainer/AuthVBox/ModeToggle" to="." method="_on_mode_toggle_toggled"] [connection signal="pressed" from="CenterContainer/VBoxContainer/AuthPanel/MarginContainer/AuthVBox/AuthButton" to="." method="_on_auth_button_pressed"] [connection signal="text_submitted" from="CenterContainer/VBoxContainer/AuthPanel/MarginContainer/AuthVBox/UsernameEdit" to="." method="_on_auth_button_pressed"] [connection signal="text_submitted" from="CenterContainer/VBoxContainer/AuthPanel/MarginContainer/AuthVBox/PasswordEdit" to="." method="_on_auth_button_pressed"] diff --git a/scripts/main_menu.gd b/scripts/main_menu.gd index 8d8d76d..06b2d94 100644 --- a/scripts/main_menu.gd +++ b/scripts/main_menu.gd @@ -3,9 +3,9 @@ extends Control ## ## The AuthPanel is hidden by default. When the user clicks the LoginButton or ## RegisterButton (AuthButtonsRow, above the panel), the auth panel slides in. -## The Login and Register buttons in AuthButtonsRow also switch the panel's mode -## when clicked while the panel is already open, so the user can toggle between -## Login and Register modes at any time. +## The Login and Register buttons on the AuthButtonsRow directly set the panel's +## mode, so the user can switch between Login and Register at any time while +## the panel is open. # ─── UI references ────────────────────────────────────────────────────────────