feat(chat-ui): 更新聊天UI和场景配置

- 优化聊天消息显示
- 调整UI布局
This commit is contained in:
王浩
2026-01-09 23:23:41 +08:00
parent 136e1344a0
commit e335a35f6c
6 changed files with 31 additions and 35 deletions

View File

@@ -88,13 +88,16 @@ func _on_login_success(username: String):
# 登录成功后的处理
current_user = username
print("用户 ", username, " 登录成功!")
# 连接到聊天服务器(在进入游戏界面之前)
print("🔌 开始连接聊天服务器...")
ChatManager.connect_to_chat_server()
show_main_game()
# 登录成功后隐藏聊天框需要按Enter才显示
chat_ui.hide_chat()
func _on_logout_pressed():
# 登出处理
current_user = ""