refactor:重构认证场景和网络集成
- 重构AuthScene脚本,集成新的NetworkManager - 优化用户界面布局和交互逻辑 - 改进错误处理和用户反馈机制 - 统一网络请求处理流程
This commit is contained in:
@@ -221,6 +221,50 @@ theme_override_colors/font_placeholder_color = Color(0.5, 0.5, 0.5, 1)
|
|||||||
placeholder_text = "请输入密码"
|
placeholder_text = "请输入密码"
|
||||||
secret = true
|
secret = true
|
||||||
|
|
||||||
|
[node name="VerificationContainer" type="VBoxContainer" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm"]
|
||||||
|
visible = false
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="VerificationLabelContainer" type="HBoxContainer" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm/VerificationContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="VerificationLabel" type="Label" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm/VerificationContainer/VerificationLabelContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||||
|
text = "验证码"
|
||||||
|
|
||||||
|
[node name="RequiredStar" type="Label" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm/VerificationContainer/VerificationLabelContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_color = Color(1, 0.2, 0.2, 1)
|
||||||
|
text = " *"
|
||||||
|
|
||||||
|
[node name="Spacer" type="Control" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm/VerificationContainer/VerificationLabelContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
|
[node name="VerificationError" type="Label" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm/VerificationContainer/VerificationLabelContainer"]
|
||||||
|
visible = false
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_colors/font_color = Color(1, 0.2, 0.2, 1)
|
||||||
|
theme_override_font_sizes/font_size = 12
|
||||||
|
text = "请输入验证码"
|
||||||
|
horizontal_alignment = 2
|
||||||
|
|
||||||
|
[node name="VerificationInputContainer" type="HBoxContainer" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm/VerificationContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="VerificationInput" type="LineEdit" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm/VerificationContainer/VerificationInputContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||||
|
theme_override_colors/font_placeholder_color = Color(0.5, 0.5, 0.5, 1)
|
||||||
|
placeholder_text = "请输入6位验证码"
|
||||||
|
max_length = 6
|
||||||
|
|
||||||
|
[node name="GetCodeBtn" type="Button" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm/VerificationContainer/VerificationInputContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "获取验证码"
|
||||||
|
|
||||||
[node name="CheckboxContainer" type="HBoxContainer" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm"]
|
[node name="CheckboxContainer" type="HBoxContainer" parent="CenterContainer/LoginPanel/VBoxContainer/LoginForm"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
@@ -256,12 +300,6 @@ layout_mode = 2
|
|||||||
theme = SubResource("Theme_button")
|
theme = SubResource("Theme_button")
|
||||||
text = "密码登录"
|
text = "密码登录"
|
||||||
|
|
||||||
[node name="ToRegisterBtn" type="Button" parent="CenterContainer/LoginPanel/VBoxContainer/ButtonContainer"]
|
|
||||||
custom_minimum_size = Vector2(100, 35)
|
|
||||||
layout_mode = 2
|
|
||||||
theme = SubResource("Theme_button")
|
|
||||||
text = "验证码登录"
|
|
||||||
|
|
||||||
[node name="BottomLinks" type="HBoxContainer" parent="CenterContainer/LoginPanel/VBoxContainer"]
|
[node name="BottomLinks" type="HBoxContainer" parent="CenterContainer/LoginPanel/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
alignment = 1
|
alignment = 1
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user