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

281 lines
16 KiB
C#

using System.Collections.Generic;
public partial class UIManager
{
public struct WindowInfo
{
public UIWindowLayer windowLayer;
public UIOpenType UIOpenType;
}
private Dictionary<string, WindowInfo> _windowsInfo = new Dictionary<string, WindowInfo>(64);
public Dictionary<string, WindowInfo> WindowInfos => _windowsInfo;
private void _AllWindowMeta()
{
_WindowMeta(UINameConst.UIDebugShowID, UIWindowLayer.Normal);
// basic
_WindowMeta(UINameConst.UILogin, UIWindowLayer.ForeGround);
_WindowMeta(UINameConst.UITeamFight, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_StartBtn_CMSBtn, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UISelectCharacter, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UIShowAllCharacterSort, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Cultivate, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_Cultivate_ProAndInfo, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Cultivate_Detail, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_SkinChange, 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, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UITeamInfo, UIWindowLayer.Normal, UIOpenType.Pop);
_WindowMeta(UINameConst.UI_RaffleTotalResult, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_RaffleAnim, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_RaffleOneResult, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_DrawMain, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_ExchangePanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_CardPoolDetails, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_PlayVideo, UIWindowLayer.Normal, UIOpenType.FullScreen);
_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, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_BeforeFight, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_Setting, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Notice, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_VehicleChoose, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_VehicleCultivate, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_VehicleLevelUp, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Update, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UI_LogIn, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_LoginTips, UIWindowLayer.Max);
_WindowMeta(UINameConst.UI_Loading, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UIReconnect, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UIReconnectConfirm, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UIReconnectNotice, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UIBackReturn, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UI_Email, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIGiftCodeAwards, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UITask, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_CameraChange, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_PVPDefendPrepare, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Shop, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_Purchase, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_GetItemWindow, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UINoticeOne, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UI_PVPMain, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIMissionWin, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Camp, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_GetItemSettle, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_BuyDiamond, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_LevelDetail, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_DailyBonus, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIFightPoster, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_BuyEnergy, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UITaskTip, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UI_PVPRankInfo, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_PVPRankReward, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_MusicPanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_Transition, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UI_LevelTransition, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UINoticeTwo, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UI_TransitionNormal, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UI_CommandSkillCultivate, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_TeamAndSkillSelect, UIWindowLayer.Normal, UIOpenType.Pop);
_WindowMeta(UINameConst.UICameraAndPosterChange, UIWindowLayer.Normal, UIOpenType.Pop);//FullScreen
_WindowMeta(UINameConst.UI_ItemCategory, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_Guide, UIWindowLayer.Guide);
_WindowMeta(UINameConst.UI_GuideTip, UIWindowLayer.Guide);
_WindowMeta(UINameConst.UI_ChoosePerson, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_WriteName, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_NameConfirmWindow, UIWindowLayer.Normal, UIOpenType.FullScreen);
}
private void _WindowMeta(string name, UIWindowLayer windowLayer, UIOpenType uiOpenType = UIOpenType.Pop)
{
_windowsInfo.Add(name, new WindowInfo {windowLayer = windowLayer, UIOpenType = uiOpenType});
}
}
public static class UINameConst
{
public static readonly string UILogin = "StartScene/UILogin";
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 UIFightPoster = "LevelSceneUI/UIPosterAndSkillInfo";
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 UI_SkinChange = "MainScene/ShowCharacter/SkinChange";
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 UIMissionWin = "LevelSceneUI/LevelSettle/UI_MissionWin";
public static readonly string UI_GetItemSettle = "LevelSceneUI/LevelSettle/UI_GetItemSettle";
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 UI_Transition = "Interface/UI_Transition";
public static readonly string UIRedPointTest = "Test/UI_RedPointTest";
/// <summary>
/// 抽卡动画界面
/// </summary>
public static readonly string UI_RaffleAnim = "MainScene/Raffle/UI_RaffleAnim";
/// <summary>
/// 单次抽取结果
/// </summary>
public static readonly string UI_RaffleOneResult = "MainScene/Raffle/UI_RaffleOneResult"; // 测试
/// <summary>
/// 抽卡结果界面
/// </summary>
public static readonly string UI_RaffleTotalResult = "MainScene/Raffle/UI_RaffleTotalResult"; // 测试
/// <summary>
/// 抽卡主界面
/// </summary>
public static readonly string UI_DrawMain = "DrawPanel/UI_DrawMainPanel";
/// <summary>
/// 抽卡天井兑换界面
/// </summary>
public static readonly string UI_ExchangePanel = "DrawPanel/ExchangePanel/UI_ExchangePanel";
/// <summary>
/// 抽卡详情界面
/// </summary>
public static readonly string UI_CardPoolDetails = "DrawPanel/CardPoolDetailPanel/UI_CardPoolDetailsPanel";
/// <summary>
/// 播放视频界面
/// </summary>
public static readonly string UI_PlayVideo = "Interface/UI_PlayVideo";
public static readonly string UIVersionUpdate = "VersionUpdate/UI_VersionUpdate";
public static readonly string UINewLogin = "StartScene/UINewLogin";
public static readonly string UIGiftCode = "MainScene/GiftCode/UIGiftCode";
/// <summary>
/// 主界面
/// </summary>
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 UINoticeTwo = "Common/Notice/UINoticeTwo";
public static readonly string UITask = "Interface/UI_MissionPannel";
public static readonly string UITaskTip = "Interface/UI_Achievement";
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 UINoticeOne = "Common/Notice/UINoticeOne";
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";
public static readonly string UI_CameraChange = "Interface/UI_CameraChange";
public static readonly string UICameraAndPosterChange = "Interface/UICameraAndPosterChange";
public static readonly string UI_PVPDefendPrepare = "PVP/UI_DefendSetting";//"PVP/UI_PVPDefendPrepare";
public static readonly string UI_PVPRankInfo = "PVP/UI_PVPRankInfo";
public static readonly string UI_PVPRankReward = "PVP/UI_PVPRankReward";
public static readonly string UI_Shop = "Interface/Shop/UI_Shop";
public static readonly string UI_Purchase = "Interface/Shop/UI_Purchase";
public static readonly string UI_GetItemWindow= "Interface/Shop/UI_GetItemWindow";
public static readonly string UI_PVPMain = "PVP/UI_PVPMain";
public static readonly string UI_Camp = "Camp/UI_Camp";
public static readonly string UI_BuyDiamond = "Interface/Shop/UI_BuyDiamond";
public static readonly string UI_LevelDetail = "LevelSelect/UI_LevelDetail";
public static readonly string UI_LevelTransition = "LevelSceneUI/LevelBegin/UI_LevelTransition";
public static readonly string UI_MusicPanel = "Interface/UI_MusicPannel";
/// <summary>
/// 指挥官技能养成界面
/// </summary>
public static readonly string UI_CommandSkillCultivate = "CommandSkill/UI_CommandSkillCultivate";
/// <summary>
/// 队伍选择和指挥官技能选择进入战斗界面
/// </summary>
public static readonly string UI_TeamAndSkillSelect = "CommandSkill/CommandAndTeamSelect/UI_TeamAndSkillSelect";
public static readonly string UI_DailyBonus = "Interface/UI_DailyBonus";
//Loading转场
public static readonly string UI_TransitionNormal = "Transition/UI_TransitionNormal";
public static readonly string UI_BuyEnergy = "Interface/Shop/UI_BuyEnergy";
public static readonly string UI_ItemCategory= "Interface/UI_Category";
/// <summary>
/// 新手引导UI
/// </summary>
public static readonly string UI_Guide = "Guide/UI_Guide";
/// <summary>
/// 引导说明UI
/// </summary>
public static readonly string UI_GuideTip = "Guide/UI_GuideTip";
/// <summary>
/// 选主角
/// </summary>
public static readonly string UI_ChoosePerson = "Interface/UI_ChoosePerson";
/// <summary>
/// 改名
/// </summary>
public static readonly string UI_WriteName = "Interface/UI_WriteName";
/// <summary>
/// 改名确定窗口
/// </summary>
public static readonly string UI_NameConfirmWindow = "Interface/UI_NameConfirmWindow";
}