Esempio n. 1
0
 private void CountDown()
 {
     this.totalSeconds = GUIBannerParts.GetRestTimeSeconds(this.restTimeDate);
     if (this.WorldStageData.worldStageM.worldAreaId == "2")
     {
         if (this.totalSeconds >= 99999999)
         {
             if (this.IsMatchDayOfWeek(int.Parse(this.WorldStageData.worldStageM.worldStageId)))
             {
                 this.totalSeconds = GUIBannerParts.GetRestTimeOneDaySeconds(this.restTimeDate);
             }
             else
             {
                 this.totalSeconds = 0;
             }
         }
         GUIBannerParts.SetTimeTextForDayOfWeek(this.timeLabel, this.totalSeconds, this.restTimeDate, true);
     }
     else if (this.worldStageData.isViewRanking && this.worldStageData.isCounting)
     {
         this.timeLabel.text = StringMaster.GetString("QuestPointRankingCounting");
     }
     else if (this.totalSeconds < 99999999)
     {
         GUIBannerParts.SetTimeText(this.timeLabel, this.totalSeconds, this.restTimeDate);
     }
     else
     {
         this.timeLabel.text = string.Empty;
     }
     if (this.totalSeconds <= 0)
     {
         base.CancelInvoke("CountDown");
     }
 }
 private void CountDown()
 {
     this.totalSeconds = GUIBannerParts.GetRestTimeSeconds(this.restTimeDate);
     if (99999999 <= this.totalSeconds)
     {
         this.totalSeconds = GUIBannerParts.GetRestTimeOneDaySeconds(this.restTimeDate);
     }
     if (this.data.countDownDispFlg)
     {
         GUIBannerParts.SetTimeTextForDayOfWeek(this.ngTX_TIME_LIMIT, this.totalSeconds, this.restTimeDate, false);
     }
     else
     {
         GUIBannerParts.SetTimeText(this.ngTX_TIME_LIMIT, this.totalSeconds, this.restTimeDate);
     }
     if (0 >= this.totalSeconds)
     {
         this.ngTX_TIME_LIMIT.text = StringMaster.GetString("ExchangeCloseTitle");
         base.CancelInvoke("CountDown");
         this.DisableBuyButtons();
     }
 }
 private void SetTimeStatus()
 {
     if (this.data.closeTime == null)
     {
         this.ngTX_TIME_LIMIT.gameObject.SetActive(false);
         return;
     }
     this.restTimeDate = DateTime.Parse(this.data.closeTime);
     this.totalSeconds = GUIBannerParts.GetRestTimeSeconds(this.restTimeDate);
     if (this.data.countDownDispFlg)
     {
         if (99999999 <= this.totalSeconds)
         {
             this.totalSeconds = GUIBannerParts.GetRestTimeOneDaySeconds(this.restTimeDate);
         }
         GUIBannerParts.SetTimeTextForDayOfWeek(this.ngTX_TIME_LIMIT, this.totalSeconds, this.restTimeDate, false);
     }
     else if (99999999 > this.totalSeconds)
     {
         GUIBannerParts.SetTimeText(this.ngTX_TIME_LIMIT, this.totalSeconds, this.restTimeDate);
     }
     else
     {
         this.ngTX_TIME_LIMIT.text = string.Empty;
     }
     if (this.data.countDownDispFlg || !string.IsNullOrEmpty(this.ngTX_TIME_LIMIT.text))
     {
         if (0 < this.totalSeconds)
         {
             base.InvokeRepeating("CountDown", 1f, 1f);
         }
         else
         {
             this.ngTX_TIME_LIMIT.text = StringMaster.GetString("ExchangeCloseTitle");
             this.DisableBuyButtons();
         }
     }
 }
Esempio n. 4
0
 private void SetTimeStatus()
 {
     this.restTimeDate = this.worldStageData.wdi.closeTime;
     this.totalSeconds = GUIBannerParts.GetRestTimeSeconds(this.restTimeDate);
     if (this.WorldStageData.worldStageM.worldAreaId == ConstValue.QUEST_AREA_ID_EVENT)
     {
         if (this.totalSeconds >= 99999999)
         {
             if (this.IsMatchDayOfWeek(int.Parse(this.WorldStageData.worldStageM.worldStageId)))
             {
                 this.totalSeconds = GUIBannerParts.GetRestTimeOneDaySeconds(this.restTimeDate);
             }
             else
             {
                 this.totalSeconds = 0;
             }
         }
         GUIBannerParts.SetTimeTextForDayOfWeek(this.timeLabel, this.totalSeconds, this.restTimeDate, true);
     }
     else if (this.worldStageData.isViewRanking && this.worldStageData.isCounting)
     {
         this.timeLabel.text = StringMaster.GetString("QuestPointRankingCounting");
     }
     else if (this.totalSeconds < 99999999)
     {
         GUIBannerParts.SetTimeText(this.timeLabel, this.totalSeconds, this.restTimeDate);
     }
     else
     {
         this.timeLabel.text = string.Empty;
     }
     if ((this.WorldStageData.worldStageM.worldAreaId == ConstValue.QUEST_AREA_ID_EVENT || this.WorldStageData.worldStageM.worldAreaId == ConstValue.QUEST_AREA_ID_ADVENT) && 0 < this.totalSeconds)
     {
         base.InvokeRepeating("CountDown", 1f, 1f);
     }
 }