142 lines
8.2 KiB
C#
142 lines
8.2 KiB
C#
using System.Collections.Generic;
|
|
|
|
public partial class UIManager
|
|
{
|
|
struct WindowInfo
|
|
{
|
|
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.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.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.BackGround);
|
|
_WindowMeta(UINameConst.UI_LevelSelect,UIWindowLayer.Normal);
|
|
_WindowMeta(UINameConst.UI_BeforeFight,UIWindowLayer.Normal);
|
|
_WindowMeta(UINameConst.UI_Setting,UIWindowLayer.Normal);
|
|
_WindowMeta(UINameConst.UI_Notice, UIWindowLayer.Normal);
|
|
_WindowMeta(UINameConst.UI_VehicleChoose, UIWindowLayer.Normal);
|
|
_WindowMeta(UINameConst.UI_VehicleCultivate, UIWindowLayer.Normal);
|
|
_WindowMeta(UINameConst.UI_VehicleLevelUp, UIWindowLayer.Normal);
|
|
_WindowMeta(UINameConst.UI_Update, UIWindowLayer.Max);
|
|
_WindowMeta(UINameConst.UI_LogIn, UIWindowLayer.Max);
|
|
_WindowMeta(UINameConst.UI_LoginTips, UIWindowLayer.Max);
|
|
_WindowMeta(UINameConst.UI_Loading, UIWindowLayer.Max);
|
|
_WindowMeta(UINameConst.UIReconnect, UIWindowLayer.Max);
|
|
_WindowMeta(UINameConst.UIReconnectConfirm, UIWindowLayer.Max);
|
|
_WindowMeta(UINameConst.UIReconnectNotice, UIWindowLayer.Max);
|
|
_WindowMeta(UINameConst.UIBackReturn, UIWindowLayer.Max);
|
|
_WindowMeta(UINameConst.UI_Email, UIWindowLayer.Normal);
|
|
_WindowMeta(UINameConst.UIGiftCodeAwards, UIWindowLayer.Normal);
|
|
}
|
|
|
|
|
|
private void _WindowMeta(string name, UIWindowLayer windowLayer)
|
|
{
|
|
_windowsInfo.Add(name, new WindowInfo {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 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 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";
|
|
|
|
public static readonly string UI_Setting = "Interface/UI_Setting";
|
|
public static readonly string UI_Notice = "Interface/UI_Notice";
|
|
public static readonly string UIBackReturn = "Interface/UI_BackReturn";
|
|
|
|
public static readonly string UI_VehicleCultivate = "MainScene/VehicleCultivate/UI_VehicleCultivate";
|
|
|
|
public static readonly string UI_VehicleChoose = "MainScene/VehicleCultivate/UI_VehicleChoose";
|
|
|
|
public static readonly string UI_VehicleLevelUp = "MainScene/VehicleCultivate/UI_VehicleLevelUp";
|
|
public static readonly string UI_Update = "Interface/UI_Update";
|
|
public static readonly string UI_LogIn = "StartScene/New/UI_LogIn";
|
|
public static readonly string UIReconnect = "Common/UIReconnect";
|
|
public static readonly string UIReconnectConfirm = "Common/UIReconnectConfirm";
|
|
public static readonly string UIReconnectNotice = "Common/UIReconnectNotice";
|
|
|
|
public static readonly string UI_LoginTips = "StartScene/New/UI_LoginTips";
|
|
public static readonly string UI_Loading = "StartScene/New/UI_Loading";
|
|
public static readonly string UIGiftCodeAwards = "MainScene/GiftCode/UIGiftCodeAwards";
|
|
public static readonly string UI_Email = "Mail/UI_Email";
|
|
} |