forked from datawhale/whale-town-front
feat:实现登录系统和用户认证功能
- 添加登录场景(login_scene.tscn)和主菜单场景(main_menu_scene.tscn) - 实现认证管理器(AuthManager)用于用户登录和会话管理 - 添加核心服务:加密服务、存储服务、网络服务 - 配置项目主场景为登录场景 - 添加自动加载服务到项目配置 - 添加开发环境配置(VSCode、Claude) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
40
scenes/main_menu_scene.tscn
Normal file
40
scenes/main_menu_scene.tscn
Normal file
@@ -0,0 +1,40 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c3mxv7d1qw7ba"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/UI_MainMenu.gd" id="1_main_menu"]
|
||||
|
||||
[node name="mainMenuScene" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_main_menu")
|
||||
|
||||
[node name="centerContainer" type="CenterContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="vboxContainer" type="VBoxContainer" parent="centerContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
|
||||
[node name="welcomeLabel" type="Label" parent="centerContainer/vboxContainer"]
|
||||
layout_mode = 2
|
||||
text = "欢迎来到鲸鱼小镇!"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="userInfoLabel" type="Label" parent="centerContainer/vboxContainer"]
|
||||
layout_mode = 2
|
||||
text = "用户名:--
|
||||
等级:--"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="logoutButton" type="Button" parent="centerContainer/vboxContainer"]
|
||||
custom_minimum_size = Vector2(200, 40)
|
||||
layout_mode = 2
|
||||
text = "退出登录"
|
||||
Reference in New Issue
Block a user