2023-08-22 19:08:45 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class UIManager
|
|
|
|
|
|
{
|
|
|
|
|
|
struct WindowInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
public UIWindowType windowType;
|
|
|
|
|
|
public UIWindowLayer windowLayer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private Dictionary<string, WindowInfo> _windowsInfo = new Dictionary<string, WindowInfo>(64);
|
|
|
|
|
|
|
|
|
|
|
|
private void _AllWindowMeta()
|
|
|
|
|
|
{
|
|
|
|
|
|
_WindowMeta(UINameConst.UIDebugShowID, UIWindowLayer.Normal);
|
|
|
|
|
|
// basic
|
|
|
|
|
|
_WindowMeta(UINameConst.UILogin,UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UILoading, UIWindowLayer.Waiting);
|
|
|
|
|
|
_WindowMeta(UINameConst.UITeamFight, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UI_StartBtn_CMSBtn, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIMainPanel, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UISelectCharacter, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIShowAllCharacterSort, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UI_Cultivate, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UI_Cultivate_ProAndInfo, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UI_Cultivate_Detail, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIFightClock, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIPause, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIDefeatGame, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIPassGame, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIFightScene, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIAirView, UIWindowLayer.Tips);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIClickSheild, UIWindowLayer.Tips);
|
|
|
|
|
|
_WindowMeta(UINameConst.UILevelUp, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIFavorable, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIPoster, UIWindowLayer.Normal);
|
2023-10-19 15:00:19 +08:00
|
|
|
|
_WindowMeta(UINameConst.UIRank, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIAdvance, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UISkill_LevelUp, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIRedPointTest, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIMainPanelTest, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UITeamChoose, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UITeamInfo, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIRaffleResult,UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UINormalRaffle, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIStoryMain, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UINewLogin, UIWindowLayer.Normal);
|
|
|
|
|
|
_WindowMeta(UINameConst.UIGiftCode, UIWindowLayer.Normal);
|
2023-10-25 13:41:07 +08:00
|
|
|
|
_WindowMeta(UINameConst.UI_MainPanel, UIWindowLayer.Normal);
|
2023-10-26 20:20:11 +08:00
|
|
|
|
_WindowMeta(UINameConst.UI_LevelSelect,UIWindowLayer.Normal);
|
2023-10-27 16:47:42 +08:00
|
|
|
|
_WindowMeta(UINameConst.UI_BeforeFight,UIWindowLayer.Normal);
|
2023-11-06 19:06:05 +08:00
|
|
|
|
_WindowMeta(UINameConst.UI_Setting,UIWindowLayer.Normal);
|
2023-08-22 19:08:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void _WindowMeta(string name, UIWindowLayer windowLayer)
|
|
|
|
|
|
{
|
|
|
|
|
|
_windowsInfo.Add(name, new WindowInfo { windowType = UIWindowType.PopupTip, windowLayer = windowLayer });
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class UINameConst
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly string UILogin = "StartScene/UILogin";
|
|
|
|
|
|
public static readonly string UILoading = "StartScene/UILoading";
|
|
|
|
|
|
public static readonly string UITeamFight = "LevelSceneUI/UITeamFight";
|
|
|
|
|
|
public static readonly string UI_StartBtn_CMSBtn = "LevelSceneUI/UI_StartBtn_CMSBtn";
|
|
|
|
|
|
public static readonly string UIFightClock = "LevelSceneUI/UIFightClock";
|
|
|
|
|
|
public static readonly string UIPause = "LevelSceneUI/UIPause";
|
|
|
|
|
|
public static readonly string UIDefeatGame = "LevelSceneUI/LevelSettle/UIDefeatGame";
|
|
|
|
|
|
public static readonly string UIPassGame = "LevelSceneUI/LevelSettle/UIPassGame";
|
|
|
|
|
|
public static readonly string UIFightScene = "LevelSceneUI/UIFightScene";
|
|
|
|
|
|
public static readonly string UISelectCharacter = "MainScene/ShowCharacter/UISelectCharacter";
|
|
|
|
|
|
public static readonly string UIShowAllCharacterSort = "MainScene/UIShowAllCharacterSort";
|
|
|
|
|
|
public static readonly string UIMainPanel = "MainScene/UIMainPanel";
|
|
|
|
|
|
public static readonly string UI_Cultivate = "MainScene/ShowCharacter/UI_Cultivate";
|
|
|
|
|
|
public static readonly string UI_Cultivate_ProAndInfo = "MainScene/ShowCharacter/UI_Cultivate_ProAndInfo";
|
|
|
|
|
|
public static readonly string UI_Cultivate_Detail = "MainScene/ShowCharacter/UI_Cultivate_Detail";
|
|
|
|
|
|
public static readonly string UIAirView = "LevelSceneUI/UIAirView";
|
|
|
|
|
|
public static readonly string UIPoster = "MainScene/ShowCharacter/UIPoster";
|
|
|
|
|
|
public static readonly string UIClickSheild = "LevelSceneUI/UIClickSheild";
|
|
|
|
|
|
public static readonly string UIFavorable = "MainScene/ShowCharacter/UIFavorable";
|
|
|
|
|
|
public static readonly string UILevelUp = "MainScene/ShowCharacter/UILevelUp";
|
2023-10-19 15:00:19 +08:00
|
|
|
|
public static readonly string UICharacterStateBar = "LevelSceneUI/UI_CharacterState_Bar";
|
|
|
|
|
|
public static readonly string UIVehicleStateBar = "LevelSceneUI/UI_VehicleState_Bar";
|
|
|
|
|
|
public static readonly string UIEnemyStateBar = "LevelSceneUI/UI_EnemyState_Bar";
|
|
|
|
|
|
public static readonly string UICharacterDamage = "LevelSceneUI/UICharacterDamage";
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly string UITeamChoose = "TeamChoose/UI_TeamChoose";
|
|
|
|
|
|
public static readonly string UITeamInfo = "TeamChoose/UI_TeamInfo";
|
2023-08-22 19:08:45 +08:00
|
|
|
|
|
2023-10-19 15:00:19 +08:00
|
|
|
|
public static readonly string UIStoryMain = "Story/UIStoryMain";
|
|
|
|
|
|
|
2023-08-22 19:08:45 +08:00
|
|
|
|
public static readonly string UIDebugShowID = "Debug/UIDebugShowID";
|
|
|
|
|
|
public static readonly string UIRank = "MainScene/ShowCharacter/UIRank";
|
|
|
|
|
|
public static readonly string UIAdvance = "MainScene/ShowCharacter/UIAdvance";
|
|
|
|
|
|
public static readonly string UISkill_LevelUp = "MainScene/ShowCharacter/UISkill_LevelUp";
|
|
|
|
|
|
|
2023-10-19 15:00:19 +08:00
|
|
|
|
public static readonly string UIRedPointTest = "Test/UI_RedPointTest";
|
|
|
|
|
|
public static readonly string UIMainPanelTest = "Test/UI_MainPanelTest";
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly string UIRaffleResult = "MainScene/Raffle/UIRaffleResult";//测试
|
|
|
|
|
|
public static readonly string UINormalRaffle = "MainScene/Raffle/UINormalRaffle";//测试
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly string UIVersionUpdate = "VersionUpdate/UI_VersionUpdate";
|
2023-08-22 19:08:45 +08:00
|
|
|
|
|
2023-10-19 15:00:19 +08:00
|
|
|
|
public static readonly string UINewLogin = "StartScene/UINewLogin";
|
|
|
|
|
|
public static readonly string UIGiftCode = "MainScene/GiftCode/UIGiftCode";
|
2023-10-25 13:41:07 +08:00
|
|
|
|
public static readonly string UI_MainPanel = "MainPanel/UI_MainPanel";
|
2023-10-26 20:20:11 +08:00
|
|
|
|
public static readonly string UI_LevelSelect = "LevelSelect/UI_LevelSelect";
|
2023-10-27 16:47:42 +08:00
|
|
|
|
public static readonly string UI_BeforeFight = "LevelSelect/UI_BeforeFight";
|
2023-11-06 19:06:05 +08:00
|
|
|
|
|
|
|
|
|
|
public static readonly string UI_Setting = "Setting/UI_Setting";
|
2023-08-22 19:08:45 +08:00
|
|
|
|
}
|