public ChapterSelectPageContext(LevelDataItem levelData) { this._actScrollerSpeedDownRatio = 5f; ContextPattern pattern = new ContextPattern { contextName = "ChapterSelectPageContext", viewPrefabPath = "UI/Menus/Page/Map/ChapterSelectPage", cacheType = ViewCacheType.AlwaysCached }; base.config = pattern; base.findViewSavedInScene = true; this._toShowLevelData = levelData; this._justShowLevelDetail = this._toShowLevelData != null; this._chapterType = levelData.LevelType; switch (this._chapterType) { case 1: this.chapter = Singleton <LevelModule> .Instance.GetChapterById(levelData.ChapterID); this.difficulty = levelData.Diffculty; this._showActIndex = new ActDataItem(levelData.ActID).actIndex; break; case 2: case 3: this._weekDayActivityData = Singleton <LevelModule> .Instance.GetWeekDayActivityByID(levelData.ActID); break; } }
public EmptyPageContext() { ContextPattern pattern = new ContextPattern { contextName = "EmptyPageContext" }; base.config = pattern; }
public CGReplayPageContext() { ContextPattern pattern = new ContextPattern { contextName = "CGReplayPageContext", viewPrefabPath = "UI/Menus/Page/CGReplay/CGReplay" }; base.config = pattern; }
public EndlessInfoDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "EndlessInfoDialogContext", viewPrefabPath = "UI/Menus/Dialog/EndlessInfoDialog" }; base.config = pattern; }
public EndlessUseToolPageContext() { ContextPattern pattern = new ContextPattern { contextName = "EndlessUseToolPageContext", viewPrefabPath = "UI/Menus/Page/EndlessActivity/EndlessUseToolPage" }; base.config = pattern; }
public AchieveOverviewPageContext() { ContextPattern pattern = new ContextPattern { contextName = "AchieveOverviewPageContext", viewPrefabPath = "UI/Menus/Page/Achieve/AchieveOverviewPage" }; base.config = pattern; }
public PlotDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "PlotDialogContext", viewPrefabPath = "UI/Menus/Dialog/PlotDialog" }; base.config = pattern; }
public MihoyoRegisterDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "MihoyoRegisterDialogContext", viewPrefabPath = "UI/Menus/Dialog/MiHoYoAccount/MihoyoRegisterDialog" }; base.config = pattern; }
public SkillPointExchangeDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "StaminaExchangeDialogContext", viewPrefabPath = "UI/Menus/Dialog/SkillPointExchangeDialog" }; base.config = pattern; }
public StorageItemSellDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "StorageItemSellDialogContext", viewPrefabPath = "UI/Menus/Dialog/SellItemDialog" }; base.config = pattern; }
public FriendNumOverDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "FriendNumOverDialogContext", viewPrefabPath = "UI/Menus/Dialog/FriendNumOverDialog" }; base.config = pattern; }
public SCoinExchangeDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "SCoinExchangeDialogContext", viewPrefabPath = "UI/Menus/Dialog/ScoinExchangeDialog" }; base.config = pattern; }
public ChangeNicknameDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "ChangeNicknameDialogContext", viewPrefabPath = "UI/Menus/Dialog/ChangeNicknameDialog" }; base.config = pattern; }
public TestUIContext(GameObject view) { ContextPattern pattern = new ContextPattern { contextName = "TestUIContext" }; base.config = pattern; base.view = view; }
public SearchFriendDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "SearchFriendDialogContext", viewPrefabPath = "UI/Menus/Dialog/SearchFriendDialog" }; base.config = pattern; }
public ClearStorageHintDialog(float timerSpan = 1.5f) { ContextPattern pattern = new ContextPattern { contextName = "ClearStorageHintDialog", viewPrefabPath = "UI/Menus/Dialog/ClearStorageHintDialog" }; base.config = pattern; }
public GMTalkDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "GMTalkDialogContext", viewPrefabPath = "UI/GMTalk/GMTalkDialog", cacheType = ViewCacheType.DontCache }; base.config = pattern; }
public GeneralConfirmDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "GeneralConfirmDialogContext", viewPrefabPath = "UI/Menus/Dialog/GeneralConfirmDialog", cacheType = ViewCacheType.DontCache }; base.config = pattern; }
public MailOverviewPageContext() { ContextPattern pattern = new ContextPattern { contextName = "MailOverviewPageContext", viewPrefabPath = "UI/Menus/Page/Mail/MailOverviewPage" }; base.config = pattern; this._mailList = new List <MailDataItem>(); }
public StigmataNewAffixPageContext(StigmataDataItem stigmata) { ContextPattern pattern = new ContextPattern { contextName = "StigmataNewAffixPage", viewPrefabPath = "UI/Menus/Page/Storage/StigmataNewAffixPage" }; base.config = pattern; this.stigmata = stigmata; }
public AvatarPromotionDialogContext(AvatarDataItem avatarData) { ContextPattern pattern = new ContextPattern { contextName = "AvatarPromotionDialogContext", viewPrefabPath = "UI/Menus/Dialog/AvatarPromotionDialog" }; base.config = pattern; this.avatarData = avatarData; }
public MailDetailDialogContext(MailDataItem mailData) { ContextPattern pattern = new ContextPattern { contextName = "MailDetailDialogContext", viewPrefabPath = "UI/Menus/Dialog/MailDetailDialog" }; base.config = pattern; this._mailData = mailData; }
public VentureDispatchPageContext(VentureDataItem ventureData) { ContextPattern pattern = new ContextPattern { contextName = "VentureDispatchPageContext", viewPrefabPath = "UI/Menus/Page/Island/VentureDispatchPage" }; base.config = pattern; this._ventureData = ventureData; }
public TechTreeNodeDialogContext(CabinTechTreeNode data) { ContextPattern pattern = new ContextPattern { contextName = "TechTreeNodeDialogContext", viewPrefabPath = "UI/Menus/Dialog/TechTreeNodeDialog" }; base.config = pattern; this._data = data; }
public MaterialUseDialogContext(AvatarDataItem avatarData) { ContextPattern pattern = new ContextPattern { contextName = "MaterialUseDialogContext", viewPrefabPath = "UI/Menus/Dialog/UseMaterialDialog" }; base.config = pattern; this.avatarData = avatarData; }
private void InitChapterOverviewPageContext() { ContextPattern pattern = new ContextPattern { contextName = "ChapterOverviewPageContext", viewPrefabPath = "UI/Menus/Page/Map/ChapterOverviewPage", cacheType = ViewCacheType.DontCache }; base.config = pattern; }
public AgreementDialogContext() { ContextPattern pattern = new ContextPattern { contextName = "AgreementDialogContext", viewPrefabPath = "UI/Menus/Dialog/UserAgreementDialog", cacheType = ViewCacheType.DontCache }; base.config = pattern; }
public MonsterCloseUpPageContext(string monsterName) { ContextPattern pattern = new ContextPattern { contextName = "CloseUpPageContext", viewPrefabPath = "UI/Menus/Page/InLevel/MonsterCloseUpPage" }; base.config = pattern; this.monsterName = monsterName; }
public ResetTechTreeDialogContext(CabinDataItemBase data) { ContextPattern pattern = new ContextPattern { contextName = "ResetTechTreeDialogContext", viewPrefabPath = "UI/Menus/Dialog/ResetTechTreeDialog" }; base.config = pattern; this._cabinData = data; }
public EndlessPreparePageContext(bool enterBattleDirrectly = false) { ContextPattern pattern = new ContextPattern { contextName = "EndlessPreparePageContext", viewPrefabPath = "UI/Menus/Page/EndlessActivity/EndlessPreparePage" }; base.config = pattern; this._enterBattleDirrectly = enterBattleDirrectly; }