1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

feat(多人游戏): 完善玩家列表同步功能

添加玩家加入/离开时的同步逻辑,重构玩家列表更新方式
- 新增玩家加入和离开的RPC方法
- 使用rebuildAllPlayers统一更新玩家列表
- 调整UI面板的可见性控制
This commit is contained in:
2025-11-09 22:37:47 +08:00
parent 9e78e01f08
commit 30d50b2fd9
2 changed files with 31 additions and 1 deletions
@@ -183,6 +183,7 @@ alignment = 1
[node name="serverConfig" type="VBoxContainer" parent="content/wrapper/starter/multiplayer/configs" index="0"]
unique_name_in_owner = true
visible = false
layout_mode = 2
[node name="title" type="Label" parent="content/wrapper/starter/multiplayer/configs/serverConfig" index="0"]
@@ -212,6 +213,7 @@ virtual_keyboard_type = 2
select_all_on_focus = true
[node name="players" type="VBoxContainer" parent="content/wrapper/starter/multiplayer/configs" index="1"]
unique_name_in_owner = true
layout_mode = 2
[node name="title" type="Label" parent="content/wrapper/starter/multiplayer/configs/players" index="0"]