This commit is contained in:
2026-10-17 20:09:13 +08:00
parent c26b86c37a
commit 8566d0b033
125 changed files with 62375 additions and 202 deletions
@@ -55,7 +55,17 @@ namespace Assets.MyGame.Scripts.Net
public static void GetRoomListResult(string msg)
{
var var1 = UIManager.Instance.Get<UIHomeMain>(UIPanel.HomeMainPanel);
if (var1 == null) return;
// ⭐ 新流程:主页面手动选座 → 独立的房间列表面板(UIPanel.MySelectRoomPanel)
var mySelectPanel = var1.subUIManager.Get<UIHome_BY_MySelectRoomPanel>(UIPanel.MySelectRoomPanel);
if (mySelectPanel != null)
{
mySelectPanel.Show(msg);
return;
}
// 旧流程(保留,便于恢复):选场面板内嵌的房间列表
var selectRoomPanel = var1.subUIManager.Get<UIHome_BY_SelectRoomLevelPanel>(UIPanel.SelectRoomLeavePenel);
if (selectRoomPanel != null && selectRoomPanel.isMySelectRoom)
{
@@ -1221,6 +1231,11 @@ namespace Assets.MyGame.Scripts.Net
// 通知手动选座面板刷新(若开启)
var homeMain = UIManager.Instance.Get<UIHomeMain>(UIPanel.HomeMainPanel);
if (homeMain == null) return;
// ⭐ 新流程:独立的房间列表面板
homeMain.subUIManager.Get<UIHome_BY_MySelectRoomPanel>(UIPanel.MySelectRoomPanel)?.OnRoomChange(roomData);
// 旧流程(保留,便于恢复):选场面板内嵌的房间列表
var selectRoomPanel = homeMain.subUIManager.Get<UIHome_BY_SelectRoomLevelPanel>(UIPanel.SelectRoomLeavePenel);
if (selectRoomPanel != null && selectRoomPanel.isMySelectRoom)
{