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

657 lines
39 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections.Generic;
public partial class UIManager
{
public struct WindowInfo
{
public UIWindowLayer windowLayer;
public UIOpenType UIOpenType;
public bool NotSetMainCamera;
public bool IsAutoAnim;
}
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.UIAirView, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UIScrollNotice, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UIClickSheild, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UI_Update, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UI_LogIn, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_LoadingProgressInterface, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UI_AgeTip, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_LoginTips, UIWindowLayer.Max);
_WindowMeta(UINameConst.UI_LoadingInterface, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UIReconnect, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UIReconnectConfirm, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UIReconnectNotice, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UIBackReturn, UIWindowLayer.Waiting, UIOpenType.Pop, false, true);
_WindowMeta(UINameConst.UI_StartGameInterface, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UINoticeTwo, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UINewLogin, UIWindowLayer.Normal);
//通用
_WindowMeta(UINameConst.UI_GetItemSettle, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_GetItemWindow, UIWindowLayer.Normal, UIOpenType.Pop, false, false);
_WindowMeta(UINameConst.UI_ConfirmClaimMedal, UIWindowLayer.Normal, UIOpenType.Pop, false, false);
_WindowMeta(UINameConst.UINoticeOne, UIWindowLayer.Waiting);
_WindowMeta(UINameConst.UI_Transition, UIWindowLayer.Waiting, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_BuyEnergy, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UITaskTip, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UI_Tip, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_Confirm, UIWindowLayer.Normal, UIOpenType.FullScreen);
// 内购
_WindowMeta(UINameConst.UI_Pay, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_BuyDiamond, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_CreditPointExchangePanel, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_CreditPointExchangeTip, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
//战斗
_WindowMeta(UINameConst.UITeamFight, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIFightTeam, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIFightTeamCD, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIFightTeamHP, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIFightTeamCommandeSkill, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIFightInfoTip, UIWindowLayer.ForeGround, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIFightClock, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIFightClockDynamic, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIPause, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UIDefeatGame, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UIPassGame, UIWindowLayer.Normal, UIOpenType.Pop);
_WindowMeta(UINameConst.UI_PassGame_Sweep, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UIFightScene, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIStoryMain, UIWindowLayer.Normal, UIOpenType.Pop, true, false);
_WindowMeta(UINameConst.UI_RoleFirstShow, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UISkipPlot, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UIMissionWin, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UIFightPoster, UIWindowLayer.ForeGround, UIOpenType.Pop, true, false);
_WindowMeta(UINameConst.UI_StartBtn_CMSBtn, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIStoryFightMain, UIWindowLayer.ForeGround, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UIFightTarget, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UISkillPut, UIWindowLayer.ForeGround, UIOpenType.Pop, true);
#region 军团战
_WindowMeta(UINameConst.UI_LegionBattleScene, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_LegionBattleMain, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_LegionBattleCommand, UIWindowLayer.Normal, UIOpenType.FullScreen, false);
_WindowMeta(UINameConst.UI_LegionBattleNotice, UIWindowLayer.Tips, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_LegionBattleSettle, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
_WindowMeta(UINameConst.UI_LegionBattleReport, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_LegionCharacterInfo, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_LegionBattleBaseInfo, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_LegionBattleBreathe, UIWindowLayer.Normal, UIOpenType.Pop, true);
#endregion
//养成
_WindowMeta(UINameConst.UISelectCharacter, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UIShowAllCharacterSort, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_Cultivate, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_CultivateDetailNew, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_CulDetailNewTemp, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_Cultivate_ProAndInfo, UIWindowLayer.Normal, UIOpenType.Pop, false, false);// 这两个界面是
_WindowMeta(UINameConst.UI_Cultivate_Detail, UIWindowLayer.Normal, UIOpenType.Pop, false, false);// 从Cultivate界面内部打开的
_WindowMeta(UINameConst.UILevelUp, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UIFavorable, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_FavorPanel, UIWindowLayer.Normal, UIOpenType.FullScreen, false, false);
_WindowMeta(UINameConst.UI_FavorItemUsing, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_FavorCharacter, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UIPoster, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UIRank, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UIAdvance, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UISkill_LevelUp, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_VehicleChoose, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_VehicleCultivate, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_VehicleCultivateNew, UIWindowLayer.Normal, UIOpenType.FullScreen, true, true);
_WindowMeta(UINameConst.UI_VehicleCultivatePro, UIWindowLayer.Normal, UIOpenType.FullScreen, true, true);
_WindowMeta(UINameConst.UI_VehicleTechTree, UIWindowLayer.Normal, UIOpenType.FullScreen, false);
_WindowMeta(UINameConst.UI_VehiclePartTree, UIWindowLayer.Normal, UIOpenType.FullScreen, false);
_WindowMeta(UINameConst.UI_VehicleSkin, UIWindowLayer.Normal, UIOpenType.FullScreen, true, true);
_WindowMeta(UINameConst.UI_VehiclePartTreeDetail, UIWindowLayer.Normal, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_VehicleLevelUp, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_SkinChange, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UIJobIntroducePanel, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
//主界面、设置
_WindowMeta(UINameConst.UIRedPointTest, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UITeamInfo, UIWindowLayer.Normal, UIOpenType.Pop);
_WindowMeta(UINameConst.UITeamMarkChoose, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_MainPanel, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_Setting, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_CdkChangePanel, UIWindowLayer.Normal, UIOpenType.Pop, false, true);
_WindowMeta(UINameConst.UI_Notice, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_Email, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UITask, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_CameraChange, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_DailyBonus, UIWindowLayer.ForeGround, UIOpenType.FullScreen, true, true);
_WindowMeta(UINameConst.UI_CommandSkillCultivate, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_TeamAndSkillSelect, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_SelectSkillPanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UICameraAndPosterChange, UIWindowLayer.Normal, UIOpenType.Pop, false, true);//FullScreen会导致调整看板娘操作时UI不显示
_WindowMeta(UINameConst.UI_ItemCategory, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_ItemDetailInfo, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_ItemSourcePanel, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_UsingItem, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_GiftItem, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_PlayerInfo, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_EditIntroduction, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_EditBirthday, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_WriteTeamName, UIWindowLayer.Normal, UIOpenType.Pop, false, true);
_WindowMeta(UINameConst.UI_Activity, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
//抽卡
_WindowMeta(UINameConst.UI_DrawResultCharacters, UIWindowLayer.Normal, UIOpenType.FullScreen, true, true);
_WindowMeta(UINameConst.UI_RaffleAnim, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_DrawPannelCharacter, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_DrawMain, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_ExchangePanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_CardPoolDetails, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_PlayVideo, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_PVAnimaPlay, UIWindowLayer.Guide, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UIGiftCode, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_DrawPanelRoleInfo, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_RaffleExChange, UIWindowLayer.Normal, UIOpenType.FullScreen);
//关卡
_WindowMeta(UINameConst.UI_LevelSelect, UIWindowLayer.Normal, UIOpenType.FullScreen, true, true);
_WindowMeta(UINameConst.UI_MainStarReward, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_WarScoreReward, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_BeforeFight, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_LevelDetail, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
//PVP
_WindowMeta(UINameConst.UI_PVPDefendPrepare, UIWindowLayer.Normal, UIOpenType.FullScreen, true, true);
_WindowMeta(UINameConst.UI_PVPMain, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_PVPRankInfo, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_PVPRankReward, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_PVPSettlement, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
//商店
_WindowMeta(UINameConst.UIGiftCodeAwards, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_Purchase, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_Shop, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
_WindowMeta(UINameConst.UI_ExChangeShopRefresh, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
_WindowMeta(UINameConst.UI_ExChangeShopPurchase, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
_WindowMeta(UINameConst.UI_GiftShopPurchase, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
_WindowMeta(UINameConst.UI_ChargeShopPurchase, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
_WindowMeta(UINameConst.UI_ClothShopPurchase, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
//营地
_WindowMeta(UINameConst.UI_Camp, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
_WindowMeta(UINameConst.UI_CampSecond, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
_WindowMeta(UINameConst.UI_CampEdit, UIWindowLayer.Normal, UIOpenType.FullScreen, true);
//军团
_WindowMeta(UINameConst.UI_LegionSquarePanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_LegionInfoPanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_LegionCreatePanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_MemberOperationPanel, UIWindowLayer.Normal, UIOpenType.Pop);
_WindowMeta(UINameConst.UI_LegionSettingPanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_LegionApplyPanel, UIWindowLayer.Normal, UIOpenType.Pop);
//军团战
_WindowMeta(UINameConst.UI_LegionBattleApply, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_LegionBattleTeamOrganization, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_LegionBattleMercenarySquare, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_MercenaryApply, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_MercenaryApplyTip, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_LegionBattleMercenaryApply, 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, false, true);
_WindowMeta(UINameConst.UI_NameConfirmWindow, UIWindowLayer.Normal, UIOpenType.FullScreen);
//通行证
_WindowMeta(UINameConst.UI_BattlePassPurchase, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_BattlePass, UIWindowLayer.Normal, UIOpenType.FullScreen);
_WindowMeta(UINameConst.UI_BattlePassBuyLevelPanel, UIWindowLayer.Normal, UIOpenType.FullScreen);
//其他
_WindowMeta(UINameConst.UI_LevelUpParticleWindow, UIWindowLayer.Normal, UIOpenType.Pop, false, true);
_WindowMeta(UINameConst.UI_PlayerLevelUp, UIWindowLayer.Normal, UIOpenType.Pop, false, true);
_WindowMeta(UINameConst.UI_MusicPanel, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_LevelTransition, UIWindowLayer.Tips);
_WindowMeta(UINameConst.UI_TransitionNormal, UIWindowLayer.Waiting, UIOpenType.Pop, true);
_WindowMeta(UINameConst.UI_LongTip, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_NoticeWindow, UIWindowLayer.Normal, UIOpenType.Pop, false, true);
_WindowMeta(UINameConst.UI_RealNameIdentify, UIWindowLayer.Normal);
_WindowMeta(UINameConst.UI_LoadingBlack, UIWindowLayer.Waiting);
// 功能解锁UI
_WindowMeta(UINameConst.UI_FunctionLock, UIWindowLayer.ForeGround, UIOpenType.Pop);
//勋章
_WindowMeta(UINameConst.UI_MedalMainPanel, UIWindowLayer.Normal, UIOpenType.FullScreen, false, false);
_WindowMeta(UINameConst.UI_MedalInfoPanel, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
_WindowMeta(UINameConst.UI_MedalEditorShowPanel, UIWindowLayer.Normal, UIOpenType.FullScreen, false, true);
}
/// <summary>
/// 注册UI窗口
/// </summary>
/// <param name="name"></param>
/// <param name="windowLayer"></param> 层级
/// <param name="uiOpenType"></param> 打开方式pop弹窗fullscreen全屏全屏会关闭主相机
/// <param name="isNotSetMainCamera"></param> 为true就不设置主相机无论是否全屏
/// <param name="isAutoAnim"></param> 是否自动播放开关界面渐变动画
private void _WindowMeta(string name, UIWindowLayer windowLayer, UIOpenType uiOpenType = UIOpenType.Pop,
bool isNotSetMainCamera = false, bool isAutoAnim = false)
{
_windowsInfo.Add(name, new WindowInfo {windowLayer = windowLayer, UIOpenType = uiOpenType, NotSetMainCamera = isNotSetMainCamera, IsAutoAnim = isAutoAnim});
}
public bool GetIsNotSetCameraByPath(string uiPath)
{
if (WindowInfos.TryGetValue(uiPath, out var windowInfo))
{
return windowInfo.NotSetMainCamera;
}
DebugUtil.LogError($"无法获取到本应该创建的UIWindow uiPath:{uiPath}");
return false;
}
public bool GetIsAutoPlayAnim(string uiPath)
{
if (WindowInfos.TryGetValue(uiPath, out var windowInfo))
{
return windowInfo.IsAutoAnim;
}
DebugUtil.LogError($"无法获取到本应该创建的UIWindow uiPath:{uiPath}");
return false;
}
/// <summary>
/// 根据UI类型获取UI名
/// </summary>
/// <param name="uiType"></param>
/// <returns></returns>
/// <exception cref="System.Exception"></exception>
public static string GetUINameByType(E_UIType uiType)
{
return uiType switch
{
E_UIType.TeamInfo => UINameConst.UITeamInfo, // 队伍信息
E_UIType.SelectCharacter => UINameConst.UISelectCharacter, // 选择角色
E_UIType.VehicleChoose => UINameConst.UI_VehicleChoose, // 载具选择
E_UIType.StartBtn_CMSBtn => UINameConst.UI_StartBtn_CMSBtn, // 战斗作战开始
E_UIType.TeamAndSkillSelect => UINameConst.UI_TeamAndSkillSelect, // 队伍和技能选择
_ => throw new System.Exception($"未处理类型{uiType}"),
};
}
}
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 UIFightClockDynamic = "LevelSceneUI/LevelDynamic/UIFightClockDynamic";
public static readonly string UIPause = "LevelSceneUI/UIPause";
public static readonly string UIDefeatGame = "LevelSceneUI/LevelSettle/UIDefeatGame";
public static readonly string UIPassGame = "LevelSceneUI/LevelSettle/UIPassGame";
/// <summary>
/// 扫荡通关结算
/// </summary>
public static readonly string UI_PassGame_Sweep = "LevelSceneUI/UI_PassGame_Sweep";
public static readonly string UI_PlayerLevelUp = "LevelSceneUI/LevelSettle/UI_PlayerLevelUpInfo";
public static readonly string UIFightScene = "LevelSceneUI/UIFightScene";
public static readonly string UIFightPoster = "LevelSceneUI/UIPosterAndSkillInfo";
public static readonly string UIStoryFightMain = "Story/UIStoryFightMain";
public static readonly string UIFightTarget = "LevelSceneUI/UIFightTarget";
public static readonly string UISkillPut = "LevelSceneUI/UISkillPut";
public static readonly string UIFightTeam = "LevelSceneUI/UIFightTeam";
public static readonly string UIFightInfoTip = "LevelSceneUI/LevelFightInfo/UI_FightInfoTip";
public static readonly string UIFightTeamCD = "LevelSceneUI/LevelDynamic/UIFightTeamCD";
public static readonly string UIFightTeamHP = "LevelSceneUI/LevelDynamic/UIFightTeamHP";
public static readonly string UIFightTeamCommandeSkill = "LevelSceneUI/LevelDynamic/UIFightTeamCommandeSkill";
public static readonly string UI_LevelUpParticleWindow = "Particle/UI_LevelUpParticleWindow";
#region 军团战
/// <summary>
/// 军团场景控制
/// </summary>
public static readonly string UI_LegionBattleScene = "LegionBattle/UI_LegionBattleScene";
/// <summary>
/// 军团战主界面
/// </summary>
public static readonly string UI_LegionBattleMain = "LegionBattle/UI_LegionBattleMain";
/// <summary>
/// 军团战信息和操作界面
/// </summary>
public static readonly string UI_LegionBattleCommand = "LegionBattle/UI_LegionBattleCommand";
/// <summary>
/// 军团战信息提示界面
/// </summary>
public static readonly string UI_LegionBattleNotice = "LegionBattle/UI_LegionBattleNotice";
/// <summary>
/// 军团战结算界面
/// </summary>
public static readonly string UI_LegionBattleSettle = "LegionBattle/UI_LegionBattleSettle";
/// <summary>
/// 军团战战斗内战报
/// </summary>
public static readonly string UI_LegionBattleReport = "LegionBattle/UI_LegionBattleReport";
/// <summary>
/// 军团棋子信息
/// </summary>
public static readonly string UI_LegionCharacterInfo = "LegionBattle/New/UI_LegionCharacterInfo";
/// <summary>
/// 军团据点信息
/// </summary>
public static readonly string UI_LegionBattleBaseInfo = "LegionBattle/New/UI_LegionBattleBaseInfo";
/// <summary>
/// 军团战玩家呼吸UI
/// </summary>
public static readonly string UI_LegionBattleBreathe = "LegionBattle/UI_LegionBattleBreathe";
#endregion
public static readonly string UI_LoadingBlack = "Interface/UI_LoadingBlack";
public static readonly string UISelectCharacter = "MainScene/ShowCharacter/UISelectCharacter";
public static readonly string UIShowAllCharacterSort = "MainScene/UIShowAllCharacterSort";
public static readonly string UI_Cultivate = "CharacterCultivate/UI_Cultivate";
public static readonly string UI_CultivateDetailNew = "CharacterCultivate/UI_CultivateDetailNew";
public static readonly string UI_CulDetailNewTemp = "CharacterCultivate/UI_CulDetailNewTemp";
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 UIJobIntroducePanel = "CharacterCultivate/UIJobIntroducePanel";
public static readonly string UIAirView = "LevelSceneUI/UIAirView";
public static readonly string UIScrollNotice = "LevelSceneUI/UIScrollNotice";
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 UI_FavorPanel = "Favor/UI_FavorPanel";
public static readonly string UI_FavorItemUsing = "Favor/UI_FavorItemUsing";
public static readonly string UI_FavorCharacter = "Favor/UI_FavorCharacter";
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 UITeamInfo = "TeamChoose/UI_TeamInfo";
public static readonly string UITeamMarkChoose = "TeamChoose/UI_TeamMarkChoose";
public static readonly string UIStoryMain = "Story/UIStoryMain";
public static readonly string UISkipPlot = "Plot/UI_SkipPlot";
public static readonly string UI_RoleFirstShow = "Story/UI_RoleFirstShow";
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";
#region 抽卡
/// <summary>
/// 抽卡动画界面
/// </summary>
public static readonly string UI_RaffleAnim = "MainScene/Raffle/UI_RaffleAnim";
/// <summary>
/// 抽卡角色详情
/// </summary>
public static readonly string UI_DrawPannelCharacter = "DrawPanel/DrawGetCharacter/UI_DrawPannelCharacter";
/// <summary>
/// 抽卡结果界面
/// </summary>
public static readonly string UI_DrawResultCharacters = "DrawPanel/DrawResultCharacter/UI_DrawResultCharacters";
/// <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>
/// 抽卡up角色详情界面
/// </summary>
public static readonly string UI_DrawPanelRoleInfo = "DrawPanel/UI_DrawPanelRoleInfo";
/// <summary>
/// 抽卡券不足提示兑换界面
/// </summary>
public static readonly string UI_RaffleExChange = "DrawPanel/UI_RaffleExChange";
#endregion
/// <summary>
/// 播放视频界面
/// </summary>
public static readonly string UI_PlayVideo = "Interface/UI_PlayVideo";
/// <summary>
/// 播放PV视频界面
/// </summary>
public static readonly string UI_PVAnimaPlay = "LevelSelect/UI_PVAnimaPlay";
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";
/// <summary>
/// 关卡选择
/// </summary>
public static readonly string UI_LevelSelect = "LevelSelect/UI_LevelSelect";
/// <summary>
/// 主线星级奖励界面
/// </summary>
public static readonly string UI_MainStarReward = "LevelSelect/UI_MainStarReward";
/// <summary>
/// 战役评分奖励界面
/// </summary>
public static readonly string UI_WarScoreReward = "LevelSelect/UI_WarScoreReward";
public static readonly string UI_BeforeFight = "LevelSelect/UI_BeforeFight";
public static readonly string UI_Activity = "Activity/UI_Activity";
public static readonly string UI_Setting = "Setting/UI_Setting";
public static readonly string UI_CdkChangePanel = "Setting/UI_CdkChangePanel";
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 = "TaskPanel/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_VehicleCultivateNew = "MainScene/VehicleCultivate/UI_VehicleCultivateNew";
public static readonly string UI_VehicleCultivatePro = "Interface_Vehicle/UI_VehicleCultivatePro";
public static readonly string UI_VehicleTechTree = "Interface_Vehicle/UI_VehicleTechTree";
public static readonly string UI_VehiclePartTree = "Interface_Vehicle/UI_VehiclePartTree";
public static readonly string UI_VehicleSkin = "Interface_Vehicle/UI_VehicleSkin";
public static readonly string UI_VehiclePartTreeDetail = "Interface_Vehicle/UI_VehiclePartTreeDetail";
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 UI_StartGameInterface = "StartScene/Newest/UI_StartGameInterface";
/// <summary>
/// 游戏启动加载界面
/// </summary>
public static readonly string UI_LoadingProgressInterface = "StartScene/Newest/UI_LoadingProgressInterface";
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_AgeTip = "StartScene/Newest/UI_AgeTip";
public static readonly string UI_LoginTips = "StartScene/New/UI_LoginTips";
/// <summary>
/// 通用加载界面
/// </summary>
public static readonly string UI_LoadingInterface = "StartScene/Newest/UI_LoadingInterface";
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_PVPSettlement = "PVP/UI_PVPSettlement";
public static readonly string UI_Shop = "Shop/UI_Shop";
public static readonly string UI_ExChangeShopRefresh = "Shop/UI_ExChangeShopRefresh";
public static readonly string UI_ExChangeShopPurchase = "Shop/UI_ExChangeShopPurchase";
public static readonly string UI_ChargeShopPurchase = "Shop/UI_ChargeShopPurchase";
public static readonly string UI_GiftShopPurchase = "Shop/UI_GiftShopPurchase";
public static readonly string UI_Purchase = "Interface/Shop/UI_Purchase";
public static readonly string UI_ClothShopPurchase = "Shop/UI_ClothShopPurchase";
public static readonly string UI_GetItemWindow = "Interface/Shop/UI_GetItemWindow";
public static readonly string UI_ConfirmClaimMedal = "Medal/UI_ConfirmClaimMedal";
public static readonly string UI_PVPMain = "PVP/UI_PVPMain";
/// <summary>
/// 营地主界面
/// </summary>
public static readonly string UI_Camp = "Camp/UI_Camp";
/// <summary>
/// 营地二级界面
/// </summary>
public static readonly string UI_CampSecond = "Camp/UI_Camp_Second";
/// <summary>
/// 营地编辑界面
/// </summary>
public static readonly string UI_CampEdit = "Camp/UI_CampEdit";
//货币
public static readonly string UI_BuyDiamond = "Interface/Shop/UI_BuyDiamond";
public static readonly string UI_CreditPointExchangePanel = "CreditPointExChange/UI_CreditPointExchangePanel";
public static readonly string UI_CreditPointExchangeTip = "CreditPointExChange/UI_CreditPointExchangeTip";
//通用提示弹窗
public static readonly string UI_Tip = "Common/Tip/UI_Tip";
public static readonly string UI_Confirm = "Common/Notice/UI_Confirm ";
public static readonly string UI_Pay = "PayWindow/UI_PayWindow";
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";
/// <summary>
/// 指挥官技能选择界面
/// </summary>
public static readonly string UI_SelectSkillPanel = "CommandSkill/CommandAndTeamSelect/SelectSkillPanel";
public static readonly string UI_DailyBonus = "Interface/UI_DailyBonus";
//Loading转场
public static readonly string UI_TransitionNormal = "Transition/UI_TransitionNormal";
//防沉迷消息提醒
public static readonly string UI_LongTip = "StartScene/Newest/UI_LongTip";
//实名认证提醒
public static readonly string UI_NoticeWindow = "StartScene/Newest/UI_NoticeWindow";
public static readonly string UI_RealNameIdentify = "StartScene/Newest/UI_RealNameIdentify";
public static readonly string UI_BuyEnergy = "Interface/Shop/UI_BuyEnergy";
public static readonly string UI_ItemCategory = "Interface/UI_Category";
public static readonly string UI_ItemDetailInfo = "Interface/UI_ItemDetailInfo";
public static readonly string UI_ItemSourcePanel = "Common/UI_ItemSourcePanel";
public static readonly string UI_UsingItem = "Common/UI_UsingItem";
public static readonly string UI_GiftItem = "Common/UI_GiftItem";
/// <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";
public static readonly string UI_WriteTeamName = "TeamChoose/UI_EditTeamName";
public static readonly string UI_PlayerInfo = "PlayerInfo/UI_PlayerInfo";
public static readonly string UI_EditIntroduction = "PlayerInfo/UI_EditIntroduction";
public static readonly string UI_EditBirthday = "PlayerInfo/UI_EditBirthday";
//军团
public static readonly string UI_LegionSquarePanel = "Legion/UI_LegionSquarePanel";
public static readonly string UI_LegionInfoPanel = "Legion/UI_LegionInfoPanel";
public static readonly string UI_LegionCreatePanel = "Legion/UI_LegionCreatePanel";
public static readonly string UI_MemberOperationPanel = "Legion/UI_MemberOperationPanel";
public static readonly string UI_LegionSettingPanel = "Legion/UI_LegionSettingPanel";
public static readonly string UI_LegionApplyPanel = "Legion/UI_LegionApplyPanel";
//军团战
public static readonly string UI_LegionBattleApply = "LegionBattle/UI_LegionBattleApply";
public static readonly string UI_LegionBattleTeamOrganization = "LegionBattle/UI_LegionBattleTeamOrganize";
public static readonly string UI_LegionBattleMercenarySquare = "LegionBattle/UI_LegionBattleMercenarySquare";
public static readonly string UI_MercenaryApply = "LegionBattle/UI_MercenaryApply";
public static readonly string UI_MercenaryApplyTip = "LegionBattle/UI_MercenaryApplyTip";
public static readonly string UI_LegionBattleMercenaryApply = "LegionBattle/UI_LegionBattleMercenaryApply";
/// <summary>
/// 购买通行证
/// </summary>
public static readonly string UI_BattlePassPurchase = "BattlePass/UI_BattlePassPurchase";
/// <summary>
/// 购买通行证等级
/// </summary>
public static readonly string UI_BattlePassBuyLevelPanel = "BattlePass/UI_BattlePassBuyLevelPanel";
public static readonly string UI_BattlePass = "BattlePass/UI_BattlePass";
/// <summary>
/// 功能锁UI
/// </summary>
public static readonly string UI_FunctionLock = "FunctionLock/UI_FunctionLock";
//勋章
public static readonly string UI_MedalMainPanel = "Medal/UI_MedalMainPanel";
public static readonly string UI_MedalInfoPanel = "Medal/UI_MedalInfoPanel";
public static readonly string UI_MedalEditorShowPanel = "Medal/UI_MedalEditorShowPanel";
}