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

207 lines
12 KiB
C#
Raw Normal View History

2023-08-22 19:08:45 +08:00
using System.Collections.Generic;
public partial class UIManager
{
2024-01-24 15:42:01 +08:00
public struct WindowInfo
2023-08-22 19:08:45 +08:00
{
public UIWindowLayer windowLayer;
2024-01-24 15:42:01 +08:00
public UIOpenType UIOpenType;
2023-08-22 19:08:45 +08:00
}
private Dictionary<string, WindowInfo> _windowsInfo = new Dictionary<string, WindowInfo>(64);
2024-01-24 15:42:01 +08:00
public Dictionary<string, WindowInfo> WindowInfos => _windowsInfo;
2023-08-22 19:08:45 +08:00
private void _AllWindowMeta()
{
_WindowMeta(UINameConst.UIDebugShowID, UIWindowLayer.Normal);
// basic
2024-01-24 15:42:01 +08:00
_WindowMeta(UINameConst.UILogin,UIWindowLayer.ForeGround);
2023-08-22 19:08:45 +08:00
_WindowMeta(UINameConst.UITeamFight, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_StartBtn_CMSBtn, UIWindowLayer.Normal);
2024-01-24 15:42:01 +08:00
_WindowMeta(UINameConst.UISelectCharacter, UIWindowLayer.Normal, UIOpenType.FullScreen);
2023-08-22 19:08:45 +08:00
_WindowMeta(UINameConst.UIShowAllCharacterSort, UIWindowLayer.Normal);
2024-01-24 15:42:01 +08:00
_WindowMeta(UINameConst.UI_Cultivate, UIWindowLayer.Normal, UIOpenType.FullScreen);
2023-08-22 19:08:45 +08:00
_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);
2024-01-24 15:42:01 +08:00
_WindowMeta(UINameConst.UITeamChoose, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UITeamInfo, UIWindowLayer.Normal, UIOpenType.Pop);
2024-03-20 14:41:05 +08:00
_WindowMeta(UINameConst.UI_RaffleTotalResult,UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Raffle, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_RaffleOneResult, UIWindowLayer.Normal);
2023-10-19 15:00:19 +08:00
_WindowMeta(UINameConst.UIStoryMain, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UINewLogin, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIGiftCode, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_MainPanel, UIWindowLayer.Normal);
2024-01-24 15:42:01 +08:00
_WindowMeta(UINameConst.UI_LevelSelect,UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_BeforeFight,UIWindowLayer.Normal, UIOpenType.FullScreen);
2023-11-06 19:06:05 +08:00
_WindowMeta(UINameConst.UI_Setting,UIWindowLayer.Normal);
2023-11-06 19:46:50 +08:00
_WindowMeta(UINameConst.UI_Notice, UIWindowLayer.Normal);
2024-01-24 15:42:01 +08:00
_WindowMeta(UINameConst.UI_VehicleChoose, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_VehicleCultivate, UIWindowLayer.Normal, UIOpenType.FullScreen);
2023-11-15 15:23:27 +08:00
_WindowMeta(UINameConst.UI_VehicleLevelUp, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Update, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UI_LogIn, UIWindowLayer.Normal);
2023-11-24 12:48:57 +08:00
_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);
2023-12-11 18:55:42 +08:00
_WindowMeta(UINameConst.UI_Email, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIGiftCodeAwards, UIWindowLayer.Normal);
2024-01-24 15:42:01 +08:00
_WindowMeta(UINameConst.UITask, UIWindowLayer.Normal, UIOpenType.FullScreen);
2023-12-28 15:25:30 +08:00
_WindowMeta(UINameConst.UI_CameraChange, UIWindowLayer.Normal);
2023-12-29 15:07:04 +08:00
_WindowMeta(UINameConst.UI_PVPDefendPrepare, UIWindowLayer.Normal);
2024-01-24 15:42:01 +08:00
_WindowMeta(UINameConst.UI_Shop, UIWindowLayer.Normal, UIOpenType.FullScreen);
2024-01-04 19:14:18 +08:00
_WindowMeta(UINameConst.UI_Purchase, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_GetItemWindow, UIWindowLayer.Normal);
2024-02-01 15:37:37 +08:00
_WindowMeta(UINameConst.UINoticeOne, UIWindowLayer.Waiting);
2024-01-08 19:14:33 +08:00
_WindowMeta(UINameConst.UI_PVPMain,UIWindowLayer.Normal);
2024-01-12 14:38:11 +08:00
_WindowMeta(UINameConst.UIMissionWin,UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Camp,UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_GetItemSettle,UIWindowLayer.Normal);
2024-01-18 13:57:01 +08:00
_WindowMeta(UINameConst.UI_Patio, UIWindowLayer.Normal);
2024-01-24 13:29:46 +08:00
_WindowMeta(UINameConst.UI_BuyDiamond, UIWindowLayer.Normal);
2024-02-20 15:54:14 +08:00
_WindowMeta(UINameConst.UI_LevelDetail, UIWindowLayer.Normal);
2024-02-28 15:10:11 +08:00
_WindowMeta(UINameConst.UI_DailyBonus, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIFightPoster, UIWindowLayer.Normal);
2024-01-29 16:30:26 +08:00
2024-02-01 15:37:37 +08:00
_WindowMeta(UINameConst.UINoticeTwo, UIWindowLayer.Waiting);
2024-02-23 13:16:47 +08:00
2024-03-06 17:36:51 +08:00
_WindowMeta(UINameConst.UI_CommandSkillCultivate, UIWindowLayer.Normal);
2024-03-08 20:00:56 +08:00
_WindowMeta(UINameConst.UI_TeamAndSkillSelect, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UICameraAndPosterChange, UIWindowLayer.Normal, UIOpenType.FullScreen);
2023-08-22 19:08:45 +08:00
}
2024-01-24 15:42:01 +08:00
private void _WindowMeta(string name, UIWindowLayer windowLayer, UIOpenType uiOpenType = UIOpenType.Pop)
2023-08-22 19:08:45 +08:00
{
2024-01-24 15:42:01 +08:00
_windowsInfo.Add(name, new WindowInfo {windowLayer = windowLayer, UIOpenType = uiOpenType});
2023-08-22 19:08:45 +08:00
}
}
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";
2023-08-22 19:08:45 +08:00
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";
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 UIMissionWin = "LevelSceneUI/LevelSettle/UI_MissionWin";
public static readonly string UI_GetItemSettle = "LevelSceneUI/LevelSettle/UI_GetItemSettle";
2023-10-19 15:00:19 +08:00
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";
2024-03-19 16:57:10 +08:00
/// <summary>
/// 抽卡界面
/// </summary>
2024-03-20 14:41:05 +08:00
public static readonly string UI_Raffle = "MainScene/Raffle/UI_Raffle"; // 测试
/// <summary>
/// 单次抽取结果
/// </summary>
public static readonly string UI_RaffleOneResult = "MainScene/Raffle/UI_RaffleOneResult"; // 测试
2024-03-19 16:57:10 +08:00
/// <summary>
/// 抽卡结果界面
/// </summary>
2024-03-20 14:41:05 +08:00
public static readonly string UI_RaffleTotalResult = "MainScene/Raffle/UI_RaffleTotalResult"; // 测试
2023-10-19 15:00:19 +08:00
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";
2024-03-25 15:53:35 +08:00
/// <summary>
/// 主界面
/// </summary>
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
2023-12-07 19:58:28 +08:00
public static readonly string UI_Setting = "Interface/UI_Setting";
2023-11-06 19:46:50 +08:00
public static readonly string UI_Notice = "Interface/UI_Notice";
2023-12-08 18:41:26 +08:00
public static readonly string UIBackReturn = "Interface/UI_BackReturn";
2024-02-01 15:37:37 +08:00
public static readonly string UINoticeTwo = "Common/Notice/UINoticeTwo";
public static readonly string UITask = "Interface/UI_MissionPannel";
2023-11-15 15:23:27 +08:00
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";
2023-11-20 16:47:49 +08:00
public static readonly string UI_Update = "Interface/UI_Update";
2023-11-24 12:48:57 +08:00
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";
2023-11-24 12:48:57 +08:00
public static readonly string UI_LoginTips = "StartScene/New/UI_LoginTips";
public static readonly string UI_Loading = "StartScene/New/UI_Loading";
2023-12-11 18:55:42 +08:00
public static readonly string UIGiftCodeAwards = "MainScene/GiftCode/UIGiftCodeAwards";
public static readonly string UI_Email = "Mail/UI_Email";
2023-12-28 15:25:30 +08:00
public static readonly string UI_CameraChange = "Interface/UI_CameraChange";
public static readonly string UICameraAndPosterChange = "Interface/UICameraAndPosterChange";
2023-12-29 15:07:04 +08:00
public static readonly string UI_PVPDefendPrepare = "PVP/UI_PVPDefendPrepare";
2024-01-04 19:14:18 +08:00
public static readonly string UI_Shop = "Interface/Shop/UI_Shop";
public static readonly string UI_Purchase = "Interface/Shop/UI_Purchase";
2024-01-08 13:13:35 +08:00
public static readonly string UI_GetItemWindow= "Interface/Shop/UI_GetItemWindow";
2024-01-08 19:14:33 +08:00
public static readonly string UI_PVPMain = "PVP/UI_PVPMain";
2024-01-12 14:38:11 +08:00
public static readonly string UI_Camp = "Camp/UI_Camp";
2024-01-18 13:57:01 +08:00
public static readonly string UI_Patio = "MainScene/Raffle/UI_Patio";
2024-01-24 13:29:46 +08:00
public static readonly string UI_BuyDiamond = "Interface/Shop/UI_BuyDiamond";
2024-02-23 16:13:25 +08:00
public static readonly string UI_LevelDetail = "LevelSelect/UI_LevelDetail";
2024-03-08 20:00:56 +08:00
/// <summary>
/// 指挥官技能养成界面
/// </summary>
2024-03-06 17:36:51 +08:00
public static readonly string UI_CommandSkillCultivate = "CommandSkill/UI_CommandSkillCultivate";
2024-03-08 20:00:56 +08:00
/// <summary>
/// 队伍选择和指挥官技能选择进入战斗界面
/// </summary>
public static readonly string UI_TeamAndSkillSelect = "CommandSkill/CommandAndTeamSelect/UI_TeamAndSkillSelect";
2024-01-18 13:57:01 +08:00
2024-02-28 15:10:11 +08:00
public static readonly string UI_DailyBonus = "Interface/UI_DailyBonus";
2023-08-22 19:08:45 +08:00
}