NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Framework/UI/UIManager.Window.cs

112 lines
6.3 KiB
C#

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);
_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);
_WindowMeta(UINameConst.UI_MainPanel, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_LevelSelect,UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_BeforeFight,UIWindowLayer.Normal);
}
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";
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";
public static readonly string UIStoryMain = "Story/UIStoryMain";
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";
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";
public static readonly string UINewLogin = "StartScene/UINewLogin";
public static readonly string UIGiftCode = "MainScene/GiftCode/UIGiftCode";
public static readonly string UI_MainPanel = "MainPanel/UI_MainPanel";
public static readonly string UI_LevelSelect = "LevelSelect/UI_LevelSelect";
public static readonly string UI_BeforeFight = "LevelSelect/UI_BeforeFight";
}