Esempio n. 1
0
 // Token: 0x060018E0 RID: 6368 RVA: 0x0029A7AC File Offset: 0x002989AC
 private void SetMaintainMsg(GameMaintanceType type)
 {
     this.m_Str[0].ClearString();
     if (type == GameMaintanceType.IsMaintain)
     {
         DateTime       dateTime       = Convert.ToDateTime(this.SDK.MaintanceData.StartTime);
         DateTimeOffset dateTimeOffset = new DateTimeOffset(dateTime, new TimeSpan(-5, 0, 0));
         string         text           = ActivityManager.Instance.TransToLocalTime(this.GetMaintanceDataMessage(DataManager.Instance.UserLanguage));
         this.m_Msg.text = text;
     }
     else if (type == GameMaintanceType.HaveLoginInfo)
     {
         string text2 = ActivityManager.Instance.TransToLocalTime(this.GetLoginBoxMsg(DataManager.Instance.UserLanguage));
         this.m_Msg.text = text2;
     }
     else if (type == GameMaintanceType.ProposalUpdate)
     {
         string text3 = ActivityManager.Instance.TransToLocalTime(this.GetUpdateInfo(DataManager.Instance.UserLanguage));
         this.m_Msg.text = text3;
     }
     else if (type == GameMaintanceType.ForciblyUpdate)
     {
         string text4 = ActivityManager.Instance.TransToLocalTime(this.GetUpdateInfo(DataManager.Instance.UserLanguage));
         this.m_Msg.text = text4;
     }
     this.m_Msg.rectTransform.sizeDelta = new Vector2(564f, this.m_Msg.preferredHeight);
     this.m_Content.sizeDelta           = new Vector2(564f, this.m_Msg.preferredHeight);
     this.UpdateScrollRect();
 }
Esempio n. 2
0
 // Token: 0x060018E1 RID: 6369 RVA: 0x0029A908 File Offset: 0x00298B08
 private void SetMaintainTime(GameMaintanceType type)
 {
     if (type == GameMaintanceType.IsMaintain)
     {
         DateTime       dateTime       = Convert.ToDateTime(this.SDK.MaintanceData.StartTime);
         DateTimeOffset dateTimeOffset = new DateTimeOffset(dateTime, new TimeSpan(-5, 0, 0));
         this.m_BeginTime = dateTimeOffset.UtcDateTime.ToLocalTime();
         dateTime         = Convert.ToDateTime(this.SDK.MaintanceData.EndTime);
         dateTimeOffset   = new DateTimeOffset(dateTime, new TimeSpan(-5, 0, 0));
         this.m_EndTime   = dateTimeOffset.UtcDateTime.ToLocalTime();
     }
 }
Esempio n. 3
0
 // Token: 0x060018DD RID: 6365 RVA: 0x0029A234 File Offset: 0x00298434
 private void UpdateBtnText(GameMaintanceType type)
 {
     this.m_BtnText[0].gameObject.SetActive(true);
     this.m_Btn[0].gameObject.SetActive(true);
     this.m_Btn[0].image.sprite = this.m_SpArry.GetSprite(0);
     this.m_BtnText[0].rectTransform.anchoredPosition = new Vector2(34.8f, 0f);
     this.m_BtnFBImage.enabled          = true;
     this.m_Btn[1].image.sprite         = this.m_SpArry.GetSprite(0);
     this.m_BtnRect[1].anchoredPosition = new Vector2(151.5f, -219.5f);
     if (type == GameMaintanceType.IsMaintain)
     {
         this.m_TitleText.text = DataManager.Instance.mStringTable.GetStringByID(8425u);
         if (DataManager.Instance.UserLanguage == GameLanguage.GL_Chs)
         {
             this.m_BtnText[0].text = DataManager.Instance.mStringTable.GetStringByID(9578u);
         }
         else if (DataManager.Instance.UserLanguage == GameLanguage.GL_Jpn)
         {
             this.m_BtnText[0].text = DataManager.Instance.mStringTable.GetStringByID(9579u);
         }
         else if (DataManager.Instance.UserLanguage == GameLanguage.GL_Kor)
         {
             this.m_BtnText[0].text = DataManager.Instance.mStringTable.GetStringByID(9577u);
         }
         else if (DataManager.Instance.UserLanguage == GameLanguage.GL_Rus)
         {
             this.m_BtnText[0].text = DataManager.Instance.mStringTable.GetStringByID(9576u);
         }
         else
         {
             this.m_BtnText[0].text = DataManager.Instance.mStringTable.GetStringByID(8427u);
         }
         this.m_Btn[0].image.sprite = this.m_SpArry.GetSprite(0);
         this.m_BtnFBImage.enabled  = true;
         this.m_BtnText[1].text     = DataManager.Instance.mStringTable.GetStringByID(8470u);
         this.m_BtnText[1].rectTransform.anchoredPosition = new Vector2(0f, 0f);
         this.m_Btn[1].image.sprite = this.m_SpArry.GetSprite(0);
     }
     else if (type == GameMaintanceType.HaveLoginInfo)
     {
         this.m_TitleText.text = DataManager.Instance.mStringTable.GetStringByID(8420u);
         this.m_Btn[0].gameObject.SetActive(false);
         this.m_BtnText[1].text             = DataManager.Instance.mStringTable.GetStringByID(8428u);
         this.m_Btn[1].image.sprite         = this.m_SpArry.GetSprite(1);
         this.m_BtnRect[1].anchoredPosition = new Vector2(0f, -219.5f);
     }
     else if (type == GameMaintanceType.ProposalUpdate)
     {
         this.m_TitleText.text  = DataManager.Instance.mStringTable.GetStringByID(8421u);
         this.m_BtnText[0].text = DataManager.Instance.mStringTable.GetStringByID(8423u);
         this.m_BtnText[0].rectTransform.anchoredPosition = new Vector2(0f, 0f);
         this.m_Btn[0].image.sprite = this.m_SpArry.GetSprite(0);
         this.m_BtnFBImage.enabled  = false;
         this.m_BtnText[1].text     = DataManager.Instance.mStringTable.GetStringByID(8422u);
         this.m_BtnText[1].rectTransform.anchoredPosition = new Vector2(0f, 0f);
         this.m_Btn[1].image.sprite = this.m_SpArry.GetSprite(1);
     }
     else if (type == GameMaintanceType.ForciblyUpdate)
     {
         this.m_TitleText.text  = DataManager.Instance.mStringTable.GetStringByID(8421u);
         this.m_BtnText[0].text = DataManager.Instance.mStringTable.GetStringByID(8424u);
         this.m_BtnText[0].rectTransform.anchoredPosition = new Vector2(0f, 0f);
         this.m_Btn[0].image.sprite = this.m_SpArry.GetSprite(0);
         this.m_BtnFBImage.enabled  = false;
         this.m_BtnText[1].text     = DataManager.Instance.mStringTable.GetStringByID(8422u);
         this.m_BtnText[1].rectTransform.anchoredPosition = new Vector2(0f, 0f);
         this.m_Btn[1].image.sprite = this.m_SpArry.GetSprite(1);
     }
 }