protected override void begin() { base.begin(); scrapContent.SetUpdateItemCallback(onUpdateItem); scrapContent.SetinitCallback(initItem); if (!isAwakeformHide) { SortConditionManagerment.Instance.initDefaultSort(SiftWindowType.SIFT_CARDSTORE_WINDOW); tapBase.changeTapPage(tapBase.tapButtonList [0]); } if (StorageManagerment.Instance.RoleStorageVersion != storageVersion || !isAwakeformHide || cardContent.nodeList == null || SortManagerment.Instance.isCardStoreModifyed) { if (SortManagerment.Instance.isCardStoreModifyed) { SortManagerment.Instance.isCardStoreModifyed = false; } if (tapBase.getActiveIndex() == 0) { updateCardContent(); } } if (GuideManager.Instance.isEqualStep(135003000)) { GuideManager.Instance.doGuide(); GuideManager.Instance.guideEvent(); } StartCoroutine(Utils.DelayRun(() => { GuideManager.Instance.doFriendlyGuideEvent(); MaskWindow.UnlockUI(); }, 1f)); }
/** 改变Tap */ public void changeTapPage(int tapIndex) { if (tapIndex > tapContent.tapButtonList.Length - 1) { return; } tapContent.resetTap(); tapContent.changeTapPage(tapContent.tapButtonList [tapIndex]); }
protected override void begin() { base.begin(); if (isAwakeformHide == false) { tapBase.changeTapPage(tapBase.tapButtonList [0]); } GuideManager.Instance.guideEvent(); MaskWindow.UnlockUI(); }
protected override void begin() { base.begin(); if (!isAwakeformHide) { tapContent.changeTapPage(tapContent.tapButtonList [currentTapIndex]); } else { UpdateContent(); } MaskWindow.UnlockUI(); }
private int index = 2; //0为card分页,1为装备分页,2为道具分页 protected override void begin() { base.begin(); if (!isAwakeformHide) { tapBase.changeTapPage(tapBase.tapButtonList [index]); updateExchangeCount(); } if (GuideManager.Instance.isEqualStep(106004000)) { GuideManager.Instance.guideEvent(); } MaskWindow.UnlockUI(); }
protected override void begin() { if (!isAwakeformHide) { int index = ArenaManager.instance.self.team - 1; tapContent.changeTapPage(tapContent.tapButtonList [index], true); refreshCD = (int)(nextRefreshTime - ServerTimeKit.getSecondTime()); if (refreshCD > 0) { btnRefresh.disableButton(true); startCD = true; } } MaskWindow.UnlockUI(); }
protected override void begin() { base.begin(); tapBase.changeTapPage(tapBase.tapButtonList [0]); index = 2; MaskWindow.UnlockUI(); }
protected override void begin() { base.begin(); scrapList = MagicWeaponScrapManagerment.Instance.getMagicWeaponScrapList(); if (scrapList.Count >= 0) { Debug.Log("....." + MagicWeaponScrapManagerment.Instance.canGetMagicWeaponCount(scrapList)); updateCanGetMagicWeaponCount(); } scrapContent.SetUpdateItemCallback(onUpdateItem); scrapContent.SetinitCallback(initItem); if (!isAwakeformHide) { magicWeaponVersion = StorageManagerment.Instance.magicWeaponVersion; //新开窗口用策划的推荐排序,可使用排最上,然后品质高在上 //SortConditionManagerment.Instance.initDefaultSort(SiftWindowType.SIFT_PROPSTORE_WINDOW); //SortConditionManagerment.Instance.initDefaultSort(SiftWindowType.SIFT_EQUIPSTORE_WINDOW); tapBase.changeTapPage(tapBase.tapButtonList [startIndex]); } //筛选改变,装备仓库,道具仓库改变,刷新 if (SortManagerment.Instance.isStoreModifyed || StorageManagerment.Instance.magicWeaponVersion != magicWeaponVersion) { SortManagerment.Instance.isStoreModifyed = false; updateContent(); } GuideManager.Instance.doFriendlyGuideEvent(); MaskWindow.UnlockUI(); }
/** 更新UI */ public void UpdateUI() { UITweener position = buttonExChangeShop.GetComponentInChildren <TweenPosition>(); UITweener rotation = buttonExChangeShop.GetComponentInChildren <TweenRotation>(); StartCoroutine(Utils.DelayRun(() => { position.enabled = false; rotation.enabled = false; }, 2.5f)); if (flyContentPoint.transform.childCount > 0) { Utils.RemoveAllChild(flyContentPoint.transform); } if (currentTapIndex == StarSoulConfigManager.HUNT_MONEY_TYPE) { setCurrentNebulaIndex(StarSoulManager.Instance.getHuntQuality()); } updateTapContent(); tapContent.resetTap(); tapContent.changeTapPage(tapContent.tapButtonList [currentTapIndex]); updateAwardContent(StorageManagerment.Instance.getAllHuntStarSoul()); updateLabelTextUI(); //showAward (); showIntegralRankLabel(); }
protected override void begin() { base.begin(); tapBase.changeTapPage(tapBase.tapButtonList[startIndex]); updateTapPage(startIndex); MaskWindow.UnlockUI(); }
private void updateInit() { cardContentNew.initInfo(this); buttonSell.disableButton(true); updateTapContent(); tapContent.resetTap(); tapContent.changeTapPage(tapContent.tapButtonList [0]); }
/// <summary> /// 刷新界面 /// </summary> private void UpdateWindow(GuildLuckyNvShenInfo info) { selfIntegral.text = "[FFF0C1]" + Language("GuildLuckyNvShen_03") + "[53DD6A]" + info.selfIntegral; guildIntegral.text = "[FFF0C1]" + Language("GuildLuckyNvShen_04") + "[53DD6A]" + info.guildIntegral; topIntegral.text = "[FFF0C1]" + Language("GuildLuckyNvShen_05") + "[53DD6A]" + info.topIntegral; shakeCount.text = "[FFF0C1]" + Language("GuildLuckyNvShen_06") + "[53DD6A]" + info.shakeCount; tapContentBase.changeTapPage(tapContentBase.getTapButtonByIndex(index)); }
void OnDataLoad() { if (am.state >= ArenaManager.STATE_64_32 && am.state <= ArenaManager.STATE_CHAMPION) { string name = LanguageConfigManager.Instance.getLanguage("Arena14_" + am.state); string str; if (am.state <= ArenaManager.STATE_8_4 && am.finalRound > 0) { str = LanguageConfigManager.Instance.getLanguage("Arena15", name, am.finalRound + ""); } else { str = LanguageConfigManager.Instance.getLanguage("Arena16", name); } lblNextRound.text = str; if (cdTimer == null && am.finalCD > 0) { cdTimer = TimerManager.Instance.getTimer(1000); cdTimer.addOnTimer(UpdateCD); cdTimer.start(); } UpdateCD(); } else { System.DateTime dt = TimeKit.getDateTime(ArenaManager.instance.stateEndTime); lblNextCD.transform.localPosition = new Vector3(-85, 821, 0); lblNextCD.effectStyle = UILabel.Effect.None; lblNextCD.text = LanguageConfigManager.Instance.getLanguage("Arena55", dt.Month.ToString(), dt.Day.ToString()); lblNextRound.text = LanguageConfigManager.Instance.getLanguage("Arena24"); lblRank.text = ""; if (cdTimer != null) { cdTimer.stop(); cdTimer = null; } } initAllInfoList(); tapContent.changeTapPage(tabButtons[am.tapIndex]); // tapButtonEventBase (tabButtons [tapIndex].gameObject, true); numFinal.loadData(); numGuess.loadData(); //由于小标签的加载是用的协程,解锁早了,关了窗口,协程里面组件操作会报错,让解锁操作在协程完成后 //MaskWindow.UnlockUI (); }
protected override void begin() { if (!isAwakeformHide) { tapContent.changeTapPage(tapContent.tapButtonList [selectTabType - 1], true); } panel = tapContent.GetComponent <UIPanel> (); updateArrow(); MaskWindow.UnlockUI(); }
protected override void begin() { if (!isAwakeformHide) { tabContent.changeTapPage(tabContent.getTapButtonByIndex(currentContentIndex)); dynamicContent.callbackUpdateEach = updatePage; dynamicContent.onCenterItem = updateActivePage; UpdateContentView(QualityType.LEGEND); } MaskWindow.UnlockUI(); }
protected override void begin() { base.begin(); if (!isAwakeformHide) { tapBase.changeTapPage(tapBase.tapButtonList [0]); isWinStreakShowIcon(); isWinStreakMaxShowIcon(); } MaskWindow.UnlockUI(); }
public void updateAwardContent() { setTitle(LanguageConfigManager.Instance.getLanguage("s0116", TotalLoginManagerment.Instance.getTotalDay().ToString())); weeklyButton.gameObject.SetActive(TotalLoginManagerment.Instance.WeeklyState); holidayButton.gameObject.SetActive(TotalLoginManagerment.Instance.HolidayState); everydayButton.gameObject.SetActive(TotalLoginManagerment.Instance.EverydayState); currentTapIndex = getSuitableContent(); tapContent.changeTapPage(tapContent.tapButtonList[currentTapIndex]); //StartCoroutine (initContent(currentTapIndex)); }
/** 执行begin */ public void doBegin() { if (!isAwakeformHide) { tapContent.changeTapPage(tapContent.tapButtonList[currentTapIndex]); } else { UpdateContent(); MaskWindow.UnlockUI(); } }
protected override void begin() { base.begin(); StartCoroutine(UpdateTimes()); ShowNum(); HeroRoadManagerment.Instance.clean(); if (lastSelectQuality > 0) { Refresh(); MaskWindow.UnlockUI(); return; } int checkTabIndex = 0; if (fromCard != null) { checkTabIndex = HeroRoadSampleManager.Instance.getSampleBySid(fromCard.getEvolveNextSid()).quality - 1; } else if (HeroRoadManagerment.Instance.currentHeroRoad != null) { checkTabIndex = HeroRoadManagerment.Instance.currentHeroRoad.sample.quality - 1; } else { checkTabIndex = getCanBeChallengingTap(); } tapContent.resetTap(); tapContent.changeTapPage(tapContent.tapButtonList [checkTabIndex]); GuideManager.Instance.guideEvent(); MaskWindow.UnlockUI(); if (BattleManager.battleData != null) { BattleManager.battleData.isHeroRoad = false; } }
public void initContent() { switch (GodsWarManagerment.Instance.getType()) { case 110: tapBase.changeTapPage(tapBase.tapButtonList [0]); //bronzeContent.initContent (GodsWarManagerment.Instance.getType(),this); break; case 111: tapBase.changeTapPage(tapBase.tapButtonList [1]); //silverContent.initContent (GodsWarManagerment.Instance.getType(),this); break; case 112: tapBase.changeTapPage(tapBase.tapButtonList [2]); //goldContent.initContent (GodsWarManagerment.Instance.getType(),this); break; default: break; } }
/** 执行begin */ private void doBegin() { if (!isAwakeformHide) { tapContent.changeTapPage(tapContent.tapButtonList[currentTapIndex]); StartCoroutine(initContent(currentTapIndex)); } else { UpdateContent(); GuideManager.Instance.guideEvent(); MaskWindow.UnlockUI(); } }
protected override void begin() { base.begin(); if (!isAwakeformHide) { content.SetUpdateItemCallback(OnContentUpdateItem); content.SetinitCallback(initItem); list = GuildFightAwardSampleManager.Instance.getAllSample(); currentList = new List <GuildFightAwardSample>(); tabContent.changeTapPage(tabContent.getTapButtonByIndex(0)); updateUI(); } MaskWindow.UnlockUI(); }
public void initWindow(int contentType) { /** 当有卡进化到+10以上时,显示超进化按钮 */ if (IntensifyCardManager.Instance.isShowSuperEvoButton()) { tapContent.transform.localPosition = new Vector3(-60f, 85f, 0); tapContent.tapButtonList[4].gameObject.SetActive(true); } else { tapContent.transform.localPosition = new Vector3(0f, 85f, 0); tapContent.tapButtonList[4].gameObject.SetActive(false); } if (contentType == IntensifyCardManager.INTENSIFY_CARD_SACRIFICE) { tapContent.changeTapPage(tapContent.tapButtonList [0], false); } else if (contentType == IntensifyCardManager.INTENSIFY_CARD_EVOLUTION) { tapContent.changeTapPage(tapContent.tapButtonList [1], false); } else if (contentType == IntensifyCardManager.INTENSIFY_CARD_ADDON) { tapContent.changeTapPage(tapContent.tapButtonList [2], false); } else if (contentType == IntensifyCardManager.INTENSIFY_CARD_INHERIT) { tapContent.changeTapPage(tapContent.tapButtonList [3], false); } else if (contentType == IntensifyCardManager.INTENSIFY_CARD_SUPRE_EVO) { tapContent.changeTapPage(tapContent.tapButtonList[4], false); } updateContentAndButton(contentType); MaskWindow.UnlockUI(); }
void OnClick () { // base.OnClick (); if (parentTapContent == null) parentTapContent = transform.parent.GetComponent<TapContentBase> (); if (parentTapContent == null) return; try { parentTapContent.changeTapPage (this); } catch (System.Exception ex) { if (GameManager.DEBUG) { throw ex; } } }
protected override void begin() { base.begin(); scrapContent.SetUpdateItemCallback(onUpdateItem); scrapContent.SetinitCallback(initItem); if (isAwakeformHide == false) { equipStorageVersion = StorageManagerment.Instance.EquipStorageVersion; propStorageVersion = StorageManagerment.Instance.PropStorageVersion; //新开窗口用策划的推荐排序,可使用排最上,然后品质高在上 SortConditionManagerment.Instance.initDefaultSort(SiftWindowType.SIFT_PROPSTORE_WINDOW); SortConditionManagerment.Instance.initDefaultSort(SiftWindowType.SIFT_EQUIPSTORE_WINDOW); tapBase.changeTapPage(tapBase.tapButtonList [startIndex]); } //筛选改变,装备仓库,道具仓库改变,刷新 if (SortManagerment.Instance.isStoreModifyed || StorageManagerment.Instance.EquipStorageVersion != equipStorageVersion || StorageManagerment.Instance.PropStorageVersion != propStorageVersion) { SortManagerment.Instance.isStoreModifyed = false; updateContent(); } GuideManager.Instance.doFriendlyGuideEvent(); MaskWindow.UnlockUI(); }
/** 执行begin */ private void doBegin() { if (!isAwakeformHide) { tapContent.changeTapPage(tapContent.tapButtonList[currentTapIndex]); StartCoroutine(initContent(currentTapIndex)); } else { UpdateContent(); GuideManager.Instance.guideEvent(); MaskWindow.UnlockUI(); } if (!PlayerPrefs.HasKey(UserManager.Instance.self.uid + "_StarSoul_" + ServerTimeKit.getDayOfYear()) && (isSoulHuntActiveForLIMITSOULHUNT_1() || isSoulHuntActiveForLIMITSOULHUNT_2())) { PlayerPrefs.SetInt(UserManager.Instance.self.uid + "_StarSoul_" + ServerTimeKit.getDayOfYear(), 1); goToLimitSoulHuntWindowTips(); } if (PlayerPrefs.HasKey(UserManager.Instance.self.uid + "_StarSoul_" + (ServerTimeKit.getDayOfYear() - 1))) { PlayerPrefs.DeleteKey(UserManager.Instance.self.uid + "_StarSoul_" + (ServerTimeKit.getDayOfYear() - 1)); } }
protected override void begin() { base.begin(); vips = VipManagerment.Instance.getAllVip(); if (defaultIndex == -1) { defaultIndex = UserManager.Instance.self.getVipLevel() - 1 < 0 ? 0 : UserManager.Instance.self.getVipLevel() - 1; } updateInfo(); panel = tapContent.GetComponent <UIPanel> (); sampleContent.startIndex = defaultIndex; sampleContent.maxCount = vips.Length; sampleContent.onLoadFinish = onContentFinish; sampleContent.callbackUpdateEach = updatePage; sampleContent.onCenterItem = updateActivePage; sampleContent.init(); updateActivePage(sampleContent.getCenterObj()); showVipRewardNum(); isBoxShaking = true; boxShakeTimesCtrl(); tapContent.changeTapPage(tapContent.tapButtonList [defaultIndex], true); GuideManager.Instance.doFriendlyGuideEvent(); MaskWindow.UnlockUI(); }
public void initTap(int tapIndex) { tapBase.changeTapPage(tapBase.tapButtonList [tapIndex]); }
/// <summary> /// 更新奖励的经验和等级,双倍消耗 /// </summary> public void updateUI() { // if(tapFalg){ // tapContent.changeTapPage (tapContent.tapButtonList [mSelecteTime]); // tapFalg=false; // } GoddessTrainingSample samplee = GoddessTrainingSampleManager.Instance.getDataBySid(22); string[] timeLimitLvv = samplee.TimeLimitLv; if (UserManager.Instance.self.getUserLevel() < StringKit.toInt(timeLimitLvv[mSelecteTime])) { tapContent.changeTapPage(tapContent.tapButtonList [mSelecteTime]); return; } updateTime(); if (cdEndTime > ServerTimeKit.getSecondTime()) { goddessSelectButton.disableButton(true); } else { goddessSelectButton.disableButton(false); } if (be == null) { lvjian.SetActive(false); enterButton.disableButton(true); headIcon.gameObject.SetActive(false); bg.SetActive(true); UI_TipsExpLabel.text = ""; oldExpLabel.text = ""; oldLvLabel.text = ""; expjian.SetActive(false); overLabel.text = ""; UI_TipsLvLabel.text = ""; jiantou.SetActive(false); selectLavel.text = LanguageConfigManager.Instance.getLanguage("s0376l8"); } else { enterButton.disableButton(false); bg.SetActive(false); headIcon.gameObject.SetActive(true); selectLavel.text = be.getName(); ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CARDIMAGEPATH, be, headIcon); } GoddessTrainingSample sample = GoddessTrainingSampleManager.Instance.getDataBySid(22); string[] timeLimitLv = sample.TimeLimitLv; for (int i = 0; i < timeLimitLv.Length; i++) //这里是可以作废的 tap按钮上文字变化 { TapButtonBase tap = tapContent.getTapButtonByIndex(i); TapButtonBase tapButtonBase = tapContent.getTapButtonByIndex(i); if (UserManager.Instance.self.getUserLevel() < StringKit.toInt(timeLimitLv[i])) { tapButtonBase.doEventButNoActive = true; tap.textLabel.text = LanguageConfigManager.Instance.getLanguage("s0043l3", sample.TrainingTime[i]); tap.disableButton(false); } else { tapButtonBase.doEventButNoActive = false; tap.textLabel.text = LanguageConfigManager.Instance.getLanguage("s0043l3", sample.TrainingTime[i]); tap.disableButton(false); } } needRMBnum.text = LanguageConfigManager.Instance.getLanguage("s037615", sample.TimeRmb [mSelecteTime]); if (be == null) { return; } Card mCard = be; int vipLv = UserManager.Instance.self.vipLevel; int lv = mCard.getLevel(); mAwardExp = StringKit.toInt(sample.AwardExp [UserManager.Instance.self.getUserLevel() - 1]); int trainingTime = StringKit.toInt(sample.TrainingTime [mSelecteTime]); mAwardExp *= trainingTime; if (isDouble) { mAwardExp *= 2; } long exp = mCard.getEXP(); float vipAwardExp = vipLv > 0 ? VipManagerment.Instance.getVipbyLevel(vipLv).privilege.expAdd * 0.0001f + 1 : 1; mAwardExp = (long)(vipAwardExp * mAwardExp); //最大能获取的经验值 long AwardMaxExp = mAwardExp; mExpOverflow = false; long tmpExp = mCard.checkExp(mAwardExp); if (tmpExp != -1) { AwardMaxExp = tmpExp; mExpOverflow = true; } // mExpOverflow = AwardMaxExp < awardExp + exp; mMaxAwardExp = AwardMaxExp; mIsUpgrade = mMaxAwardExp >= mCard.getNeedExp(); if (mIsUpgrade) { jiantou.SetActive(true); } else { jiantou.SetActive(false); } //UI_TipsExpLabel.text = "+" + mAwardExp; oldExpLabel.text = exp.ToString(); UI_TipsExpLabel.text = (exp + mAwardExp).ToString(); if (vipLv > 0) { if (!mExpOverflow) { //"+" + ((long)(mAwardExp / vipAwardExp)) UI_TipsExpLabel.text = (exp + ((long)(mAwardExp / vipAwardExp))).ToString(); } UI_TipsExpLabel.text += " x" + (vipAwardExp) + "(VIP" + vipLv.ToString() + ")"; } int nextLv = 0; if (tmpExp != -1) { nextLv = EXPSampleManager.Instance.getLevel(mCard.getEXPSid(), tmpExp); } else { nextLv = EXPSampleManager.Instance.getLevel(mCard.getEXPSid(), mMaxAwardExp + exp); } //UI_TipsLvLabel.text = string.Format ("LV{0} LV{1}", lv, nextLv); UI_TipsLvLabel.text = "Lv." + nextLv.ToString(); oldLvLabel.text = "Lv." + lv.ToString(); if (mIsUpgrade) { lvjian.SetActive(true); lvjian.transform.localPosition = UI_TipsLvLabel.transform.localPosition + new Vector3(UI_TipsLvLabel.width + 10f, 0f, 0f); } else { lvjian.SetActive(false); } if (mAwardExp > 0) { expjian.SetActive(true); expjian.transform.localPosition = UI_TipsExpLabel.transform.localPosition + new Vector3(UI_TipsExpLabel.width + 10f, 0f, 0f); } else { expjian.SetActive(false); } if (mExpOverflow) { overLabel.text = "[ff0000]" + Language("cardtraining_expOverflow", (exp + mAwardExp) - AwardMaxExp) + "[-]"; // if(expjian.activeInHierarchy){ // overLabel.transform.localPosition=expjian.transform.localPosition+new Vector3(36f,0f,0f); // }else{ // overLabel.transform.localPosition=UI_TipsExpLabel.transform.localPosition+new Vector3(UI_TipsExpLabel.width+10f,0f,0f); // } // UI_TipsExpLabel.text = "[ff0000]" + UI_TipsExpLabel.text + Language ("cardtraining_expOverflow", (exp + mAwardExp) - AwardMaxExp) + "[-]"; // UI_TipsLvLabel.text = "[ff0000]" + UI_TipsLvLabel.text + "[-]"; //UI_TipsExpLabel.text = "[ff0000]" + UI_TipsExpLabel.text + Language ("cardtraining_expOverflow", (exp + mAwardExp) - AwardMaxExp) + "[-]"; //UI_TipsLvLabel.text = "[ff0000]" + UI_TipsLvLabel.text + "[-]"; } else { overLabel.text = ""; } // UI_RmbLabel.text = string.Format (LanguageConfigManager.Instance.getLanguage ("CardTraining_07"), sample.TimeRmb [mSelecteTime]); }
//标签切换方法 public void InitializeTap(int index) { tapBase.changeTapPage(tapBase.tapButtonList [index]); }