local UIViewSettings = {} local MatchWidthAdapt = 1 --适配宽度 等比拉伸 local KeepHeightAdapt = 2 --保持高度1080 适配宽度 local EventSystem = require('Event/EventSystem') local View_CloseMainCamera = { [Const_UI_Lua.UIEnum.UIAchievementBase] = true, [Const_UI_Lua.UIEnum.UIAnniversaryLuckyDrawMain] = true, [Const_UI_Lua.UIEnum.UIAnniversaryPrepare] = true, --style是hide,push的时候不执行close [Const_UI_Lua.UIEnum.UIActivitiesMain] = true, [Const_UI_Lua.UIEnum.UIActivitiesTeamDungeonEntry] = true, [Const_UI_Lua.UIEnum.UIBossMainPanel] = true, [Const_UI_Lua.UIEnum.UIChangAnSiegeMain] = true, [Const_UI_Lua.UIEnum.UIClimbTowerEntry] = false, [Const_UI_Lua.UIEnum.UICountryAfterChooseView] = true, [Const_UI_Lua.UIEnum.UICountryChooseView] = true, [Const_UI_Lua.UIEnum.UICountryEnfeoff] = true, [Const_UI_Lua.UIEnum.UICountryForeshow] = true, [Const_UI_Lua.UIEnum.UICountryMain] = true, [Const_UI_Lua.UIEnum.UICountryNightBossDamageRank] = true, [Const_UI_Lua.UIEnum.UICountryNightBossMain] = true, [Const_UI_Lua.UIEnum.UICountryNightBossRecord] = true, [Const_UI_Lua.UIEnum.UICountryResetNoticePanel] = true, [Const_UI_Lua.UIEnum.UICountrySalaryBase] = true, [Const_UI_Lua.UIEnum.UICountryWantedTask] = true, [Const_UI_Lua.UIEnum.UICountryWorldBossMain] = true, [Const_UI_Lua.UIEnum.UIDragonArterySummaryPanel] = true, [Const_UI_Lua.UIEnum.UIEquipmentDetail] = true, [Const_UI_Lua.UIEnum.UIEquipmentMain] = true, [Const_UI_Lua.UIEnum.UIFairPlayMainPanel] = true, [Const_UI_Lua.UIEnum.UIFairPlayHistoryMain] = true, [Const_UI_Lua.UIEnum.UIFightThroneMain] = true, [Const_UI_Lua.UIEnum.UIFriendBase] = true, [Const_UI_Lua.UIEnum.UIFriendRechargeMain] = true, [Const_UI_Lua.UIEnum.UIGachaMain] = true, [Const_UI_Lua.UIEnum.UIGachaGet] = true, [Const_UI_Lua.UIEnum.UIGachaPoolSelect] = true, [Const_UI_Lua.UIEnum.UIGachaGetLimit] = true, [Const_UI_Lua.UIEnum.UIGodBeastActivityMain] = true, [Const_UI_Lua.UIEnum.UIGodBeastMainPanel] = true, [Const_UI_Lua.UIEnum.UIGodPetRuneBase] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroBossRankReward] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroBossYesterdayRank] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroStory] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroStore] = true, [Const_UI_Lua.UIEnum.UIGoldHeroReprint] = true, [Const_UI_Lua.UIEnum.UIGVGFightMain] = true, --势力战战斗界面 [Const_UI_Lua.UIEnum.UIGuildActivityDrinkEntry] = true, [Const_UI_Lua.UIEnum.UIGuildActivityEscort] = true, [Const_UI_Lua.UIEnum.UIGuildAlliesMainPanelNew] = true, [Const_UI_Lua.UIEnum.UIGuildAlliesMapView] = true, [Const_UI_Lua.UIEnum.UIGuildCultivationMain] = true, [Const_UI_Lua.UIEnum.UIGuildSalary] = true, [Const_UI_Lua.UIEnum.UIGuildBasePanel] = true, [Const_UI_Lua.UIEnum.UIGuildEscortReport] = true, [Const_UI_Lua.UIEnum.UIGuildFamousPop] = true, [Const_UI_Lua.UIEnum.UIGuildGuildListPanel] = true, [Const_UI_Lua.UIEnum.UIGuildMineMain] = true, [Const_UI_Lua.UIEnum.UIGuildWarArray] = true, [Const_UI_Lua.UIEnum.UIGVGFightGarrisonTroops] = true, [Const_UI_Lua.UIEnum.UIGuildWarPreparationMap] = true, [Const_UI_Lua.UIEnum.UIGuildWarMain] = true, [Const_UI_Lua.UIEnum.UIDyeAppearanceBase] = false, [Const_UI_Lua.UIEnum.UIDyeAppearancePrizeWheel] = true, [Const_UI_Lua.UIEnum.UIGuildWarMapInfo] = true, --势力战地图信息界面 [Const_UI_Lua.UIEnum.UIGuildWarPersonalData] = true, --势力战地图信息界面 [Const_UI_Lua.UIEnum.UIGuildWarPreparationMap] = true, --势力战地图信息界面 [Const_UI_Lua.UIEnum.UIGuildWarRevive] = true, --势力战复活界面 [Const_UI_Lua.UIEnum.UIGuildWarSummaryPanel] = true, [Const_UI_Lua.UIEnum.UIHeroBiographyMain] = true, [Const_UI_Lua.UIEnum.UIHeroBiographySubPanel] = true, [Const_UI_Lua.UIEnum.UIHeroIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIHorseSoulGachaMain] = true, [Const_UI_Lua.UIEnum.UIIllustratedMainPanel] = true, --府邸 [Const_UI_Lua.UIEnum.UIIllustratedSecondPanel] = true, [Const_UI_Lua.UIEnum.UIKingChallengeMainPanel] = true, [Const_UI_Lua.UIEnum.UILuckyLotteryMain] = true, [Const_UI_Lua.UIEnum.UILuckyLotterySelectReward] = true, [Const_UI_Lua.UIEnum.UIMaterialLevel] = true, [Const_UI_Lua.UIEnum.UIMaterialLevelMainPanel] = true, [Const_UI_Lua.UIEnum.UIMedal] = true, --巅峰境界 [Const_UI_Lua.UIEnum.UIMiniMapWorld] = true, [Const_UI_Lua.UIEnum.UIMonopolyMainPanel] = true, [Const_UI_Lua.UIEnum.UIMultiplayerDungeonEntrance] = true, [Const_UI_Lua.UIEnum.UINobilityCommon] = true, [Const_UI_Lua.UIEnum.UIOfficialPositionBase] = true, [Const_UI_Lua.UIEnum.UIOfficialPositionLevelUp] = true, [Const_UI_Lua.UIEnum.UIPlotReview] = true, [Const_UI_Lua.UIEnum.UIPKRoomBase] = true, [Const_UI_Lua.UIEnum.UIPKRoomList] = true, [Const_UI_Lua.UIEnum.OperationActivity.UIHegemonyActivity] = true, [Const_UI_Lua.UIEnum.OperationActivity.UIOACommonDirectGiftPanel] = true, [Const_UI_Lua.UIEnum.UIRebornMain] = true, --铸炼 [Const_UI_Lua.UIEnum.UIRebelStrikeMain] = true, [Const_UI_Lua.UIEnum.UIRedEnvelopeRainReward] = true, [Const_UI_Lua.UIEnum.UIReplayMain] = true, [Const_UI_Lua.UIEnum.UIShopMain] = true, [Const_UI_Lua.UIEnum.UISettingMainPanel] = true, [Const_UI_Lua.UIEnum.UIStormEntrance] = true, [Const_UI_Lua.UIEnum.UIStormMain] = true, [Const_UI_Lua.UIEnum.UISuperGoldBossRank] = true, [Const_UI_Lua.UIEnum.UISuperGoldHonorOrderMain] = true, [Const_UI_Lua.UIEnum.UISuperGoldLotteryMain] = true, [Const_UI_Lua.UIEnum.UISuperGoldStoryMain] = true, [Const_UI_Lua.UIEnum.UISyncFourCountryWarMain] = true, [Const_UI_Lua.UIEnum.UITeamPVE] = true, [Const_UI_Lua.UIEnum.UIWelfareBasePanel] = true, [Const_UI_Lua.UIEnum.UIWarZoneAuctionMain] = true, [Const_UI_Lua.UIEnum.UISlgGvEMain] = true, [Const_UI_Lua.UIEnum.UIDivineWeapon] = true, [Const_UI_Lua.UIEnum.UITurntableMain] = true, [Const_UI_Lua.UIEnum.UIFairAwakenSkillPlan] = true, [Const_UI_Lua.UIEnum.UISubjectMonthMain] = true, [Const_UI_Lua.UIEnum.UISubjectMonthSignIn] = true, [Const_UI_Lua.UIEnum.UISubjectMonthHonorOrderMain] = true, [Const_UI_Lua.UIEnum.UIArray] = false, [Const_UI_Lua.UIEnum.UIAssistanceFightPanel] = false, [Const_UI_Lua.UIEnum.UIBossChallengeFormation] = false, [Const_UI_Lua.UIEnum.UIBossChallengeMain] = false, [Const_UI_Lua.UIEnum.UICharacter] = false, [Const_UI_Lua.UIEnum.UICharacterContrastPopUp] = false, [Const_UI_Lua.UIEnum.UICharacterFormationPopUp] = false, [Const_UI_Lua.UIEnum.UICharacterInfoPopUp] = false, [Const_UI_Lua.UIEnum.UICharacterTeamChangeImage] = false, [Const_UI_Lua.UIEnum.UIClimbTowerMainPanel] = false, [Const_UI_Lua.UIEnum.UICommandTheWorldHonorRollPanel] = false, [Const_UI_Lua.UIEnum.UICommandTheWorldMain] = false, [Const_UI_Lua.UIEnum.UICountryMain] = false, [Const_UI_Lua.UIEnum.UICountryNightBossSummary] = false, [Const_UI_Lua.UIEnum.UICountryOfficial] = false, [Const_UI_Lua.UIEnum.UICountryResetExhibitPanel] = false, [Const_UI_Lua.UIEnum.UICountryWorldBossDetail] = false, [Const_UI_Lua.UIEnum.UIDemonGodMain] = false, [Const_UI_Lua.UIEnum.UIDivineWeaponBasePanel] = false, [Const_UI_Lua.UIEnum.UIDivineWeaponSuccess] = false, [Const_UI_Lua.UIEnum.UIExpelMonsterMain] = false, [Const_UI_Lua.UIEnum.UIFairSoloTournamentStage5] = false, [Const_UI_Lua.UIEnum.UIFairSoloTournamentStage6_Supremacy] = false, [Const_UI_Lua.UIEnum.UIGachaExpression] = false, [Const_UI_Lua.UIEnum.UIGachaShop] = false, [Const_UI_Lua.UIEnum.UIGodBeastActivityMain] = false, [Const_UI_Lua.UIEnum.UIGodBeastBasePanel] = false, [Const_UI_Lua.UIEnum.UIGodBeastEquip] = false, [Const_UI_Lua.UIEnum.UIGodBeastParadise] = false, [Const_UI_Lua.UIEnum.UIGodBeastSuccess] = false, [Const_UI_Lua.UIEnum.UIGodPetBreak] = false, [Const_UI_Lua.UIEnum.UIGoldenHeroAnecdote] = false, [Const_UI_Lua.UIEnum.UIGoldenHeroBossMain] = false, [Const_UI_Lua.UIEnum.UIGoldenHeroFame] = false, [Const_UI_Lua.UIEnum.UIGuildBossMain] = false, [Const_UI_Lua.UIEnum.UIHeroFormationPanel] = false, [Const_UI_Lua.UIEnum.UIHeroLoadingShowPanel] = false, [Const_UI_Lua.UIEnum.UIHeroMatch1v1Stage5] = false, [Const_UI_Lua.UIEnum.UIHeroMatch1v1Stage6_Supremacy] = false, [Const_UI_Lua.UIEnum.UIHeroMatch3v3Stage6_Supremacy] = false, [Const_UI_Lua.UIEnum.UIHeroSelectPanel] = false, [Const_UI_Lua.UIEnum.UIHeroSelectShowPanel] = false, [Const_UI_Lua.UIEnum.UIHeroShowPanel] = false, [Const_UI_Lua.UIEnum.UIHonorOrderReward] = false, [Const_UI_Lua.UIEnum.UIHonorOrderRewardList] = false, [Const_UI_Lua.UIEnum.UIHonorOrderRewardPurchase] = false, [Const_UI_Lua.UIEnum.UIHorseRearMain] = false, [Const_UI_Lua.UIEnum.UILevelSelectPanel] = false, [Const_UI_Lua.UIEnum.UIMultiplayerDungeonMain] = false, [Const_UI_Lua.UIEnum.UINationClimbTowerProgress] = false, [Const_UI_Lua.UIEnum.UIPersonalBossPanel] = false, [Const_UI_Lua.UIEnum.UIPetActiveSuccess] = false, [Const_UI_Lua.UIEnum.UIPetArray] = false, [Const_UI_Lua.UIEnum.UIPetBasePanel] = false, [Const_UI_Lua.UIEnum.UIPetCatchPopUp] = false, [Const_UI_Lua.UIEnum.UIPetChoosePopUp] = false, [Const_UI_Lua.UIEnum.UIPetFormation] = false, [Const_UI_Lua.UIEnum.UIPetIllustratedHandbook] = false, [Const_UI_Lua.UIEnum.UIPetReproduction] = false, [Const_UI_Lua.UIEnum.UIPetReproductionPopUp] = false, [Const_UI_Lua.UIEnum.UIPetSuccinct] = false, [Const_UI_Lua.UIEnum.UIRankListPanel] = false, [Const_UI_Lua.UIEnum.UISoloFightPanel] = false, [Const_UI_Lua.UIEnum.UISpecialTeamMyTeam] = false, [Const_UI_Lua.UIEnum.UIStratagemActiveSuccess] = false, [Const_UI_Lua.UIEnum.UIStratagemEquip] = false, [Const_UI_Lua.UIEnum.UIStratagemPanel] = false, [Const_UI_Lua.UIEnum.UISuperGoldBossMain] = false, [Const_UI_Lua.UIEnum.UISyncSoloMainPanel] = false, [Const_UI_Lua.UIEnum.UISyncTeamPVPMainPanel] = false, [Const_UI_Lua.UIEnum.UISyncTeamPVPSelectHeroPanel] = false, [Const_UI_Lua.UIEnum.UITeamFairChampionshipBaseStage06] = false, [Const_UI_Lua.UIEnum.UITeamMyTeam] = false, [Const_UI_Lua.UIEnum.UIThreeTeamFightChallenge] = false, [Const_UI_Lua.UIEnum.UITotalTopUp] = false, [Const_UI_Lua.UIEnum.UITreasureActiveSuccess] = false, [Const_UI_Lua.UIEnum.UITreasureBasePanel] = false, [Const_UI_Lua.UIEnum.UIWarHorseBasePanel] = false, [Const_UI_Lua.UIEnum.UIWarHorseSuccess] = false, [Const_UI_Lua.UIEnum.UIWorldBossMainPanel] = false, [Const_UI_Lua.UIEnum.UINationClimbTowerMainPanel] = false, [Const_UI_Lua.UIEnum.UISyncSoloFormation] = false, [Const_UI_Lua.UIEnum.UICommonLineUpView] = false, [Const_UI_Lua.UIEnum.UISyncFourCountryWarSelectHeroPanel] = false, [Const_UI_Lua.UIEnum.UIPKSoloFormationPanel] = false, [Const_UI_Lua.UIEnum.UIDialogueNormalView] = false, [Const_UI_Lua.UIEnum.UIRogueSelectHeroPanel] = false, [Const_UI_Lua.UIEnum.UIAwakenActivity] = false, [Const_UI_Lua.UIEnum.UIHeroAwakenExp] = false, [Const_UI_Lua.UIEnum.UISubjectMonthChallenge] = false, [Const_UI_Lua.UIEnum.UISubjectMonthChallengeFormation] = false, [Const_UI_Lua.UIEnum.UISubjectMonthRogueMain] = false, [Const_UI_Lua.UIEnum.UISubjectMonthRogueHeroListMain] = false, [Const_UI_Lua.UIEnum.UIViewUIModels] = false, } --特殊的open时打开相机 close时不能关闭相机 --180之后可以废弃 local SpecialNotCloseMainCamera = { [Const_UI_Lua.UIEnum.UILevelSelectPanel] = true, [Const_UI_Lua.UIEnum.UIClimbTowerMainPanel] = true; [Const_UI_Lua.UIEnum.UINationClimbTowerMainPanel] = true, } local LowPassView = { [Const_UI_Lua.UIEnum.OperationActivity.UIHegemonyActivity] = true, [Const_UI_Lua.UIEnum.OperationActivity.UIOACommonDirectGiftPanel] = true, [Const_UI_Lua.UIEnum.UIAchievementBase] = true, [Const_UI_Lua.UIEnum.UIActivitiesMain] = true, [Const_UI_Lua.UIEnum.UIAnniversaryPrepare] = true, [Const_UI_Lua.UIEnum.UIArray] = true, [Const_UI_Lua.UIEnum.UIAssistanceFightPanel] = true, [Const_UI_Lua.UIEnum.UIBossChallengeFormation] = true, [Const_UI_Lua.UIEnum.UIBossChallengeMain] = true, [Const_UI_Lua.UIEnum.UIBossMainPanel] = true, [Const_UI_Lua.UIEnum.UICharacter] = true, [Const_UI_Lua.UIEnum.UICharacterContrastPopUp] = true, [Const_UI_Lua.UIEnum.UICharacterFormationPopUp] = true, [Const_UI_Lua.UIEnum.UICharacterInfoPopUp] = true, [Const_UI_Lua.UIEnum.UICharacterTeamChangeImage] = true, [Const_UI_Lua.UIEnum.UIClimbTowerEntry] = true, [Const_UI_Lua.UIEnum.UIClimbTowerLevelClear] = true, [Const_UI_Lua.UIEnum.UIClimbTowerMainPanel] = true, [Const_UI_Lua.UIEnum.UIClimbTowerNotice] = true, [Const_UI_Lua.UIEnum.UICommandTheWorldHonorRollPanel] = true, [Const_UI_Lua.UIEnum.UICommandTheWorldMain] = true, [Const_UI_Lua.UIEnum.UICommandTheWorldRank] = true, [Const_UI_Lua.UIEnum.UICommandTheWorldReward] = true, [Const_UI_Lua.UIEnum.UICommandTheWorldWindow] = true, [Const_UI_Lua.UIEnum.UICommonLineUpView] = true, [Const_UI_Lua.UIEnum.UICommonPlayMovie] = true, [Const_UI_Lua.UIEnum.UICountryAfterChooseView] = true, [Const_UI_Lua.UIEnum.UICountryBase] = true, [Const_UI_Lua.UIEnum.UICountryChooseView] = true, [Const_UI_Lua.UIEnum.UICountryForeshow] = true, [Const_UI_Lua.UIEnum.UICountryResetExhibitPanel] = true, [Const_UI_Lua.UIEnum.UICountryResetNoticePanel] = true, [Const_UI_Lua.UIEnum.UICountryWantedTask] = true, [Const_UI_Lua.UIEnum.UICountryWorldBossMain] = true, [Const_UI_Lua.UIEnum.UICountryNightBossMain] = true, [Const_UI_Lua.UIEnum.UIDemonGodMain] = true, [Const_UI_Lua.UIEnum.UIDemonGodResult] = true, [Const_UI_Lua.UIEnum.UIDialogueNormalView] = true, [Const_UI_Lua.UIEnum.UIDivineWeapon] = true, [Const_UI_Lua.UIEnum.UIDivineWeaponBasePanel] = true, [Const_UI_Lua.UIEnum.UIDivineWeaponSuccess] = true, [Const_UI_Lua.UIEnum.UIDragonArteryMain] = true, [Const_UI_Lua.UIEnum.UIEffectIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIAppearanceIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIDyeIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIEquipmentDetail] = true, [Const_UI_Lua.UIEnum.UIEquipmentMain] = true, [Const_UI_Lua.UIEnum.UIFairPlayMainPanel] = true, [Const_UI_Lua.UIEnum.UIFightThroneMain] = true, [Const_UI_Lua.UIEnum.UIFirstChargePanel] = true, [Const_UI_Lua.UIEnum.UIFriendBase] = true, [Const_UI_Lua.UIEnum.UIFunctionNoticeMain] = true, [Const_UI_Lua.UIEnum.UIGachaExpression] = true, [Const_UI_Lua.UIEnum.UIGachaGet] = true, [Const_UI_Lua.UIEnum.UIGachaMain] = true, [Const_UI_Lua.UIEnum.UIGachaMainLimit] = true, [Const_UI_Lua.UIEnum.UIGodBeastActivityMain] = true, [Const_UI_Lua.UIEnum.UIGodBeastBasePanel] = true, [Const_UI_Lua.UIEnum.UIGodBeastEquip] = true, [Const_UI_Lua.UIEnum.UIGodBeastIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIGodBeastMainPanel] = true, [Const_UI_Lua.UIEnum.UIGodBeastParadise] = true, [Const_UI_Lua.UIEnum.UIGodBeastSuccess] = true, [Const_UI_Lua.UIEnum.UIGodPetRuneBase] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroAnecdote] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroBossMain] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroFame] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroMain] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroStore] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroStory] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroStoryChapter] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroStoryOption] = true, [Const_UI_Lua.UIEnum.UIGoldenHeroTryShow] = true, [Const_UI_Lua.UIEnum.UIGuildActivityDrinkEntry] = true, [Const_UI_Lua.UIEnum.UIGuildActivityEscort] = true, [Const_UI_Lua.UIEnum.UIGuildAlliesMainPanelNew] = true, [Const_UI_Lua.UIEnum.UIGuildAlliesMapView] = true, [Const_UI_Lua.UIEnum.UIGuildBasePanel] = true, [Const_UI_Lua.UIEnum.UIGuildBossMain] = true, [Const_UI_Lua.UIEnum.UIGuildEscortReport] = true, [Const_UI_Lua.UIEnum.UIGuildFamousPop] = true, [Const_UI_Lua.UIEnum.UIGuildMineMain] = true, [Const_UI_Lua.UIEnum.UIGuildWarDataView] = true, [Const_UI_Lua.UIEnum.UIGuildWarMain] = true, [Const_UI_Lua.UIEnum.UIGuildWarMapInfo] = true, [Const_UI_Lua.UIEnum.UIGVGFightGarrisonTroops] = true, [Const_UI_Lua.UIEnum.UIGVGFightMain] = true, [Const_UI_Lua.UIEnum.UIHeroBiographyMain] = true, [Const_UI_Lua.UIEnum.UIHeroBiographySubPanel] = true, [Const_UI_Lua.UIEnum.UIHeroExpression] = true, [Const_UI_Lua.UIEnum.UIHeroFormationPanel] = true, [Const_UI_Lua.UIEnum.UIHeroIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIHeroMatch1v1Base] = true, [Const_UI_Lua.UIEnum.UIHeroMatch3v3Base] = true, [Const_UI_Lua.UIEnum.UIHeroSelectPanel] = true, [Const_UI_Lua.UIEnum.UIHeroSelectShowPanel] = true, [Const_UI_Lua.UIEnum.UIHeroShowPanel] = true, [Const_UI_Lua.UIEnum.UIHorseIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIHorseRearMain] = true, [Const_UI_Lua.UIEnum.UIHorseSoulGachaMain] = true, [Const_UI_Lua.UIEnum.UIIllustratedMainPanel] = true, [Const_UI_Lua.UIEnum.UIIllustratedSecondPanel] = true, [Const_UI_Lua.UIEnum.UILevelSelectPanel] = true, [Const_UI_Lua.UIEnum.UILuckyLotteryMain] = true, [Const_UI_Lua.UIEnum.UIMaterialLevel] = true, [Const_UI_Lua.UIEnum.UIMaterialLevelMainPanel] = true, [Const_UI_Lua.UIEnum.UIMedal] = true, [Const_UI_Lua.UIEnum.UIMessageBoxSettingView] = true, [Const_UI_Lua.UIEnum.UIMiniMapWorld] = true, [Const_UI_Lua.UIEnum.UIMonopolyMainPanel] = true, [Const_UI_Lua.UIEnum.UIMultiplayerDungeonEntrance] = true, [Const_UI_Lua.UIEnum.UIMultiplayerDungeonMain] = true, [Const_UI_Lua.UIEnum.UINationClimbTowerProgress] = true, [Const_UI_Lua.UIEnum.UINobilityCommon] = true, [Const_UI_Lua.UIEnum.UIOfficialPositionBase] = true, [Const_UI_Lua.UIEnum.UIOfficialPositionLevelUp] = true, [Const_UI_Lua.UIEnum.UIPayMallBasePanel] = true, [Const_UI_Lua.UIEnum.UIPersonalBossPanel] = true, [Const_UI_Lua.UIEnum.UIPetArray] = true, [Const_UI_Lua.UIEnum.UIPetBasePanel] = true, [Const_UI_Lua.UIEnum.UIPetFormation] = true, [Const_UI_Lua.UIEnum.UIPlotReview] = true, [Const_UI_Lua.UIEnum.UIRankListPanel] = true, [Const_UI_Lua.UIEnum.UIRebelStrikeMain] = true, [Const_UI_Lua.UIEnum.UIRebornMain] = true, [Const_UI_Lua.UIEnum.UISettingMainPanel] = true, [Const_UI_Lua.UIEnum.UIShopMain] = true, [Const_UI_Lua.UIEnum.UISoloFightPanel] = true, [Const_UI_Lua.UIEnum.UIStormEntrance] = true, [Const_UI_Lua.UIEnum.UIStormMain] = true, [Const_UI_Lua.UIEnum.UIStratagemEquip] = true, [Const_UI_Lua.UIEnum.UIStratagemIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIStratagemMainPanel] = true, [Const_UI_Lua.UIEnum.UIStratagemPanel] = true, [Const_UI_Lua.UIEnum.UISuperGoldBossMain] = true, [Const_UI_Lua.UIEnum.UISuperGoldDrawCardMain] = true, [Const_UI_Lua.UIEnum.UISuperGoldHonorOrderMain] = true, [Const_UI_Lua.UIEnum.UISuperGoldLotteryMain] = true, [Const_UI_Lua.UIEnum.UISuperGoldMain] = true, [Const_UI_Lua.UIEnum.UISuperGoldStoryMain] = true, [Const_UI_Lua.UIEnum.UISyncFourCountryWarMain] = true, [Const_UI_Lua.UIEnum.UISyncSoloFormation] = true, [Const_UI_Lua.UIEnum.UISyncSoloMainPanel] = true, [Const_UI_Lua.UIEnum.UISyncTeamPVPMainPanel] = true, [Const_UI_Lua.UIEnum.UISyncTeamPVPMatchSuccessPanel] = true, [Const_UI_Lua.UIEnum.UISpecialTeamWithRankPanel] = true, [Const_UI_Lua.UIEnum.UITaskChapterPanel] = true, [Const_UI_Lua.UIEnum.UITeamBasePanel] = true, [Const_UI_Lua.UIEnum.UITeamPVE] = true, [Const_UI_Lua.UIEnum.UITotalTopUpBase] = true, [Const_UI_Lua.UIEnum.UITreasureActiveSuccess] = true, [Const_UI_Lua.UIEnum.UITreasureBasePanel] = true, [Const_UI_Lua.UIEnum.UITreasureIllustratedBase] = true, [Const_UI_Lua.UIEnum.UITreasureMainPanel] = true, [Const_UI_Lua.UIEnum.UITeamFairChampionshipBase] = true, [Const_UI_Lua.UIEnum.UIWarHorse] = true, [Const_UI_Lua.UIEnum.UIWarHorseBasePanel] = true, [Const_UI_Lua.UIEnum.UIWarHorseSuccess] = true, [Const_UI_Lua.UIEnum.UIWarZoneAuctionMain] = true, [Const_UI_Lua.UIEnum.UIWarZonePanel] = true, [Const_UI_Lua.UIEnum.UIWeaponIllustratedBase] = true, [Const_UI_Lua.UIEnum.UIWelfareBasePanel] = true, [Const_UI_Lua.UIEnum.UIWorldBossMainPanel] = true, [Const_UI_Lua.UIEnum.UIFairSoloTournamentBase] = true, [Const_UI_Lua.UIEnum.UITurntableMain] = true, [Const_UI_Lua.UIEnum.UIAwakenActivity] = true, [Const_UI_Lua.UIEnum.UIFairAwakenSkillPlan] = true, [Const_UI_Lua.UIEnum.UISubjectMonthMain] = true, [Const_UI_Lua.UIEnum.UISubjectMonthSignIn] = true, [Const_UI_Lua.UIEnum.UISubjectMonthHonorOrderMain] = true, [Const_UI_Lua.UIEnum.UISubjectMonthChallenge] = true, [Const_UI_Lua.UIEnum.UISubjectMonthChallengeFormation] = true, [Const_UI_Lua.UIEnum.UISubjectMonthRogueMain] = true, [Const_UI_Lua.UIEnum.UISubjectMonthRogueHeroListMain] = true, [Const_UI_Lua.UIEnum.UIDyeAppearanceBase] = true, [Const_UI_Lua.UIEnum.UIDyeAppearancePrizeWheel] = true, } local AdaptationView = { [Const_UI_Lua.UIEnum.OperationActivity.UIHegemonyActivity] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bg" }, [Const_UI_Lua.UIEnum.OperationActivity.UIOACommonDirectGiftPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIAchievementBase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIActivitiesMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg1" }, [Const_UI_Lua.UIEnum.UIActivitiesTeamDungeonEntry] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "BackGround" }, [Const_UI_Lua.UIEnum.UIAnniversaryLuckyDrawMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIAnniversaryPrepare] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIBossMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "BackGround" }, [Const_UI_Lua.UIEnum.UIChangAnSiegeMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bottom" }, [Const_UI_Lua.UIEnum.UIClimbTowerEntry] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICommandTheWorldMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UICountryAfterChooseView] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountryBase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UICountryChooseView] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountryEnfeoff] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountryForeshow] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UICountryMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountryNightBossDamageRank] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountryNightBossMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UICountryNightBossRecord] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountryNightBossSummary] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountryResetExhibitPanel] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountryResetNoticePanel] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UICountrySalaryBase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UICountryWantedTask] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UICountryWorldBossMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_bg" }, [Const_UI_Lua.UIEnum.UIDivineWeapon] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIDivineWeaponSuccess] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIDyeAppearancePrizeWheel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UIDragonArterySummaryPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_BackgroundImage" }, [Const_UI_Lua.UIEnum.UIEquipmentDetail] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIEquipmentMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIFairPlayHistoryMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIFairPlayMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIFairSoloTournamentBase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIFightThroneMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIFriendRechargeMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "BG" }, [Const_UI_Lua.UIEnum.UIGachaGet] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIGachaGetLimit] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIGachaMainLimit] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIGachaPoolSelect] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIGachaShop] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIGodBeastActivityMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIGodBeastEquip] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIGodBeastMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIGodBeastSuccess] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIGoldenHeroBossFind] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIGoldenHeroBossMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UIGoldenHeroBossRankReward] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIGoldenHeroBossYesterdayRank] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIGoldenHeroFame] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UIGoldenHeroMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UIGoldenHeroStore] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIGoldenHeroStory] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UIGoldHeroReprint] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "BG" }, [Const_UI_Lua.UIEnum.UIGuildActivityDrinkEntry] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Scene" }, [Const_UI_Lua.UIEnum.UIGuildActivityEscort] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Scene" }, [Const_UI_Lua.UIEnum.UIGuildAlliesMapView] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_BgWorldMap" }, [Const_UI_Lua.UIEnum.UIGuildCultivationMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UIGuildEscortMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIGuildEscortReport] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Scene" }, [Const_UI_Lua.UIEnum.UIGuildFamousPop] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bottom" }, [Const_UI_Lua.UIEnum.UIGuildGuildListPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UIGuildMineMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Map" }, [Const_UI_Lua.UIEnum.UIGuildSalary] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Scene" }, [Const_UI_Lua.UIEnum.UIGuildWarArray] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIGuildWarMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIGuildWarMapInfo] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIGuildWarPersonalData] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_BG" }, [Const_UI_Lua.UIEnum.UIGuildWarPreparationMap] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIGuildWarSummaryPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_BackgroundImage" }, [Const_UI_Lua.UIEnum.UIGVGFightGarrisonTroops] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIHeroBiographyMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIHeroBiographySubPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIHeroIllustratedBase] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "Background" }, [Const_UI_Lua.UIEnum.UIHeroMatch1v1Base] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIHeroMatch3v3Base] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIHonorOrderRewardList] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIHonorOrderRewardPurchase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIHorseRearMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIHorseSoulGachaMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_BG" }, [Const_UI_Lua.UIEnum.UIIllustratedMainPanel] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "Background" }, [Const_UI_Lua.UIEnum.UIIllustratedSecondPanel] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "Background" }, [Const_UI_Lua.UIEnum.UIKingChallengeMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UILoginVideo] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "TextureBG" }, [Const_UI_Lua.UIEnum.UILuckyLotteryMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UILuckyLotterySelectReward] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIMaterialLevel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIMaterialLevelMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIMedal] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIMiniMapWorld] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIMonopolyMainPanel] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "BG" }, [Const_UI_Lua.UIEnum.UIMultiplayerDungeonEntrance] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "BackGround" }, [Const_UI_Lua.UIEnum.UIMultiplayerDungeonMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "BackGround" }, [Const_UI_Lua.UIEnum.UINobilityCommon] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIOfficialPositionBase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIOfficialPositionLevelUp] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIPayMallBasePanel] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIPKRoomBase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIPKRoomList] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIPlotReview] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UIRebelStrikeMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UIRebornMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIRedEnvelopeRainReward] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIReplayMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UISettingMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UIShopMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UISpecialTeamBasePanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UISpecialTeamWithRankPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UISplash] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "splash_image" }, [Const_UI_Lua.UIEnum.UIStormEntrance] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "BackGround" }, [Const_UI_Lua.UIEnum.UIStormMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "BackGround" }, [Const_UI_Lua.UIEnum.UIStratagemActiveSuccess] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIStratagemEquip] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIStratagemMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIStratagemPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UISuperGoldBossRank] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UISuperGoldHonorOrderMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "Background" }, [Const_UI_Lua.UIEnum.UISuperGoldLotteryMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UISuperGoldMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UISuperGoldStoryMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UISuperGoldDrawCardMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg" }, [Const_UI_Lua.UIEnum.UISyncFourCountryWarMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UISyncSoloMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UITaskChapterPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "event_Close" }, [Const_UI_Lua.UIEnum.UITeamBasePanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "bg_Bottom" }, [Const_UI_Lua.UIEnum.UITeamFairChampionshipBase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bottom" }, [Const_UI_Lua.UIEnum.UITeamPVE] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_TeamPVEBg" }, [Const_UI_Lua.UIEnum.UITestWelfareContent] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UITotalTopUpBase] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UITreasureActiveSuccess] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UITreasureMainPanel] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIWarHorse] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UIWarHorseSuccess] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UIWarZoneAuctionMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_FitBg" }, [Const_UI_Lua.UIEnum.UIWelfareBasePanel] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "Bottom" }, [Const_UI_Lua.UIEnum.UITurntableMain] = { BGImageAdaptationMode = KeepHeightAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UISubjectMonthMain] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, [Const_UI_Lua.UIEnum.UISubjectMonthSignIn] = { BGImageAdaptationMode = MatchWidthAdapt, BGImageName = "img_Bg" }, } -- 1 到6 分别是模板界面 按钮名称是固定的 只传类型就行 100为自定义界面 传按钮名称 local BackButtonEnum = { UITemplateTitlePanel_Close_Btn = 1, UITemplatePopUpZero_Close_Btn = 2, UICommonPopUp_Close_Btn = 4, UICommonPopUpTab_Btn = 5, UICommonPopView_Close_Btn = 6, Custom_Close_Btn = 100, } local BackButtonView = { [Const_UI_Lua.UIEnum.UIGuildBasePanel] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, [Const_UI_Lua.UIEnum.UICountryKingRightPopUp] = BackButtonEnum.UICommonPopUp_Close_Btn, [Const_UI_Lua.UIEnum.UITurntableMain] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, [Const_UI_Lua.UIEnum.UISlgGvERank] = BackButtonEnum.UICommonPopUp_Close_Btn, [Const_UI_Lua.UIEnum.UIWeaponForgeSoulSkillUp] = BackButtonEnum.UITemplatePopUpZero_Close_Btn, [Const_UI_Lua.UIEnum.UIWeaponForgeSoulUPPanel] = BackButtonEnum.UITemplatePopUpZero_Close_Btn, [Const_UI_Lua.UIEnum.UIThemeIllustratedPopUp] = BackButtonEnum.UICommonPopUp_Close_Btn, [Const_UI_Lua.UIEnum.UISubjectMonthMain] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, [Const_UI_Lua.UIEnum.UISubjectMonthSignIn] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, [Const_UI_Lua.UIEnum.UISubjectMonthHonorOrderMain] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, [Const_UI_Lua.UIEnum.UISubjectMonthChallenge] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, [Const_UI_Lua.UIEnum.UISubjectMonthChallengeFormation] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, [Const_UI_Lua.UIEnum.UISubjectMonthRogueMain] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, [Const_UI_Lua.UIEnum.UISubjectMonthRogueHeroListMain] = BackButtonEnum.UITemplateTitlePanel_Close_Btn, } local isCameraOpen = true local openMainCameraCount = 0 local closeMainCameraCount = 0 local function CloseCamera() if isCameraOpen then CameraController.Instance:ChangeCloseMainCameraCount(true) isCameraOpen = false end end local function OpenCamera() if not isCameraOpen then CameraController.Instance:ChangeCloseMainCameraCount(false) isCameraOpen = true end end local function OnViewOpenCloseCamera() if closeMainCameraCount == 0 then CloseCamera() end closeMainCameraCount = closeMainCameraCount + 1 end local function OnViewCloseOpenCamera() closeMainCameraCount = closeMainCameraCount - 1 if closeMainCameraCount <= 0 then OpenCamera() closeMainCameraCount = 0 end end local function OnViewOpenOpenCamera() --当前相机如果是开着的不处理 关闭的时候也不处理 if openMainCameraCount == 0 then OpenCamera() end openMainCameraCount = openMainCameraCount + 1 end local function OnViewCloseCloseCamera(onlyCalCount) --代表当前有关闭相机的界面存在 openMainCameraCount = openMainCameraCount - 1 if not onlyCalCount and openMainCameraCount == 0 and closeMainCameraCount > 0 then CloseCamera() end end local function OnViewOpenLowPass(viewClassPath) if LowPassView[viewClassPath] then CTL.Sound.LowPass() end end local function OnViewClosedHighPass(viewClassPath) if LowPassView[viewClassPath] then CTL.Sound.HighPass() end end local function OnViewOpenModifyCameraState(viewClassPath) local isClose = View_CloseMainCamera[viewClassPath] if isClose == nil then --nil代表没配置 当前相机是什么状态都行 elseif isClose then OnViewOpenCloseCamera() elseif isClose == false then OnViewOpenOpenCamera() end end local function ModifyAdaptation(viewSelf) local adaptationInfo = AdaptationView[viewSelf.__viewClassPath] if adaptationInfo then UTL.UIRender.AdaptiveImageSizeFit(viewSelf[adaptationInfo.BGImageName], adaptationInfo.BGImageAdaptationMode == 1) end end local function OnViewCloseModifyCameraState(viewClassPath) local isClose = View_CloseMainCamera[viewClassPath] if isClose == nil then --nil代表没配置 当前相机是什么状态都行 elseif isClose then OnViewCloseOpenCamera() elseif isClose == false then if GameAppInfo.IsVersionGreaterThan118000() then OnViewCloseCloseCamera() elseif not SpecialNotCloseMainCamera[viewClassPath] then OnViewCloseCloseCamera() else OnViewCloseCloseCamera(true) end end end local function CheckCameraState() if isCameraOpen == false then logging.log(LTAG.ERRPR,"错误 开关相机引用计数错误", openMainCameraCount, closeMainCameraCount) OpenCamera() openMainCameraCount = 0 closeMainCameraCount = 0 end end EventSystem.Regist(EventID.UI_Delay_FocusOnTownHome, CheckCameraState) function UIViewSettings.OnViewOpened(viewSelf) OnViewOpenLowPass(viewSelf.__viewClassPath) OnViewOpenModifyCameraState(viewSelf.__viewClassPath) ModifyAdaptation(viewSelf) end function UIViewSettings.OnViewClosed(viewSelf) OnViewCloseModifyCameraState(viewSelf.__viewClassPath) OnViewClosedHighPass(viewSelf.__viewClassPath) end function UIViewSettings.OnBackButtonPressed(viewSelf) local registerBackButtonEnum = BackButtonView[viewSelf.__viewClassPath] if registerBackButtonEnum then local BackButtonEnum = BackButtonEnum if registerBackButtonEnum == BackButtonEnum.UITemplateTitlePanel_Close_Btn then viewSelf:OnButtonClicked(viewSelf.UITemplateTitlePanel.btn_close) elseif registerBackButtonEnum == BackButtonEnum.UITemplatePopUpZero_Close_Btn then viewSelf:OnButtonClicked(viewSelf.UITemplatePopUpZero.Bottom) elseif registerBackButtonEnum == BackButtonEnum.UICommonPopUp_Close_Btn then viewSelf:OnButtonClicked(viewSelf.UICommonPopUp.btn_Close) elseif registerBackButtonEnum == BackButtonEnum.UICommonPopUpTab_Btn then viewSelf:OnButtonClicked(viewSelf.UICommonPopUpTab.btn_Close) elseif registerBackButtonEnum == BackButtonEnum.UICommonPopView_Close_Btn then viewSelf:OnButtonClicked(viewSelf.UICommonPopView.refer_Bg.btn_Close) end end end return UIViewSettings