// Token: 0x06001AA2 RID: 6818 RVA: 0x002D4F9C File Offset: 0x002D319C private void SetNumbers() { UIText component = this.AGS_Form.GetChild(6).GetChild(11).GetComponent <UIText>(); this.fundsText.ClearString(); this.fundsText.IntToFormat((long)this.funds, 1, true); this.fundsText.AppendFormat("{0}"); component.text = this.fundsText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(6).GetChild(12).GetComponent <UIText>(); this.profitText.ClearString(); this.profitText.IntToFormat((long)((ulong)this.profit), 1, true); this.profitText.AppendFormat("{0}"); component.text = this.profitText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); if ((uint)this.funds > this.DM.RoleAttr.Diamond && this.DM.m_CryptData.money == 0) { this.AGS_Form.GetChild(10).GetChild(1).GetComponent <UIText>().color = new Color32(229, 0, 79, byte.MaxValue); } else { this.AGS_Form.GetChild(10).GetChild(1).GetComponent <UIText>().color = new Color32(byte.MaxValue, 238, 158, byte.MaxValue); } }
// Token: 0x060020AE RID: 8366 RVA: 0x003E2424 File Offset: 0x003E0624 private void UpdateInfo() { VIP_DataTbl recordByKey = DataManager.Instance.VIPLevelTable.GetRecordByKey((ushort)DataManager.Instance.RoleAttr.VIPLevel); UIText component = this.AGS_Form.GetChild(2).GetComponent <UIText>(); this.tmpString[0].ClearString(); this.tmpString[0].Append(DataManager.Instance.mStringTable.GetStringByID(7701u)); int num = (int)(recordByKey.loginPoint + recordByKey.dailyAdd * (DataManager.Instance.RoleAttr.SuccessiveLoginDays + 1)); if (num > 600) { num = 600; } this.tmpString[0].IntToFormat((long)num, 1, false); this.tmpString[0].AppendFormat("{0}"); component.text = this.tmpString[0].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(3).GetComponent <UIText>(); this.tmpString[1].ClearString(); this.tmpString[1].Append(DataManager.Instance.mStringTable.GetStringByID(7702u)); this.tmpString[1].IntToFormat((long)(DataManager.Instance.RoleAttr.SuccessiveLoginDays + 1), 1, true); this.tmpString[1].AppendFormat("{0}"); component.text = this.tmpString[1].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(4).GetChild(1).GetComponent <UIText>(); this.tmpString[2].ClearString(); if (recordByKey.VIPLevel > this.lastVipLevel) { this.tmpString[2].Append(DataManager.Instance.mStringTable.GetStringByID(7725u)); } else { this.tmpString[2].Append(DataManager.Instance.mStringTable.GetStringByID(7703u)); this.tmpString[2].IntToFormat((long)((ulong)DataManager.Instance.RoleAttr.VipPoint), 1, true); this.tmpString[2].IntToFormat((long)((ulong)recordByKey.VIPPoint), 1, true); this.tmpString[2].AppendFormat("{0} / {1}"); } component.text = this.tmpString[2].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); RectTransform component2 = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <RectTransform>(); float num2 = DataManager.Instance.RoleAttr.VipPoint / recordByKey.VIPPoint; num2 = Mathf.Min(num2, 1f); component2.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 422f); component = this.AGS_Form.GetChild(7).GetComponent <UIText>(); this.tmpString[3].ClearString(); this.tmpString[3].IntToFormat((long)recordByKey.VIPLevel, 1, false); this.tmpString[3].AppendFormat("{0}"); component.text = this.tmpString[3].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); }
// Token: 0x06001511 RID: 5393 RVA: 0x00240B4C File Offset: 0x0023ED4C float _CheckTextHandle.TextLenCheck(UIText mText, CString Str) { int fontSize = mText.fontSize; float preferredWidth = mText.preferredWidth; float x = mText.rectTransform.sizeDelta.x; if (preferredWidth > x) { for (int i = 1; i <= 2; i++) { mText.fontSize = fontSize - i; mText.SetLayoutDirty(); mText.cachedTextGeneratorForLayout.Invalidate(); preferredWidth = mText.preferredWidth; if (preferredWidth <= x) { break; } } if (preferredWidth > x) { while (preferredWidth > x) { Str.Substring(Str.ToString(), 0, Str.Length - 2); mText.text = Str.ToString(); mText.SetAllDirty(); mText.cachedTextGenerator.Invalidate(); mText.cachedTextGeneratorForLayout.Invalidate(); preferredWidth = mText.preferredWidth; } Str.Append("..."); mText.text = Str.ToString(); mText.SetAllDirty(); mText.cachedTextGenerator.Invalidate(); mText.cachedTextGeneratorForLayout.Invalidate(); preferredWidth = mText.preferredWidth; while (preferredWidth > x && mText.fontSize > 4) { mText.fontSize--; mText.SetLayoutDirty(); mText.cachedTextGeneratorForLayout.Invalidate(); preferredWidth = mText.preferredWidth; if (preferredWidth <= x) { break; } } } } return(preferredWidth); }
// Token: 0x06001392 RID: 5010 RVA: 0x0022DD0C File Offset: 0x0022BF0C private void CreateNobilityOccupyBoard() { if (LeaderBoardManager.Instance.NobileWonderId != (ushort)this.CurrentWonderId) { return; } this.SPHeight.Clear(); this.SPHeight.Add(38f); int num = Mathf.Clamp(DataManager.Instance.m_RecvDataIdx, 0, 100); ushort num2 = 0; while ((int)num2 < LeaderBoardManager.Instance.NobileBoard.Count) { if (LeaderBoardManager.Instance.NobileBoard[(int)num2].HomeKingdomID <= 0) { break; } this.SPHeight.Add(53f); num2 += 1; } UIText component = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(11153u); this.AGS_Form.GetChild(2).gameObject.SetActive(true); this.AGS_Form.GetChild(5).gameObject.SetActive(false); this.AGS_Form.GetChild(3).gameObject.SetActive(true); this.AGS_Form.GetChild(3).GetChild(0).gameObject.SetActive(true); this.AGS_Form.GetChild(3).GetChild(1).gameObject.SetActive(false); Transform child = this.AGS_Form.GetChild(3).GetChild(0); child.gameObject.SetActive(true); GUIManager.Instance.ChangeHeroItemImg(child, eHeroOrItem.Hero, LeaderBoardManager.Instance.NobileHead, 11, 0, 0); component = this.AGS_Form.GetChild(3).GetChild(2).GetComponent <UIText>(); this.Ranking.ClearString(); this.Ranking.Append(DataManager.Instance.mStringTable.GetStringByID(11154u)); component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(3).GetChild(3).GetComponent <UIText>(); this.RankValue.ClearString(); if (LeaderBoardManager.Instance.NobileBoard.Count > 0) { GameConstants.GetNameString(this.RankValue, LeaderBoardManager.Instance.NobileBoard[0].HomeKingdomID, LeaderBoardManager.Instance.NobileBoard[0].Name, LeaderBoardManager.Instance.NobileBoard[0].AllianceTag, true); } component.text = this.RankValue.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); }
// Token: 0x06001339 RID: 4921 RVA: 0x00219EC8 File Offset: 0x002180C8 public void CreateTopBoard() { this.SPHeight.Clear(); this.SPHeight.Add(118f); this.SPHeight.Add(118f); this.SPHeight.Add(118f); this.SPHeight.Add(118f); this.AGS_Form.GetChild(3).gameObject.SetActive(false); RoleBuildingData buildData = GUIManager.Instance.BuildingData.GetBuildData(8, 0); this.AGS_Form.GetChild(12).gameObject.SetActive(false); UIKVKLBoard.isTopBoard = true; UIText component = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9848u); this.AGS_Form.GetChild(2).gameObject.SetActive(true); this.AGS_Form.GetChild(5).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); CString cstring = StringManager.Instance.StaticString1024(); CString cstring2 = StringManager.Instance.StaticString1024(); cstring.ClearString(); cstring.Append(GameConstants.GetDateTime(LeaderBoardManager.Instance.KvKTopBoard.SortTime).ToString("MM/dd/yy HH:mm")); cstring2.ClearString(); cstring2.Append(GameConstants.GetDateTime(LeaderBoardManager.Instance.KvKTopBoard.SortTime + (long)((ulong)LeaderBoardManager.Instance.KvKTopBoard.KingdomEventRequireTime)).ToString("MM/dd/yy HH:mm")); this.Ranking.ClearString(); this.Ranking.Append(DataManager.Instance.mStringTable.GetStringByID(8153u)); this.Ranking.Append(" "); this.Ranking.Append(cstring); this.Ranking.Append(" ~ "); this.Ranking.Append(cstring2); component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); }
// Token: 0x06000D9A RID: 3482 RVA: 0x0015C9E0 File Offset: 0x0015ABE0 private void SpawnUrlBtn(int Index) { GameObject gameObject = UnityEngine.Object.Instantiate(this.UrlGO) as GameObject; gameObject.SetActive(true); gameObject.transform.SetParent(this.ContentT, false); this.DestroyGO.Add(gameObject); UIButton component = gameObject.transform.GetComponent <UIButton>(); component.m_Handler = this; component.m_BtnID2 = Index; UIText component2 = gameObject.transform.GetChild(0).GetComponent <UIText>(); component2.text = this.DM.mStringTable.GetStringByID(15014u); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2.cachedTextGeneratorForLayout.Invalidate(); this.RefreshTextArray.Add(component2); float num = component2.preferredHeight + 26f; ((RectTransform)gameObject.transform).anchoredPosition = new Vector2(this.NormalLeft, this.NowY); ((RectTransform)gameObject.transform).sizeDelta = new Vector2(component2.preferredWidth + 2f, num); this.NowY -= num + this.ItemDelta; ((RectTransform)this.ContentT).sizeDelta += new Vector2(0f, num + this.ItemDelta); }
// Token: 0x06001F6D RID: 8045 RVA: 0x003C0F1C File Offset: 0x003BF11C public override void OnOpen(int arg1, int arg2) { this.door = (Door)GUIManager.Instance.FindMenu(EGUIWindow.Door); this.DM = DataManager.Instance; if (this.DM.mLordEquip == null) { this.DM.mLordEquip = LordEquipData.Instance(); } this.SPHeight = new List <float>(); Font ttffont = GUIManager.Instance.GetTTFFont(); this.AGS_Form = base.transform; UIText component = this.AGS_Form.GetChild(0).GetChild(2).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(8600u); this.AGS_ScrollPanel = this.AGS_Form.GetChild(1).GetComponent <ScrollPanel>(); component = this.AGS_Form.GetChild(2).GetChild(0).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = string.Empty; UIButton component2 = this.AGS_Form.GetChild(2).GetChild(0).GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component = this.AGS_Form.GetChild(2).GetChild(0).GetChild(1).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(924u); component2 = this.AGS_Form.GetChild(2).GetChild(0).GetChild(2).GetComponent <UIButton>(); component2.m_Handler = this; component = this.AGS_Form.GetChild(2).GetChild(0).GetChild(2).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(925u); this.CloseText = StringManager.Instance.SpawnString(150); this.CloseText.StringToFormat(this.DM.mStringTable.GetStringByID(8600u)); this.CloseText.AppendFormat(this.DM.mStringTable.GetStringByID(3775u)); component = this.AGS_Form.GetChild(3).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.CloseText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component2 = this.AGS_Form.GetChild(3).GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 3; component = this.AGS_Form.GetChild(3).GetChild(1).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(3776u); component2 = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 99; Image component3 = this.AGS_Form.GetChild(4).GetComponent <Image>(); component3.sprite = this.door.LoadSprite("UI_main_close_base"); component3.material = this.door.LoadMaterial(); component3.enabled = !GUIManager.Instance.bOpenOnIPhoneX; component3 = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <Image>(); component3.sprite = this.door.LoadSprite("UI_main_close"); component3.material = this.door.LoadMaterial(); this.NO = this.AGS_Form.GetChild(3).GetComponent <RectTransform>(); this.isLoading = true; }
// Token: 0x06001D22 RID: 7458 RVA: 0x00344194 File Offset: 0x00342394 private void updateEff() { UIText component = this.AGS_Form.GetChild(2).GetChild(3).GetChild(1).GetComponent <UIText>(); this.tmpString[0].ClearString(); GameConstants.GetTimeInfoString(this.tmpString[0], DataManager.Instance.AttribVal.GetEffectBaseValByEffectID(305)); component.text = this.tmpString[0].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); }
// Token: 0x06001816 RID: 6166 RVA: 0x0028B1CC File Offset: 0x002893CC private void UpdateInfo() { BuildLevelRequest buildLevelRequestData = GUIManager.Instance.BuildingData.GetBuildLevelRequestData(21, GUIManager.Instance.BuildingData.AllBuildsData[(int)this.Manor_ID].Level); long num = 0L; if (buildLevelRequestData.Effect1 == 358) { num = (long)((ulong)buildLevelRequestData.Value1); } else if (buildLevelRequestData.Effect2 == 358) { num = (long)((ulong)buildLevelRequestData.Value2); } else if (buildLevelRequestData.Effect3 == 358) { num = (long)buildLevelRequestData.Value3; } num = num * (long)((ulong)DataManager.Instance.AttribVal.GetEffectBaseVal(GATTR_ENUM.EGE_PETRSS_PRODUCTION_PERCENT) + 10000UL) / 10000L; this.values[1].ClearString(); this.values[1].IntToFormat(num, 1, true); this.values[1].AppendFormat("{0}"); UIText component = this.AGS_Form.GetChild(1).GetChild(1).GetChild(2).GetComponent <UIText>(); component.text = this.values[1].ToString(); component.cachedTextGenerator.Invalidate(); component.SetAllDirty(); this.values[2].ClearString(); this.values[2].IntToFormat((long)((ulong)DataManager.Instance.PetResource.Capacity), 1, true); this.values[2].AppendFormat("{0}"); component = this.AGS_Form.GetChild(1).GetChild(2).GetChild(2).GetComponent <UIText>(); component.text = this.values[2].ToString(); component.cachedTextGenerator.Invalidate(); component.SetAllDirty(); this.values[3].ClearString(); this.values[3].IntToFormat(DataManager.Instance.PetResource.GetSpeed(), 1, true); this.values[3].AppendFormat("{0}"); component = this.AGS_Form.GetChild(1).GetChild(3).GetChild(2).GetComponent <UIText>(); component.text = this.values[3].ToString(); component.cachedTextGenerator.Invalidate(); component.SetAllDirty(); }
// Token: 0x060012F2 RID: 4850 RVA: 0x0020FCA0 File Offset: 0x0020DEA0 private void CreateAlliHuntBoard() { this.SPHeight.Clear(); this.SPHeight.Add(38f); ushort num = 0; while ((int)num < LeaderBoardManager.Instance.AlliHuntBoard.Count) { this.SPHeight.Add(53f); num += 1; } UIText component = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(1362u); this.AGS_Form.GetChild(2).gameObject.SetActive(true); this.AGS_Form.GetChild(5).gameObject.SetActive(false); this.AGS_Form.GetChild(3).gameObject.SetActive(true); this.AGS_Form.GetChild(3).GetChild(0).gameObject.SetActive(true); this.AGS_Form.GetChild(3).GetChild(1).gameObject.SetActive(false); Transform child = this.AGS_Form.GetChild(3).GetChild(0); child.gameObject.SetActive(true); GUIManager.Instance.ChangeHeroItemImg(child, eHeroOrItem.Hero, DataManager.Instance.RoleAttr.Head, 11, 0, 0); if (LeaderBoardManager.Instance.AlliHuntRank > 0) { component = this.AGS_Form.GetChild(3).GetChild(2).GetComponent <UIText>(); this.Ranking.ClearString(); this.Ranking.IntToFormat((long)LeaderBoardManager.Instance.AlliHuntRank, 1, false); this.Ranking.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(7060u)); component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(3).GetChild(3).GetComponent <UIText>(); this.RankValue.ClearString(); this.RankValue.uLongToFormat(LeaderBoardManager.Instance.AlliHuntBoard[LeaderBoardManager.Instance.AlliHuntRank - 1].Value, 1, false); this.RankValue.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(8121u)); component.text = this.RankValue.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } }
// Token: 0x06001311 RID: 4881 RVA: 0x00212DD4 File Offset: 0x00210FD4 private void CreateAlliVSBoard() { this.SPHeight.Clear(); this.SPHeight.Add(38f); ushort num = 0; while ((int)num < LeaderBoardManager.Instance.AllianceWarGroupBoard.Count) { this.SPHeight.Add(53f); num += 1; } UIText component = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7091u); this.AGS_Form.GetChild(2).gameObject.SetActive(true); this.AGS_Form.GetChild(5).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); this.Ranking.ClearString(); this.Ranking.IntToFormat((long)LeaderBoardManager.Instance.AllianceWarGroupRank, 1, false); this.Ranking.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(9856u)); component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); Image component2 = this.AGS_Form.GetChild(10).GetComponent <Image>(); component2.gameObject.SetActive(true); GUIManager.Instance.SetAllyWarRankImage(component2, ActivityManager.Instance.AW_Rank); this.Text1.text = ActivityManager.Instance.AW_Rank.ToString(); RectTransform component3 = this.Text1.gameObject.GetComponent <RectTransform>(); if (ActivityManager.Instance.AW_Rank > 20) { component3.anchoredPosition = Vector2.zero; } else { component3.anchoredPosition = new Vector2(0f, 5f); } UIButton component4 = this.AGS_Form.GetChild(10).GetComponent <UIButton>(); component4.m_Handler = this; component4.m_EffectType = e_EffectType.e_Normal; component4.transition = Selectable.Transition.None; component4.m_BtnID1 = 12; UIButtonHint uibuttonHint = component4.gameObject.AddComponent <UIButtonHint>(); uibuttonHint.m_eHint = EUIButtonHint.UIArena_Hint; uibuttonHint.m_Handler = this; uibuttonHint.ControlFadeOut = GUIManager.Instance.m_Arena_Hint.m_RectTransform.gameObject; uibuttonHint.ScrollID = 1; }
// Token: 0x06001389 RID: 5001 RVA: 0x0022CC98 File Offset: 0x0022AE98 private void CreateNobilityBoard() { this.SPHeight.Clear(); this.SPHeight.Add(38f); ushort num = 0; while ((int)num < LeaderBoardManager.Instance.MobiWorldKingBoard.Count) { this.SPHeight.Add(53f); num += 1; } UIText component = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(11061u); this.AGS_Form.GetChild(2).gameObject.SetActive(true); this.AGS_Form.GetChild(5).gameObject.SetActive(false); this.AGS_Form.GetChild(3).gameObject.SetActive(true); this.AGS_Form.GetChild(3).GetChild(0).gameObject.SetActive(true); this.AGS_Form.GetChild(3).GetChild(1).gameObject.SetActive(false); this.SetHiBtnAndText(); component = this.AGS_Form.GetChild(3).GetChild(2).GetComponent <UIText>(); if (this.Ranking != null) { this.Ranking.ClearString(); component.text = DataManager.Instance.mStringTable.GetStringByID(11088u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } this.AGS_Form.GetChild(9).gameObject.SetActive(true); component = this.AGS_Form.GetChild(13).GetChild(0).GetComponent <UIText>(); if (component != null) { if (this.SendResult == 0) { component.text = DataManager.Instance.mStringTable.GetStringByID(11090u); } else { component.text = DataManager.Instance.mStringTable.GetStringByID(11155u); } } if (LeaderBoardManager.Instance.MobiWorldKingBoard.Count <= 0) { this.AGS_Form.GetChild(13).gameObject.SetActive(true); } else { this.AGS_Form.GetChild(13).gameObject.SetActive(false); } }
// Token: 0x06001AA1 RID: 6817 RVA: 0x002D4CBC File Offset: 0x002D2EBC private void updateTimeBar() { if (this.DM.m_CryptData.money == 0) { this.AGS_SuperBtn_SA.SetSpriteIndex(0); this.AGS_Form.GetChild(10).GetComponent <UIButton>().m_BtnID1 = 1; return; } long num = this.DM.m_CryptData.startTime + (long)((ulong)GameConstants.CryptSecends[(int)this.DM.m_CryptData.kind]) - this.DM.ServerTime; if (num < 0L) { num = 0L; } if (num == 0L) { UIText component = this.AGS_Form.GetChild(8).GetChild(4).GetChild(1).GetComponent <UIText>(); this.timeText.ClearString(); this.timeText.Append(this.DM.mStringTable.GetStringByID(5881u)); component.text = this.timeText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.AGS_SuperBtn_SA.SetSpriteIndex(2); this.AGS_Form.GetChild(10).GetChild(2).gameObject.SetActive(false); this.AGS_Form.GetChild(10).GetChild(1).GetComponent <UIText>().text = this.DM.mStringTable.GetStringByID(4091u); this.Light.gameObject.SetActive(true); this.AGS_Form.GetChild(10).GetComponent <UIButton>().m_BtnID1 = 2; } else { UIText component = this.AGS_Form.GetChild(8).GetChild(4).GetChild(1).GetComponent <UIText>(); this.timeText.ClearString(); this.timeText.Append(this.DM.mStringTable.GetStringByID(3933u)); this.timeText.Append(" "); RectTransform component2 = this.AGS_Form.GetChild(8).GetChild(4).GetChild(0).GetComponent <RectTransform>(); component2.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 256f * (1f - (float)num / GameConstants.CryptSecends[(int)this.DM.m_CryptData.kind])); GameConstants.GetTimeString(this.timeText, (uint)num, false, false, true, true, true); component.text = this.timeText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.AGS_SuperBtn_SA.SetSpriteIndex(1); this.AGS_Form.GetChild(10).GetChild(0).gameObject.SetActive(false); this.AGS_Form.GetChild(10).GetChild(1).GetComponent <UIText>().text = this.DM.mStringTable.GetStringByID(5880u); this.Light.gameObject.SetActive(false); this.AGS_Form.GetChild(10).GetComponent <UIButton>().m_BtnID1 = 3; } }
// Token: 0x06000D98 RID: 3480 RVA: 0x0015C7B8 File Offset: 0x0015A9B8 private void SpawnText(CString tmpContent) { GameObject gameObject = UnityEngine.Object.Instantiate(this.TextGO) as GameObject; gameObject.SetActive(true); gameObject.transform.SetParent(this.ContentT, false); this.DestroyGO.Add(gameObject); CString cstring = StringManager.Instance.SpawnString(tmpContent.Length); cstring.Append(tmpContent); this.AllObject.Add(cstring); UIText component = gameObject.transform.GetComponent <UIText>(); component.text = cstring.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component.cachedTextGeneratorForLayout.Invalidate(); component.rectTransform.anchoredPosition = new Vector2(this.NormalLeft, this.NowY); component.rectTransform.sizeDelta = new Vector2(709f, component.preferredHeight + 2f); this.RefreshTextArray.Add(component); this.NowY -= component.preferredHeight + this.ItemDelta; ((RectTransform)this.ContentT).sizeDelta += new Vector2(0f, component.preferredHeight + this.ItemDelta); }
// Token: 0x06001303 RID: 4867 RVA: 0x00211858 File Offset: 0x0020FA58 private void CreateMobilizationAlliWorldBoard(bool showNotReady = false) { this.SPHeight.Clear(); this.SPHeight.Add(38f); int num = Mathf.Clamp(DataManager.Instance.m_RecvDataIdx, 0, 100); ushort num2 = 0; while ((int)num2 < LeaderBoardManager.Instance.MobilizationAlliWorldBoard.Count) { if (LeaderBoardManager.Instance.MobilizationAlliWorldBoard[(int)num2].Score > 0u) { this.SPHeight.Add(53f); } num2 += 1; } UIText component = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(17222u); this.AGS_Form.GetChild(2).gameObject.SetActive(true); this.AGS_Form.GetChild(11).gameObject.SetActive(true); Image component2 = this.AGS_Form.GetChild(10).GetComponent <Image>(); component2.gameObject.SetActive(true); GUIManager.Instance.SetAllyRankImage(component2, 4); if (showNotReady) { this.AGS_Panel2.gameObject.SetActive(false); this.AGS_Form.GetChild(13).gameObject.SetActive(true); component = this.AGS_Form.GetChild(13).GetChild(0).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(14613u); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); component.gameObject.SetActive(true); this.Ranking.ClearString(); this.Ranking.Append(DataManager.Instance.mStringTable.GetStringByID(9580u)); component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); return; } this.AGS_Panel2.gameObject.SetActive(true); this.AGS_Form.GetChild(13).gameObject.SetActive(false); this.AGS_Form.GetChild(5).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); this.Ranking.ClearString(); if (LeaderBoardManager.Instance.MobilizationAlliWorldRank == 0) { this.Ranking.Append(DataManager.Instance.mStringTable.GetStringByID(8414u)); } else { this.Ranking.IntToFormat((long)LeaderBoardManager.Instance.MobilizationAlliWorldRank, 1, false); this.Ranking.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(9856u)); } component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); RectTransform component3 = this.AGS_Form.GetChild(15).GetComponent <RectTransform>(); if (LeaderBoardManager.Instance.MobilizationAlliWorldLastRank != 0 && LeaderBoardManager.Instance.MobilizationAlliWorldLastRank != LeaderBoardManager.Instance.MobilizationAlliWorldRank) { if (LeaderBoardManager.Instance.MobilizationAlliWorldLastRank > LeaderBoardManager.Instance.MobilizationAlliWorldRank) { component3.GetComponent <UISpritesArray>().SetSpriteIndex(0); } else { component3.GetComponent <UISpritesArray>().SetSpriteIndex(1); } component3.gameObject.SetActive(true); float x = Mathf.Min(173f, component.rectTransform.anchoredPosition.x + component.preferredWidth / 2f + 15f); component3.anchoredPosition = new Vector2(x, component3.anchoredPosition.y); this.RankValue.ClearString(); this.RankValue.IntToFormat((long)Math.Abs(LeaderBoardManager.Instance.MobilizationAlliWorldLastRank - LeaderBoardManager.Instance.MobilizationAlliWorldRank), 1, false); this.RankValue.AppendFormat("{0}"); component = component3.GetChild(0).GetComponent <UIText>(); component.text = this.RankValue.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else { component3.gameObject.SetActive(false); } }
// Token: 0x060012FF RID: 4863 RVA: 0x00210EBC File Offset: 0x0020F0BC public override void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId) { if (dataIdx == 0) { item.transform.GetChild(0).gameObject.SetActive(true); item.transform.GetChild(1).gameObject.SetActive(false); UIText component = item.transform.GetChild(0).GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7062u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(1364u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(4612u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(7).GetComponent <UIText>(); component.gameObject.SetActive(true); component.text = DataManager.Instance.mStringTable.GetStringByID(9857u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else { item.transform.GetChild(0).gameObject.SetActive(false); item.transform.GetChild(1).gameObject.SetActive(true); item.transform.GetChild(1).GetChild(11).gameObject.SetActive(false); this.SortTextArray[0, panelObjectIdx].ClearString(); this.SortTextArray[0, panelObjectIdx].IntToFormat((long)dataIdx, 1, false); this.SortTextArray[0, panelObjectIdx].AppendFormat("{0}"); UIText component = item.transform.GetChild(1).GetChild(4).GetComponent <UIText>(); component.text = this.SortTextArray[0, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].KingdomID, LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].Name, LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].AllianceTag, false); component = item.transform.GetChild(1).GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[2, panelObjectIdx].ClearString(); this.SortTextArray[2, panelObjectIdx].uLongToFormat((ulong)LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].Score, 1, true); this.SortTextArray[2, panelObjectIdx].AppendFormat("{0}"); component = item.transform.GetChild(1).GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButton component2 = item.transform.GetChild(1).GetChild(10).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 1; component2.m_BtnID2 = dataIdx - 1; this.SortTextArray[3, panelObjectIdx].ClearString(); component = item.transform.GetChild(1).GetChild(9).GetComponent <UIText>(); UISpritesArray component3 = item.transform.GetChild(1).GetChild(8).GetComponent <UISpritesArray>(); if (LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].State == 1) { this.SortTextArray[3, panelObjectIdx].IntToFormat((long)LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].ChangeRank, 1, true); this.SortTextArray[3, panelObjectIdx].AppendFormat("{0}"); component3.SetSpriteIndex(0); component3.gameObject.SetActive(true); component.gameObject.SetActive(true); component.color = Color.white; component.rectTransform.anchoredPosition = new Vector2(component.rectTransform.anchoredPosition.x, -19.5f); } else if (LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].State == 2) { this.SortTextArray[3, panelObjectIdx].IntToFormat((long)LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].ChangeRank, 1, true); this.SortTextArray[3, panelObjectIdx].AppendFormat("{0}"); component3.SetSpriteIndex(1); component3.gameObject.SetActive(true); component.gameObject.SetActive(true); component.color = Color.white; component.rectTransform.anchoredPosition = new Vector2(component.rectTransform.anchoredPosition.x, -19.5f); } else if (LeaderBoardManager.Instance.MobilizationAlliWorldBoard[dataIdx - 1].State == 3) { this.SortTextArray[3, panelObjectIdx].Append(DataManager.Instance.mStringTable.GetStringByID(17250u)); component3.gameObject.SetActive(false); component.gameObject.SetActive(true); component.color = new Color32(byte.MaxValue, byte.MaxValue, 0, byte.MaxValue); component.rectTransform.anchoredPosition = new Vector2(component.rectTransform.anchoredPosition.x, -10f); } else { component3.gameObject.SetActive(false); component.gameObject.SetActive(false); } component.text = this.SortTextArray[3, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); if (dataIdx == LeaderBoardManager.Instance.MobilizationAlliWorldRank) { component3 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(2); component3 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(2); component3 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(2); component3 = item.transform.GetChild(1).GetChild(3).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(2); } else if (dataIdx % 2 == 0) { component3 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); component3 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); component3 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); component3 = item.transform.GetChild(1).GetChild(3).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); } else { component3 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); component3 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); component3 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); component3 = item.transform.GetChild(1).GetChild(3).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); } } }
// Token: 0x060015A1 RID: 5537 RVA: 0x0024E49C File Offset: 0x0024C69C public void Init() { DataManager instance = DataManager.Instance; this.ResetTimeStr = StringManager.Instance.SpawnString(100); this.TitleObject = this.transform.GetChild(0).gameObject; UIText component = this.transform.GetChild(0).GetChild(1).GetComponent <UIText>(); component.text = instance.mStringTable.GetStringByID(1530u); this.AddRefreshText(component); component = this.transform.GetChild(2).GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = instance.mStringTable.GetStringByID(323u); this.AddRefreshText(component); component = this.transform.GetChild(10).GetChild(0).GetComponent <UIText>(); this.ResetTimeStr.ClearString(); DateTime dateTime = GameConstants.GetDateTime(DataManager.Instance.RoleAttr.FirstTimer); this.ResetTimeStr.IntToFormat((long)dateTime.Hour, 2, false); this.ResetTimeStr.IntToFormat((long)dateTime.Minute, 2, false); this.ResetTimeStr.AppendFormat(instance.mStringTable.GetStringByID(753u)); component.text = this.ResetTimeStr.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.AddRefreshText(component); this.CompleteBarTrans = this.TimeBar.transform.GetChild(0).GetChild(0).GetChild(0); component = this.CompleteBarTrans.GetChild(0).GetComponent <UIText>(); component.text = instance.mStringTable.GetStringByID(7949u); this.AddRefreshText(component); if (GUIManager.Instance.IsArabic) { this.transform.GetChild(1).GetChild(0).GetChild(1).localScale = new Vector3(-1f, 1f, 1f); } this.SpeedupBtnObj = this.transform.GetChild(1).GetChild(0).GetChild(1).gameObject; CString cstring = StringManager.Instance.StaticString1024(); cstring.ClearString(); cstring.AppendFormat("Role/RewardBtn"); AssetBundle assetBundle = AssetManager.GetAssetBundle(cstring, out this.TreasureassetKey); this.Treasure = (UnityEngine.Object.Instantiate(assetBundle.Load("m")) as GameObject); GUIManager.Instance.SetLayer(this.Treasure, 5); Vector3 eulerAngles = new Vector3(23.5f, 152.5f, 350.6f); this.TreasureBox[0] = new VIPMission._TreasureBox(this.Treasure.transform); this.TreasureBox[0].transform.SetParent(this.transform.GetChild(3)); this.TreasureBox[0].transform.localScale = Vector3.one * 300f; this.TreasureBox[0].NotifyHandle = this; Quaternion localRotation = this.TreasureBox[0].transform.localRotation; localRotation.eulerAngles = eulerAngles; this.TreasureBox[0].transform.localRotation = localRotation; this.TreasureBox[0].transform.localPosition = Vector3.zero; this.RewardBtn[0] = this.transform.GetChild(3).GetChild(0).GetComponent <UIButton>(); this.RewardBtn[0].m_Handler = this; this.RestrictStr[0] = StringManager.Instance.SpawnString(30); this.RestrictStr[0].IntToFormat((long)DataManager.MissionDataManager.VipLvRestrict[0], 1, false); this.RestrictStr[0].AppendFormat(instance.mStringTable.GetStringByID(7951u)); this.Restrict[0] = this.transform.GetChild(3).GetChild(1); component = this.transform.GetChild(3).GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = this.RestrictStr[0].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.AddRefreshText(component); for (int i = 1; i < this.TreasureBox.Length; i++) { this.TreasureBox[i] = new VIPMission._TreasureBox((UnityEngine.Object.Instantiate(this.Treasure) as GameObject).transform); this.TreasureBox[i].transform.SetParent(this.transform.GetChild(3 + i)); this.TreasureBox[i].transform.localScale = this.TreasureBox[0].transform.localScale; this.TreasureBox[i].transform.localPosition = this.TreasureBox[0].transform.localPosition; this.TreasureBox[i].transform.localRotation = this.TreasureBox[0].transform.localRotation; this.TreasureBox[i].NotifyHandle = this; this.RestrictStr[i] = StringManager.Instance.SpawnString(30); this.RestrictStr[i].IntToFormat((long)DataManager.MissionDataManager.VipLvRestrict[i], 1, false); this.RestrictStr[i].AppendFormat(instance.mStringTable.GetStringByID(7951u)); this.Restrict[i] = this.transform.GetChild(3 + i).GetChild(1); this.RewardBtn[i] = this.transform.GetChild(3 + i).GetChild(0).GetComponent <UIButton>(); this.RewardBtn[i].m_Handler = this; this.RewardBtn[i].m_BtnID1 = i; component = this.transform.GetChild(3 + i).GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = this.RestrictStr[i].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.AddRefreshText(component); } DataManager.MissionDataManager.UpdateUIBox = 0; this.TreasureBox[6].transform.parent.gameObject.SetActive(false); this.PrictTrans = this.transform.GetChild(2); this.PriceCont = this.transform.GetChild(2).GetChild(2).GetChild(0).GetComponent <RectTransform>(); this.PriceScroll = this.transform.GetChild(2).GetChild(2).GetComponent <CScrollRect>(); UIButtonHint.scrollRect = this.PriceScroll; GUIManager instance2 = GUIManager.Instance; for (byte b = 0; b < 8; b += 1) { instance2.InitianHeroItemImg(this.PriceCont.GetChild(0).GetChild(0).GetChild((int)b), eHeroOrItem.Item, 0, 0, 0, 0, true, true, true, false); this.AddRefreshText(this.PriceCont.GetChild(0).GetChild(0).GetChild((int)b).GetChild(4).GetComponent <UIText>()); } this.ScreenSize = instance2.m_UICanvas.GetComponent <RectTransform>().sizeDelta; this.ScrollContWidth = this.PriceCont.sizeDelta.x; this.ScrollPricePos = this.PriceCont.anchoredPosition; this.ResetTitleTrans = this.transform.GetChild(10); Camera.main.cullingMask |= 1 << LayerMask.NameToLayer(GlobalProjectorManager.GlobalProjectorLayer); this.UpdateUI(); if (GUIManager.Instance.IsArabic) { Transform child = this.transform.GetChild(11); localRotation = child.localRotation; localRotation.eulerAngles = new Vector3(9.501f, 20.636f, 142.35f); child.localRotation = localRotation; } }
// Token: 0x060020B1 RID: 8369 RVA: 0x003E2AA0 File Offset: 0x003E0CA0 private void SetShowVip(ushort _targetLevel) { ushort viplevel = (ushort)DataManager.Instance.RoleAttr.VIPLevel; if (_targetLevel == 0) { _targetLevel = viplevel; } if (_targetLevel > this.lastVipLevel) { _targetLevel = this.lastVipLevel; } if (this.targetLevel == _targetLevel) { return; } this.targetLevel = _targetLevel; this.AGS_Form.GetChild(17).gameObject.SetActive(this.targetLevel != 1); this.AGS_Form.GetChild(18).gameObject.SetActive(this.targetLevel != this.lastVipLevel); DataManager instance = DataManager.Instance; VIP_DataTbl recordByKey = instance.VIPLevelTable.GetRecordByKey(this.targetLevel); VIP_DataTbl recordByKey2 = instance.VIPLevelTable.GetRecordByKey(this.targetLevel + 1); UIText component = this.AGS_Form.GetChild(14).GetChild(2).GetComponent <UIText>(); this.tmpString[4].ClearString(); this.tmpString[4].Append(DataManager.Instance.mStringTable.GetStringByID(7705u)); this.tmpString[4].IntToFormat((long)recordByKey.VIPLevel, 1, false); this.tmpString[4].AppendFormat(" {0}"); component.text = this.tmpString[4].ToString(); if (recordByKey.VIPLevel > viplevel) { component.color = new Color(0.6f, 0.58f, 0.38f); } else { component.color = new Color(1f, 0.97f, 0.63f); } component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(15).GetChild(2).GetComponent <UIText>(); this.tmpString[5].ClearString(); this.tmpString[5].Append(DataManager.Instance.mStringTable.GetStringByID(7705u)); this.tmpString[5].IntToFormat((long)recordByKey2.VIPLevel, 1, false); this.tmpString[5].AppendFormat(" {0}"); component.text = this.tmpString[5].ToString(); if (recordByKey2.VIPLevel > viplevel) { component.color = new Color(0.6f, 0.58f, 0.38f); } else { component.color = new Color(1f, 0.97f, 0.63f); } component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(14).GetChild(3).GetComponent <UIText>(); if (recordByKey.VIPLevel > viplevel) { component.color = new Color(0.6f, 0.58f, 0.38f); } else { component.color = new Color(1f, 0.97f, 0.63f); } component = this.AGS_Form.GetChild(15).GetChild(3).GetComponent <UIText>(); if (recordByKey2.VIPLevel > viplevel) { component.color = new Color(0.6f, 0.58f, 0.38f); } else { component.color = new Color(1f, 0.97f, 0.63f); } Image component2 = this.AGS_Form.GetChild(14).GetChild(1).GetComponent <Image>(); if (recordByKey.VIPLevel > viplevel) { component2.color = new Color(0.5f, 0.5f, 0.5f); } else { component2.color = new Color(1f, 1f, 1f); } component2 = this.AGS_Form.GetChild(15).GetChild(1).GetComponent <Image>(); if (recordByKey2.VIPLevel > viplevel) { component2.color = new Color(0.5f, 0.5f, 0.5f); } else { component2.color = new Color(1f, 1f, 1f); } component2 = this.AGS_Form.GetChild(14).GetChild(4).GetComponent <Image>(); if (recordByKey.VIPLevel > viplevel) { component2.color = new Color(0.5f, 0.5f, 0.5f); } else { component2.color = new Color(1f, 1f, 1f); } component2 = this.AGS_Form.GetChild(15).GetChild(4).GetComponent <Image>(); if (recordByKey2.VIPLevel > viplevel) { component2.color = new Color(0.5f, 0.5f, 0.5f); } else { component2.color = new Color(1f, 1f, 1f); } component = this.AGS_Form.GetChild(16).GetChild(0).GetChild(0).GetComponent <UIText>(); if (recordByKey.VIPLevel > viplevel) { component.color = new Color(0.7f, 0.7f, 0.7f); } else { component.color = new Color(1f, 1f, 1f); } this.CreateVipText(recordByKey.VIPLevel, this.Ltext); component.text = this.Ltext.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component.cachedTextGeneratorForLayout.Invalidate(); float preferredHeight = component.preferredHeight; RectTransform component3 = this.AGS_Form.GetChild(16).GetChild(0).GetChild(0).GetComponent <RectTransform>(); component3.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, preferredHeight); component = this.AGS_Form.GetChild(16).GetChild(0).GetChild(1).GetComponent <UIText>(); if (recordByKey2.VIPLevel > viplevel) { component.color = new Color(0.7f, 0.7f, 0.7f); } else { component.color = new Color(1f, 1f, 1f); } this.CreateVipText(recordByKey2.VIPLevel, this.Rtext); component.text = this.Rtext.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component.cachedTextGeneratorForLayout.Invalidate(); preferredHeight = component.preferredHeight; component3 = this.AGS_Form.GetChild(16).GetChild(0).GetChild(1).GetComponent <RectTransform>(); component3.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, preferredHeight); component3 = this.AGS_Form.GetChild(16).GetChild(0).GetComponent <RectTransform>(); component3.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, preferredHeight); component = this.AGS_Form.GetChild(14).GetChild(3).GetComponent <UIText>(); if (recordByKey.VIPLevel > viplevel) { component.text = DataManager.Instance.mStringTable.GetStringByID(7707u); component.gameObject.SetActive(true); } else if (recordByKey.VIPLevel == viplevel) { component.text = DataManager.Instance.mStringTable.GetStringByID(7706u); component.gameObject.SetActive(true); } else { component.gameObject.SetActive(false); } component = this.AGS_Form.GetChild(15).GetChild(3).GetComponent <UIText>(); if (recordByKey2.VIPLevel > viplevel) { component.text = DataManager.Instance.mStringTable.GetStringByID(7707u); component.gameObject.SetActive(true); } else if (recordByKey2.VIPLevel == viplevel) { component.text = DataManager.Instance.mStringTable.GetStringByID(7706u); component.gameObject.SetActive(true); } else { component.gameObject.SetActive(false); } }
// Token: 0x0600138E RID: 5006 RVA: 0x0022D754 File Offset: 0x0022B954 public override void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId) { if (dataIdx == 0) { item.transform.GetChild(0).gameObject.SetActive(true); item.transform.GetChild(1).gameObject.SetActive(false); UIText component = item.transform.GetChild(0).GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7063u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(11011u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(11012u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else { if (dataIdx > 0 && dataIdx <= LeaderBoardManager.Instance.MobiWorldKingBoard.Count) { item.transform.GetChild(0).gameObject.SetActive(false); item.transform.GetChild(1).gameObject.SetActive(true); item.transform.GetChild(1).GetChild(11).gameObject.SetActive(false); item.transform.GetChild(1).GetChild(12).gameObject.SetActive(false); this.SortTextArray[0, panelObjectIdx].ClearString(); GameConstants.FormatRoleName(this.SortTextArray[0, panelObjectIdx], LeaderBoardManager.Instance.MobiWorldKingBoard[dataIdx - 1].Name, LeaderBoardManager.Instance.MobiWorldKingBoard[dataIdx - 1].AllianceTag, null, 0, LeaderBoardManager.Instance.MobiWorldKingBoard[dataIdx - 1].HomeKingdomID, null, null, null, null); UIText component = item.transform.GetChild(1).GetChild(4).GetComponent <UIText>(); component.text = this.SortTextArray[0, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetTimeString(this.SortTextArray[1, panelObjectIdx], LeaderBoardManager.Instance.MobiWorldKingBoard[dataIdx - 1].OccupyTime, false, false, true, false, true); component = item.transform.GetChild(1).GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[2, panelObjectIdx].ClearString(); DateTime dateTime = GameConstants.GetDateTime(LeaderBoardManager.Instance.MobiWorldKingBoard[dataIdx - 1].TakeOfficeTime); this.SortTextArray[2, panelObjectIdx].StringToFormat(dateTime.ToString("MM/dd/yy")); this.SortTextArray[2, panelObjectIdx].AppendFormat("{0}"); component = item.transform.GetChild(1).GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.alignment = TextAnchor.MiddleCenter; component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButton component2 = item.transform.GetChild(1).GetChild(10).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 8; component2.m_BtnID2 = dataIdx - 1; } if (dataIdx % 2 == 0) { UISpritesArray component3 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); component3 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); component3 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); component3 = item.transform.GetChild(1).GetChild(3).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); } else { UISpritesArray component3 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); component3 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); component3 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); component3 = item.transform.GetChild(1).GetChild(3).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); } } }
// Token: 0x0600133A RID: 4922 RVA: 0x0021A0E0 File Offset: 0x002182E0 public void CreateSubBoard() { this.AGS_Form.GetChild(5).gameObject.SetActive(false); this.AGS_Form.GetChild(12).gameObject.SetActive(false); this.SPHeight.Clear(); this.SPHeight.Add(38f); byte subBoardID = UIKVKLBoard.SubBoardID; switch (subBoardID) { case 5: for (int i = 0; i < LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID].Count; i++) { if (((BoardUnitKingdom)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][i]).KingdomID > 0) { this.SPHeight.Add(53f); } } goto IL_16D; case 6: break; case 7: for (int j = 0; j < LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID].Count; j++) { this.SPHeight.Add(53f); } goto IL_16D; default: if (subBoardID != 15) { goto IL_16D; } break; } for (int k = 0; k < LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID].Count; k++) { if (LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][k].Value > 0UL) { this.SPHeight.Add(53f); } } IL_16D: UIText component = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); LeaderBoardSubBoardID subBoardID2 = (LeaderBoardSubBoardID)UIKVKLBoard.SubBoardID; switch (subBoardID2) { case LeaderBoardSubBoardID.KVKKingdom: component.text = DataManager.Instance.mStringTable.GetStringByID(9588u); break; case LeaderBoardSubBoardID.KVKAllianceRank: component.text = DataManager.Instance.mStringTable.GetStringByID(9589u); break; case LeaderBoardSubBoardID.KVKAllianceMemberRank: component.text = DataManager.Instance.mStringTable.GetStringByID(9855u); break; default: if (subBoardID2 == LeaderBoardSubBoardID.KVKPersonRank) { component.text = DataManager.Instance.mStringTable.GetStringByID(9590u); } break; } this.AGS_Form.GetChild(3).gameObject.SetActive(true); if (UIKVKLBoard.isPersonBoard) { this.AGS_Form.GetChild(3).GetChild(0).gameObject.SetActive(true); this.AGS_Form.GetChild(3).GetChild(1).gameObject.SetActive(false); Transform child = this.AGS_Form.GetChild(3).GetChild(0); child.gameObject.SetActive(true); GUIManager.Instance.ChangeHeroItemImg(child, eHeroOrItem.Hero, DataManager.Instance.RoleAttr.Head, 11, 0, 0); } else { this.AGS_Form.GetChild(3).GetChild(0).gameObject.SetActive(false); this.AGS_Form.GetChild(3).GetChild(1).gameObject.SetActive(true); Transform child = this.AGS_Form.GetChild(3).GetChild(1); GUIManager.Instance.SetBadgeTotemImg(child, DataManager.Instance.RoleAlliance.Emblem); } if (UIKVKLBoard.SubBoardID == 5 && LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID] != 0) { this.AGS_Form.GetChild(3).gameObject.SetActive(false); this.AGS_Form.GetChild(5).gameObject.SetActive(true); this.AGS_Form.GetChild(2).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); this.Ranking.ClearString(); this.Ranking.IntToFormat((long)LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID], 1, true); this.Ranking.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(9849u)); component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } if (UIKVKLBoard.SubBoardID == 7) { this.Ranking.ClearString(); if (LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID] != 0) { component = this.AGS_Form.GetChild(3).GetChild(2).GetComponent <UIText>(); this.Ranking.IntToFormat((long)LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID], 1, true); this.Ranking.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(7060u)); } else { this.AGS_Form.GetChild(3).gameObject.SetActive(false); this.AGS_Form.GetChild(5).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); this.Ranking.Append(DataManager.Instance.mStringTable.GetStringByID(8414u)); } component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else if (UIKVKLBoard.isPersonBoard) { this.Ranking.ClearString(); if (LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID] != 0) { component = this.AGS_Form.GetChild(3).GetChild(2).GetComponent <UIText>(); this.Ranking.IntToFormat((long)LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID], 1, true); this.Ranking.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(7060u)); } else { this.AGS_Form.GetChild(3).gameObject.SetActive(false); this.AGS_Form.GetChild(5).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); this.Ranking.Append(DataManager.Instance.mStringTable.GetStringByID(8414u)); } component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else if (DataManager.Instance.RoleAlliance.Id != 0u) { this.AGS_Form.GetChild(3).gameObject.SetActive(false); this.AGS_Form.GetChild(5).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); this.Ranking.ClearString(); if (LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID] != 0) { this.Ranking.IntToFormat((long)LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID], 1, false); this.Ranking.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(9856u)); } else { this.Ranking.Append(DataManager.Instance.mStringTable.GetStringByID(8414u)); } component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else { this.AGS_Form.GetChild(3).gameObject.SetActive(false); this.AGS_Form.GetChild(5).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7095u); } if (UIKVKLBoard.SubBoardID == 7 && LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID] != 0 && (int)LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID] <= LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID].Count) { component = this.AGS_Form.GetChild(3).GetChild(3).GetComponent <UIText>(); this.RankValue.ClearString(); this.RankValue.uLongToFormat(LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][(int)(LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID] - 1)].Value, 1, true); this.RankValue.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(8121u)); component.text = this.RankValue.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else { component = this.AGS_Form.GetChild(3).GetChild(3).GetComponent <UIText>(); component.text = string.Empty; component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } }
// Token: 0x0600133E RID: 4926 RVA: 0x0021B5AC File Offset: 0x002197AC public void UpdatRow_Boards(GameObject item, int dataIdx, int panelObjectIdx) { if (dataIdx == 0) { byte subBoardID = UIKVKLBoard.SubBoardID; switch (subBoardID) { case 5: { item.transform.GetChild(0).gameObject.SetActive(true); item.transform.GetChild(1).gameObject.SetActive(false); UIText component = item.transform.GetChild(0).GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7062u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9850u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9851u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); break; } case 6: { item.transform.GetChild(0).gameObject.SetActive(true); item.transform.GetChild(1).gameObject.SetActive(false); UIText component = item.transform.GetChild(0).GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7062u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7094u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9857u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); break; } case 7: { item.transform.GetChild(0).gameObject.SetActive(true); item.transform.GetChild(1).gameObject.SetActive(false); UIText component = item.transform.GetChild(0).GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7062u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7063u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9858u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); break; } default: if (subBoardID == 15) { item.transform.GetChild(0).gameObject.SetActive(true); item.transform.GetChild(1).gameObject.SetActive(false); UIText component = item.transform.GetChild(0).GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7062u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7063u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9858u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } break; } } else { LeaderBoardManager.Instance.CheckNextPart(UIKVKLBoard.SubBoardID, (byte)dataIdx); item.transform.GetChild(0).gameObject.SetActive(false); item.transform.GetChild(1).gameObject.SetActive(true); this.SortTextArray[0, panelObjectIdx].ClearString(); this.SortTextArray[0, panelObjectIdx].IntToFormat((long)dataIdx, 1, false); this.SortTextArray[0, panelObjectIdx].AppendFormat("{0}"); UIText component = item.transform.GetChild(1).GetChild(4).GetComponent <UIText>(); component.text = this.SortTextArray[0, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); byte subBoardID = UIKVKLBoard.SubBoardID; switch (subBoardID) { case 5: { CString cstring = StringManager.Instance.StaticString1024(); cstring.ClearString(); DataManager.MapDataController.GetKingdomName(((BoardUnitKingdom)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingdomID, ref cstring); this.SortTextArray[1, panelObjectIdx].ClearString(); this.SortTextArray[1, panelObjectIdx].IntToFormat((long)((BoardUnitKingdom)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingdomID, 1, false); this.SortTextArray[1, panelObjectIdx].StringToFormat(cstring); this.SortTextArray[1, panelObjectIdx].AppendFormat("#{0} {1}"); component = item.transform.GetChild(1).GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); break; } case 6: this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], ((BoardUnitKingdomWarAlliance)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingdomID, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].Name, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].AlliaceTag, false); component = item.transform.GetChild(1).GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); break; case 7: this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], 0, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].Name, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].AlliaceTag, false); component = item.transform.GetChild(1).GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); break; default: if (subBoardID == 15) { this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], ((WorldRankingBoardUnit)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingdomID, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].Name, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].AlliaceTag, false); component = item.transform.GetChild(1).GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } break; } this.SortTextArray[2, panelObjectIdx].ClearString(); if (UIKVKLBoard.SubBoardID == 5) { item.transform.GetChild(1).GetChild(11).gameObject.SetActive(false); item.transform.GetChild(1).GetChild(12).gameObject.SetActive(false); item.transform.GetChild(1).GetChild(1).gameObject.SetActive(true); if (((BoardUnitKingdom)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingKingdomID != 0) { if (((BoardUnitKingdom)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingKingdomID == ((BoardUnitKingdom)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingdomID) { GameConstants.GetNameString(this.SortTextArray[2, panelObjectIdx], ((BoardUnitKingdom)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingKingdomID, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].Name, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].AlliaceTag, true); } else { GameConstants.GetNameString(this.SortTextArray[2, panelObjectIdx], ((BoardUnitKingdom)LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1]).KingKingdomID, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].Name, LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].AlliaceTag, true); this.SortTextArray[2, panelObjectIdx].Insert(0, "<color=#FFD74CFF>", -1); this.SortTextArray[2, panelObjectIdx].Append("</color>"); } } } else { item.transform.GetChild(1).GetChild(11).gameObject.SetActive(false); item.transform.GetChild(1).GetChild(12).gameObject.SetActive(false); item.transform.GetChild(1).GetChild(1).gameObject.SetActive(true); this.SortTextArray[2, panelObjectIdx].uLongToFormat(LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].Value, 1, true); this.SortTextArray[2, panelObjectIdx].AppendFormat("{0}"); } component = item.transform.GetChild(1).GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButton component2 = item.transform.GetChild(1).GetChild(10).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 4; component2.m_BtnID2 = dataIdx - 1; if (UIKVKLBoard.SubBoardID == 5 && LeaderBoardManager.Instance.Boards[(int)UIKVKLBoard.SubBoardID][dataIdx - 1].Name.Length == 0) { component2.gameObject.SetActive(false); } else { component2.gameObject.SetActive(true); } if (dataIdx == (int)LeaderBoardManager.Instance.MyRank[(int)UIKVKLBoard.SubBoardID]) { UISpritesArray component3 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(2); component3 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(2); component3 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(2); } else if (dataIdx % 2 == 0) { UISpritesArray component3 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); component3 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); component3 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); } else { UISpritesArray component3 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); component3 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); component3 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); } } }
// Token: 0x060020B8 RID: 8376 RVA: 0x003E41DC File Offset: 0x003E23DC public override void OnOpen(int arg1, int arg2) { GUIManager.Instance.UIQueueLock(EGUIQueueLock.UIQL_UI_notAllowPopUps); byte b = (byte)arg1; this.LevelText = StringManager.Instance.SpawnString(50); this.LevelText.ClearString(); this.LevelText.IntToFormat((long)b, 1, false); this.LevelText.AppendFormat("{0}"); this.LevelUpText = StringManager.Instance.SpawnString(50); this.PointText = StringManager.Instance.SpawnString(50); this.PointText2 = StringManager.Instance.SpawnString(50); Font ttffont = GUIManager.Instance.GetTTFFont(); this.AGS_Form = base.transform; this.Light = this.AGS_Form.GetChild(0).GetComponent <Image>(); this.Light.color = new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, 176); this.BG_Rt = (this.AGS_Form.GetChild(1) as RectTransform); UIButton component = this.AGS_Form.GetChild(2).GetComponent <UIButton>(); component.m_Handler = this; component.m_EffectType = e_EffectType.e_Scale; this.CloseBtn = component; UIText component2 = this.AGS_Form.GetChild(3).GetComponent <UIText>(); component2.font = ttffont; component2.text = DataManager.Instance.mStringTable.GetStringByID(5797u); this.Light = this.AGS_Form.GetChild(4).GetComponent <Image>(); component2 = this.AGS_Form.GetChild(5).GetChild(0).GetComponent <UIText>(); component2.font = ttffont; component2.text = this.LevelText.ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); if (GUIManager.Instance.IsArabic) { RectTransform component3 = this.AGS_Form.GetChild(5).GetComponent <RectTransform>(); component3.localScale = new Vector3(-1f, 1f, 1f); component3.anchoredPosition = new Vector2(component3.anchoredPosition.x + 142f, component3.anchoredPosition.y); component3 = this.AGS_Form.GetChild(5).GetChild(0).GetComponent <RectTransform>(); component3.localEulerAngles = new Vector3(0f, 180f, 0f); } switch (arg2) { case 0: { this.AGS_Form.GetChild(6).gameObject.SetActive(true); this.AGS_Form.GetChild(7).gameObject.SetActive(false); this.AGS_Form.GetChild(8).gameObject.SetActive(false); int num = arg1 >> 16; b = (byte)(arg1 & 65535); this.LevelUpText.ClearString(); this.LevelUpText.IntToFormat((long)num, 1, false); this.LevelUpText.IntToFormat((long)b, 1, false); if (GUIManager.Instance.IsArabic) { this.LevelUpText.AppendFormat("<color=#35F76CFF>{1} VIP ←</color>{0} VIP "); } else { this.LevelUpText.AppendFormat("VIP {0} <color=#35F76CFF>→ VIP {1}</color>"); } component2 = this.AGS_Form.GetChild(6).GetChild(1).GetComponent <UIText>(); component2.font = ttffont; component2.text = this.LevelUpText.ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(6).GetChild(2).GetComponent <UIButton>(); component.m_Handler = this; component.m_EffectType = e_EffectType.e_Scale; component.m_BtnID1 = 1; component2 = this.AGS_Form.GetChild(6).GetChild(2).GetChild(0).GetComponent <UIText>(); component2.font = ttffont; component2.text = DataManager.Instance.mStringTable.GetStringByID(7706u); if (GUIManager.Instance.IsArabic) { RectTransform component4 = this.AGS_Form.GetChild(6).GetChild(0).GetComponent <RectTransform>(); component4.localScale = new Vector3(-1f, 1f, 1f); component4.anchoredPosition = new Vector2(component4.anchoredPosition.x + 52f, component4.anchoredPosition.y); } break; } case 1: { component2 = this.AGS_Form.GetChild(3).GetComponent <UIText>(); component2.text = DataManager.Instance.mStringTable.GetStringByID(7705u); this.AGS_Form.GetChild(6).gameObject.SetActive(false); this.AGS_Form.GetChild(7).gameObject.SetActive(true); this.AGS_Form.GetChild(8).gameObject.SetActive(false); VIP_DataTbl recordByKey = DataManager.Instance.VIPLevelTable.GetRecordByKey((ushort)DataManager.Instance.RoleAttr.VIPLevel); int num2 = (int)(recordByKey.loginPoint + recordByKey.dailyAdd * DataManager.Instance.RoleAttr.SuccessiveLoginDays); if (num2 > 600) { num2 = 600; } this.PointText.ClearString(); this.PointText.IntToFormat((long)num2, 1, false); this.PointText.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(7742u)); num2 += (int)recordByKey.dailyAdd; if (num2 > 600) { num2 = 600; } this.PointText2.ClearString(); this.PointText2.IntToFormat((long)num2, 1, false); this.PointText2.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(7740u)); this.LevelUpText.ClearString(); this.LevelUpText.IntToFormat((long)(DataManager.Instance.RoleAttr.SuccessiveLoginDays + 1), 1, false); this.LevelUpText.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(7741u)); component2 = this.AGS_Form.GetChild(7).GetChild(0).GetComponent <UIText>(); component2.font = ttffont; component2.text = this.PointText.ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2 = this.AGS_Form.GetChild(7).GetChild(1).GetComponent <UIText>(); component2.font = ttffont; component2.text = this.LevelUpText.ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2 = this.AGS_Form.GetChild(7).GetChild(2).GetComponent <UIText>(); component2.font = ttffont; component2.text = this.PointText2.ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2 = this.AGS_Form.GetChild(7).GetChild(3).GetComponent <UIText>(); component2.font = ttffont; component2.text = DataManager.Instance.mStringTable.GetStringByID(7743u); break; } case 2: { this.AGS_Form.GetChild(6).gameObject.SetActive(false); this.AGS_Form.GetChild(7).gameObject.SetActive(false); this.AGS_Form.GetChild(8).gameObject.SetActive(true); this.LevelUpText.ClearString(); this.LevelUpText.IntToFormat((long)(b - 1), 1, false); this.LevelUpText.IntToFormat((long)b, 1, false); if (GUIManager.Instance.IsArabic) { this.LevelUpText.AppendFormat("<color=#35F76CFF>{1} VIP ←</color>{0} VIP "); } else { this.LevelUpText.AppendFormat("VIP {0} <color=#35F76CFF>→ VIP {1}</color>"); } VIP_DataTbl recordByKey2 = DataManager.Instance.VIPLevelTable.GetRecordByKey((ushort)(DataManager.Instance.RoleAttr.VIPLevel - 1)); int num3 = (int)(recordByKey2.loginPoint + recordByKey2.dailyAdd * DataManager.Instance.RoleAttr.SuccessiveLoginDays); if (num3 > 600) { num3 = 600; } this.PointText.ClearString(); this.PointText.IntToFormat((long)num3, 1, false); this.PointText.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(7742u)); component2 = this.AGS_Form.GetChild(8).GetChild(1).GetComponent <UIText>(); component2.font = ttffont; component2.text = this.LevelUpText.ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2 = this.AGS_Form.GetChild(8).GetChild(2).GetComponent <UIText>(); component2.font = ttffont; component2.text = this.PointText.ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2 = this.AGS_Form.GetChild(8).GetChild(3).GetComponent <UIText>(); component2.font = ttffont; component2.text = DataManager.Instance.mStringTable.GetStringByID(7743u); if (GUIManager.Instance.IsArabic) { RectTransform component5 = this.AGS_Form.GetChild(8).GetChild(0).GetComponent <RectTransform>(); component5.localScale = new Vector3(-1f, 1f, 1f); component5.anchoredPosition = new Vector2(component5.anchoredPosition.x + 52f, component5.anchoredPosition.y); } break; } } if (GUIManager.Instance.bOpenOnIPhoneX) { RectTransform component6 = this.AGS_Form.GetChild(0).GetComponent <RectTransform>(); component6.offsetMin = new Vector2(-GUIManager.Instance.IPhoneX_DeltaX, 0f); component6.offsetMax = new Vector2(GUIManager.Instance.IPhoneX_DeltaX, 0f); } AudioManager.Instance.PlayUISFX(UIKind.DominanceLevelup); GUIManager.Instance.mStartV2 = new Vector2(GUIManager.Instance.m_SpeciallyEffect.mCanvasRT.sizeDelta.x / 2f, GUIManager.Instance.m_SpeciallyEffect.mCanvasRT.sizeDelta.y / 2f); GUIManager.Instance.m_SpeciallyEffect.AddIconShow(false, GUIManager.Instance.mStartV2, SpeciallyEffect_Kind.AddVIP_Point, 0, 0, true, 2f); GUIManager.Instance.LoadLvUpLight(base.transform.GetChild(0)); }
// Token: 0x0600133D RID: 4925 RVA: 0x0021ABF8 File Offset: 0x00218DF8 public void UpdateRow_FunctionList(GameObject item, int dataIdx, int panelObjectIdx) { switch (dataIdx) { case 0: { item.transform.GetChild(2).gameObject.SetActive(false); item.transform.GetChild(3).gameObject.SetActive(false); UIText component = item.transform.GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9588u); CString cstring = StringManager.Instance.StaticString1024(); cstring.ClearString(); DataManager.MapDataController.GetKingdomName(LeaderBoardManager.Instance.KvKTopBoard.TopKingdom, ref cstring); this.SortTextArray[1, panelObjectIdx].ClearString(); this.SortTextArray[1, panelObjectIdx].IntToFormat((long)LeaderBoardManager.Instance.KvKTopBoard.TopKingdom, 1, false); this.SortTextArray[1, panelObjectIdx].StringToFormat(cstring); this.SortTextArray[1, panelObjectIdx].AppendFormat("#{0} {1}"); component = item.transform.GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[2, panelObjectIdx].ClearString(); component = item.transform.GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButton component2 = item.transform.GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 3; component2.m_BtnID2 = 5; this.KingdomImg.SetParent(item.transform, false); this.KingdomImg.gameObject.SetActive(true); this.KingdomImg.anchoredPosition = new Vector2(-323f, -20f); break; } case 1: { item.transform.GetChild(2).gameObject.SetActive(LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliEmblem != 0); item.transform.GetChild(3).gameObject.SetActive(false); if (item.transform.GetChild(2).GetChild(0).childCount < 1) { GUIManager.Instance.InitBadgeTotem(item.transform.GetChild(2).GetChild(0), LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliEmblem); } else { GUIManager.Instance.SetBadgeTotemImg(item.transform.GetChild(2).GetChild(0), LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliEmblem); } UIText component = item.transform.GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9589u); this.SortTextArray[1, panelObjectIdx].ClearString(); if (LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliScore == 0UL) { this.SortTextArray[1, panelObjectIdx].Append(DataManager.Instance.mStringTable.GetStringByID(8477u)); } else { GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliKingdomID, LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliName, LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliTag, false); } component = item.transform.GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[2, panelObjectIdx].ClearString(); if (LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliScore > 0UL) { this.SortTextArray[2, panelObjectIdx].uLongToFormat(LeaderBoardManager.Instance.KvKTopBoard.KvKTopAlliScore, 1, true); this.SortTextArray[2, panelObjectIdx].AppendFormat("{0}"); } component = item.transform.GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButton component2 = item.transform.GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 3; component2.m_BtnID2 = 6; break; } case 2: { item.transform.GetChild(2).gameObject.SetActive(false); item.transform.GetChild(3).gameObject.SetActive(LeaderBoardManager.Instance.KvKTopBoard.KvKPlayerValue != 0UL); if (item.transform.GetChild(3).childCount < 1) { GUIManager.Instance.InitianHeroItemImg(item.transform.GetChild(3), eHeroOrItem.Hero, LeaderBoardManager.Instance.KvKTopBoard.KvKPlayerHead, 11, 0, 0, false, false, true, false); } else { GUIManager.Instance.ChangeHeroItemImg(item.transform.GetChild(3), eHeroOrItem.Hero, LeaderBoardManager.Instance.KvKTopBoard.KvKPlayerHead, 11, 0, 0); } UIText component = item.transform.GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9590u); this.SortTextArray[1, panelObjectIdx].ClearString(); if (LeaderBoardManager.Instance.KvKTopBoard.KvKPlayerValue == 0UL) { this.SortTextArray[1, panelObjectIdx].Append(DataManager.Instance.mStringTable.GetStringByID(8475u)); } else { GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], LeaderBoardManager.Instance.KvKTopBoard.KvKTopPlayerKingdomID, LeaderBoardManager.Instance.KvKTopBoard.KvKTopPlayerName, LeaderBoardManager.Instance.KvKTopBoard.KvKTopPlayerTag, false); } component = item.transform.GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[2, panelObjectIdx].ClearString(); if (LeaderBoardManager.Instance.KvKTopBoard.KvKPlayerValue > 0UL) { this.SortTextArray[2, panelObjectIdx].uLongToFormat(LeaderBoardManager.Instance.KvKTopBoard.KvKPlayerValue, 1, true); this.SortTextArray[2, panelObjectIdx].AppendFormat("{0}"); } component = item.transform.GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButton component2 = item.transform.GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 3; component2.m_BtnID2 = 15; break; } case 3: { item.transform.GetChild(2).gameObject.SetActive(false); item.transform.GetChild(3).gameObject.SetActive(LeaderBoardManager.Instance.KvKTopBoard.KvKAlliTopPlayerName.Length > 0 && DataManager.Instance.RoleAlliance.Id != 0u); if (item.transform.GetChild(3).childCount < 1) { GUIManager.Instance.InitianHeroItemImg(item.transform.GetChild(3), eHeroOrItem.Hero, LeaderBoardManager.Instance.KvKTopBoard.KvKAlliTopPlayerHead, 11, 0, 0, false, false, true, false); } else { GUIManager.Instance.ChangeHeroItemImg(item.transform.GetChild(3), eHeroOrItem.Hero, LeaderBoardManager.Instance.KvKTopBoard.KvKAlliTopPlayerHead, 11, 0, 0); } UIText component = item.transform.GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9855u); this.SortTextArray[1, panelObjectIdx].ClearString(); if (DataManager.Instance.RoleAlliance.Id == 0u || LeaderBoardManager.Instance.KvKTopBoard.KvKAlliTopPlayerName.Length == 0) { this.SortTextArray[1, panelObjectIdx].Append(DataManager.Instance.mStringTable.GetStringByID(8475u)); } else { GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], 0, LeaderBoardManager.Instance.KvKTopBoard.KvKAlliTopPlayerName, DataManager.Instance.RoleAlliance.Tag, false); } component = item.transform.GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[2, panelObjectIdx].ClearString(); if (DataManager.Instance.RoleAlliance.Id > 0u && LeaderBoardManager.Instance.KvKTopBoard.KvKAlliTopPlayerName.Length > 0) { this.SortTextArray[2, panelObjectIdx].uLongToFormat(LeaderBoardManager.Instance.KvKTopBoard.KvKAlliTopPlayerValue, 1, true); this.SortTextArray[2, panelObjectIdx].AppendFormat("{0}"); } component = item.transform.GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButton component2 = item.transform.GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 3; component2.m_BtnID2 = 7; break; } } }
// Token: 0x06001D35 RID: 7477 RVA: 0x00345C84 File Offset: 0x00343E84 private void SetPrisoner(byte idx) { this.nowSortedIdx = idx; this.DMIdx = this.DM.sortedPrisonerList[(int)this.nowSortedIdx]; this.LBtn.gameObject.SetActive(true); this.RBtn.gameObject.SetActive(true); if (this.nowSortedIdx == 0) { this.LBtn.gameObject.SetActive(false); } if ((int)(this.nowSortedIdx + 1) == this.DM.PrisonerList.Length || this.DM.PrisonerList[(int)this.DM.sortedPrisonerList[(int)(this.nowSortedIdx + 1)]].nowStat == PrisonerState.None) { this.RBtn.gameObject.SetActive(false); } UIText component = this.AGS_Form.GetChild(12).GetComponent <UIText>(); UISpritesArray component2 = this.AGS_Form.GetChild(11).GetComponent <UISpritesArray>(); this.tmpString[0].ClearString(); long num = this.DM.PrisonerList[(int)this.DMIdx].StartActionTime + (long)((ulong)this.DM.PrisonerList[(int)this.DMIdx].TotalTime) - this.DM.ServerTime; if (num < 0L) { num = 0L; } RectTransform component3 = this.AGS_Form.GetChild(11).GetComponent <RectTransform>(); switch (this.DM.PrisonerList[(int)this.DMIdx].nowStat) { case PrisonerState.WaitForRelease: { this.tmpString[0].Append(this.DM.mStringTable.GetStringByID(7768u)); component2.SetSpriteIndex(2); this.AGS_Form.GetChild(10).gameObject.SetActive(false); this.AGS_Form.GetChild(21).gameObject.SetActive(false); this.AGS_Form.GetChild(22).gameObject.SetActive(false); this.AGS_Form.GetChild(19).gameObject.SetActive(true); float num2 = (float)num / this.DM.PrisonerList[(int)this.DMIdx].TotalTime; num2 = Mathf.Clamp01(1f - num2); component3.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 305f); break; } case PrisonerState.WaitForExecute: if (num > 21600L) { num -= 21600L; this.tmpString[0].Append(this.DM.mStringTable.GetStringByID(7759u)); component2.SetSpriteIndex(1); this.AGS_Form.GetChild(10).gameObject.SetActive(false); this.AGS_Form.GetChild(21).gameObject.SetActive(false); this.AGS_Form.GetChild(22).gameObject.SetActive(true); this.AGS_Form.GetChild(19).gameObject.SetActive(true); float num2 = (float)num / (this.DM.PrisonerList[(int)this.DMIdx].TotalTime - 21600u); num2 = Mathf.Clamp01(1f - num2); component3.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 305f); } else { this.tmpString[0].Append(this.DM.mStringTable.GetStringByID(7758u)); component2.SetSpriteIndex(0); this.AGS_Form.GetChild(10).gameObject.SetActive(true); this.AGS_Form.GetChild(21).gameObject.SetActive(true); this.AGS_Form.GetChild(22).gameObject.SetActive(false); this.AGS_Form.GetChild(19).gameObject.SetActive(true); component2 = this.AGS_Form.GetChild(10).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(0); float num2 = (float)num / 21600f; num2 = Mathf.Clamp01(1f - num2); component3.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 305f); } break; case PrisonerState.Poisoned: { this.tmpString[0].Append(this.DM.mStringTable.GetStringByID(15008u)); component2.SetSpriteIndex(3); this.AGS_Form.GetChild(10).gameObject.SetActive(true); this.AGS_Form.GetChild(21).gameObject.SetActive(false); this.AGS_Form.GetChild(22).gameObject.SetActive(true); this.AGS_Form.GetChild(19).gameObject.SetActive(true); component2 = this.AGS_Form.GetChild(10).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(1); float num2 = (float)num / this.DM.PrisonerList[(int)this.DMIdx].TotalTime; num2 = Mathf.Clamp01(1f - num2); component3.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 305f); break; } } component.text = this.tmpString[0].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(13).GetComponent <UIText>(); this.tmpString[1].ClearString(); GameConstants.GetTimeString(this.tmpString[1], (uint)num, true, true, true, false, true); component.text = this.tmpString[1].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(14).GetComponent <UIText>(); this.tmpString[2].ClearString(); this.tmpString[2].IntToFormat((long)this.DM.PrisonerList[(int)this.DMIdx].LordLevel, 1, false); this.tmpString[2].AppendFormat(this.DM.mStringTable.GetStringByID(7757u)); component.text = this.tmpString[2].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(15).GetComponent <UIText>(); this.tmpString[3].ClearString(); GameConstants.GetNameString(this.tmpString[3], this.DM.PrisonerList[(int)this.DMIdx].KingdomID, this.DM.PrisonerList[(int)this.DMIdx].name, this.DM.PrisonerList[(int)this.DMIdx].AlliTag, false); component.text = this.tmpString[3].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(18).GetComponent <UIText>(); component.gameObject.SetActive(true); this.AGS_Form.GetChild(16).gameObject.SetActive(true); this.AGS_Form.GetChild(17).gameObject.SetActive(true); this.tmpString[4].ClearString(); if (this.DM.PrisonerList[(int)this.DMIdx].Ransom > 0u) { this.tmpString[4].IntToFormat((long)((ulong)this.DM.PrisonerList[(int)this.DMIdx].Ransom), 1, true); this.tmpString[4].AppendFormat("{0:N}"); } else { this.tmpString[4].Append(this.DM.mStringTable.GetStringByID(7786u)); } component.text = this.tmpString[4].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(19).GetChild(0).GetComponent <UIText>(); if (this.DM.PrisonerList[(int)this.DMIdx].Ransom > 0u) { component.text = this.DM.mStringTable.GetStringByID(7767u); } else { component.text = this.DM.mStringTable.GetStringByID(7765u); } this.NowHeroID = this.DM.PrisonerList[(int)this.DMIdx].head; this.Create3DObjects(); }
// Token: 0x06001F76 RID: 8054 RVA: 0x003C16C4 File Offset: 0x003BF8C4 public void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId) { if (dataIdx >= LordEquipData.Instance().LordEquipSetsCount) { this.NO.SetParent(item.transform); this.NO.anchoredPosition = Vector2.zero; this.NO.gameObject.SetActive(true); item.transform.GetChild(0).gameObject.SetActive(false); this.NOonIdx = panelObjectIdx; return; } if (this.NOonIdx == panelObjectIdx) { this.NO.gameObject.SetActive(false); item.transform.GetChild(0).gameObject.SetActive(true); } if (LordEquipData.Instance().LordEquipSets[dataIdx] == null) { LordEquipData.Instance().LordEquipSets[dataIdx] = new LordEquipSet(); LordEquipData.Instance().LordEquipSets[dataIdx].Name = StringManager.Instance.SpawnString(30); } UIText component = item.transform.GetChild(0).GetChild(0).GetComponent <UIText>(); component.SetCheckArabic(true); if (LordEquipData.Instance().LordEquipSets[dataIdx].Name.Length > 0) { component.text = LordEquipData.Instance().LordEquipSets[dataIdx].Name.ToString(); } else { this.SetNames[panelObjectIdx].ClearString(); this.SetNames[panelObjectIdx].IntToFormat((long)(dataIdx + 1), 1, false); this.SetNames[panelObjectIdx].AppendFormat(this.DM.mStringTable.GetStringByID(928u)); component.text = this.SetNames[panelObjectIdx].ToString(); } component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButton component2 = item.transform.GetChild(0).GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID2 = dataIdx; component = component2.transform.GetChild(0).GetComponent <UIText>(); if (LordEquipData.Instance().LordEquipSets[dataIdx].isSetEmpty()) { component2.m_BtnID1 = 0; component2.image.color = Color.gray; component.color = new Color(0.898f, 0f, 0.31f); } else { component2.m_BtnID1 = 1; component2.image.color = Color.white; component.color = Color.white; } component = item.transform.GetChild(0).GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(924u); component2 = item.transform.GetChild(0).GetChild(2).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 2; component2.m_BtnID2 = dataIdx; component = item.transform.GetChild(0).GetChild(2).GetChild(0).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(925u); }
// Token: 0x06001AA0 RID: 6816 RVA: 0x002D42FC File Offset: 0x002D24FC private void LoadInfo() { switch (this.OpenDigType) { case 1: { UIText component = this.AGS_Form.GetChild(6).GetChild(8).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(3990u); component = this.AGS_Form.GetChild(6).GetChild(9).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(4058u); break; } case 2: { UIText component = this.AGS_Form.GetChild(6).GetChild(8).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(3991u); component = this.AGS_Form.GetChild(6).GetChild(9).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(4059u); break; } case 3: { UIText component = this.AGS_Form.GetChild(6).GetChild(8).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(3992u); component = this.AGS_Form.GetChild(6).GetChild(9).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(4060u); break; } } if (this.DM.m_CryptData.money == 0) { this.interest = 1.0 + GameConstants.cryptInterest[(int)this.OpenDigType] + this.DM.AttribVal.GetEffectBaseValByEffectID(277) / 10000.0; if (this.funds < 10000) { this.funds = 10000; } this.profit = (uint)Math.Floor((double)this.funds * this.interest); this.MaxFunds = (ushort)this.DM.AttribVal.GetEffectBaseValByEffectID(278); UIText component = this.AGS_Form.GetChild(6).GetChild(10).GetComponent <UIText>(); this.interestText.ClearString(); this.interestText.FloatToFormat(this.DM.AttribVal.GetEffectBaseValByEffectID(277) / 100u, 2, false); if (!GUIManager.Instance.IsArabic) { this.interestText.AppendFormat("+{0}%"); } else { this.interestText.AppendFormat("%{0}+"); } component.text = this.interestText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); RectTransform rectTransform; if (this.slider == null) { GameObject gameObject = new GameObject("Slider"); rectTransform = gameObject.AddComponent <RectTransform>(); rectTransform.anchoredPosition = new Vector2(-110f, -215f); gameObject.transform.SetParent(this.AGS_Form.GetChild(9), false); this.slider = gameObject.AddComponent <UnitResourcesSlider>(); GUIManager.Instance.InitUnitResourcesSlider(gameObject.transform, eUnitSlider.Crypt, 10000u, (uint)this.MaxFunds, 1f); this.slider.m_Handler = this; this.slider.m_ID = 1; this.slider.BtnInputText.m_Handler = this; this.slider.BtnInputText.m_BtnID1 = 4; } this.slider.MaxValue = (long)this.MaxFunds; this.slider.m_slider.maxValue = (double)this.MaxFunds; this.MaxFundText.ClearString(); this.MaxFundText.IntToFormat((long)this.MaxFunds, 1, true); this.MaxFundText.AppendFormat("{0}"); this.slider.m_TotalText.text = this.MaxFundText.ToString(); this.slider.m_TotalText.SetAllDirty(); this.slider.m_TotalText.cachedTextGenerator.Invalidate(); StringManager.IntToStr(this.fundsText, (long)this.funds, 1, true); this.slider.m_inputText.text = this.fundsText.ToString(); this.slider.m_inputText.SetAllDirty(); this.slider.m_inputText.cachedTextGenerator.Invalidate(); rectTransform = this.AGS_Form.GetChild(9).GetChild(1).GetComponent <RectTransform>(); rectTransform.anchoredPosition = new Vector2(-110f, -281f); rectTransform = this.AGS_Form.GetChild(9).GetChild(0).GetComponent <RectTransform>(); rectTransform.anchoredPosition = new Vector2(-170f, -213f); rectTransform = this.AGS_Form.GetChild(9).GetChild(2).GetComponent <RectTransform>(); rectTransform.anchoredPosition = new Vector2(54f, -223f); this.AGS_SuperBtn_SA.SetSpriteIndex(0); this.AGS_Form.GetChild(10).GetChild(0).gameObject.SetActive(false); this.AGS_Form.GetChild(10).GetChild(2).gameObject.SetActive(false); this.AGS_Form.GetChild(10).GetChild(1).GetComponent <UIText>().text = this.DM.mStringTable.GetStringByID(4089u); this.AGS_Form.GetChild(10).GetComponent <UIButton>().m_BtnID1 = 1; component = this.AGS_Form.GetChild(6).GetChild(12).GetComponent <UIText>(); component.color = new Color32(0, byte.MaxValue, 0, byte.MaxValue); this.AGS_Form.GetChild(9).gameObject.SetActive(true); this.AGS_Form.GetChild(10).gameObject.SetActive(true); this.AGS_Form.GetChild(9).GetChild(1).gameObject.SetActive(true); this.AGS_Form.GetChild(9).GetChild(2).gameObject.SetActive(true); } else { if (this.DM.m_CryptData.kind == this.OpenDigType) { BuildLevelRequest buildLevelRequestData = GUIManager.Instance.BuildingData.GetBuildLevelRequestData(16, this.DM.m_CryptData.level); this.interest = 1.0 + GameConstants.cryptInterest[(int)this.DM.m_CryptData.kind] + buildLevelRequestData.Value2 / 10000.0; this.funds = this.DM.m_CryptData.money; this.profit = (uint)Math.Floor((double)this.funds * this.interest); UIText component = this.AGS_Form.GetChild(6).GetChild(10).GetComponent <UIText>(); this.interestText.ClearString(); this.interestText.FloatToFormat(buildLevelRequestData.Value2 / 100u, 2, false); if (!GUIManager.Instance.IsArabic) { this.interestText.AppendFormat("+{0}%"); } else { this.interestText.AppendFormat("%{0}+"); } component.text = this.interestText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(6).GetChild(12).GetComponent <UIText>(); component.color = Color.yellow; this.AGS_Form.GetChild(8).gameObject.SetActive(true); this.AGS_Form.GetChild(10).gameObject.SetActive(true); component = this.AGS_Form.GetChild(8).GetChild(3).GetComponent <UIText>(); this.profitText.ClearString(); this.profitText.IntToFormat((long)((ulong)this.profit), 1, true); this.profitText.AppendFormat("{0}"); component.text = this.profitText.ToString(); this.updateTimeBar(); } else { this.interest = 1.0 + GameConstants.cryptInterest[(int)this.OpenDigType] + this.DM.AttribVal.GetEffectBaseValByEffectID(277) / 10000.0; this.funds = 0; this.profit = 0u; UIText component = this.AGS_Form.GetChild(6).GetChild(10).GetComponent <UIText>(); this.interestText.ClearString(); this.interestText.FloatToFormat(this.DM.AttribVal.GetEffectBaseValByEffectID(277) / 100u, 2, false); if (!GUIManager.Instance.IsArabic) { this.interestText.AppendFormat("+{0}%"); } else { this.interestText.AppendFormat("%{0}+"); } component.text = this.interestText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = this.AGS_Form.GetChild(6).GetChild(12).GetComponent <UIText>(); component.color = Color.yellow; component = this.AGS_Form.GetChild(7).GetChild(0).GetComponent <UIText>(); component.text = this.DM.mStringTable.GetStringByID(4092u); component.transform.parent.gameObject.SetActive(true); component.gameObject.SetActive(true); } this.AGS_Form.GetChild(9).GetChild(1).gameObject.SetActive(false); this.AGS_Form.GetChild(9).GetChild(2).gameObject.SetActive(false); } this.SetNumbers(); }
// Token: 0x06001DF7 RID: 7671 RVA: 0x00387760 File Offset: 0x00385960 public void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId) { Effect recordByKey = this.DM.EffectData.GetRecordByKey(this.effectCompareList[dataIdx].EffectID); if (this.effectCompareList[dataIdx].isTitel) { UIText component = item.transform.GetChild(0).GetComponent <UIText>(); item.transform.GetChild(0).gameObject.SetActive(true); item.transform.GetChild(1).gameObject.SetActive(false); item.transform.GetChild(2).gameObject.SetActive(false); item.transform.GetChild(3).gameObject.SetActive(false); if (this.effectCompareList[dataIdx].group == 255) { component.text = this.DM.mStringTable.GetStringByID(16141u); } else { component.text = this.DM.mStringTable.GetStringByID((uint)((ushort)(8484 + (int)this.effectCompareList[dataIdx].group))); } component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else if (this.effectCompareList[dataIdx].isNewGemEffect == 0) { UIText component = item.transform.GetChild(1).GetComponent <UIText>(); item.transform.GetChild(0).gameObject.SetActive(false); item.transform.GetChild(1).gameObject.SetActive(true); item.transform.GetChild(2).gameObject.SetActive(false); item.transform.GetChild(3).gameObject.SetActive(false); this.EffDescText[panelObjectIdx].ClearString(); this.EffDescText[panelObjectIdx].StringToFormat(this.DM.mStringTable.GetStringByID((uint)recordByKey.InfoID)); if (this.effectCompareList[dataIdx].isEven) { this.EffDescText[panelObjectIdx].StringToFormat("<color=#FFFFFF>"); } else if (this.effectCompareList[dataIdx].EffectValue < 0) { this.EffDescText[panelObjectIdx].StringToFormat("<color=#FF656EFF>"); } else { this.EffDescText[panelObjectIdx].StringToFormat("<color=#35F76CFF>+"); } if (recordByKey.ValueID == 0) { this.EffDescText[panelObjectIdx].IntToFormat((long)this.effectCompareList[dataIdx].EffectValue, 1, false); this.EffDescText[panelObjectIdx].AppendFormat("<color=#FFEC87FF>{0}</color> {1}{2}</color>"); } else { float f = (float)this.effectCompareList[dataIdx].EffectValue / 100f; this.EffDescText[panelObjectIdx].FloatToFormat(f, 2, false); this.EffDescText[panelObjectIdx].AppendFormat("<color=#FFEC87FF>{0}</color> {1}{2}%</color>"); } component.text = this.EffDescText[panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else { UIText component = item.transform.GetChild(2).GetComponent <UIText>(); item.transform.GetChild(0).gameObject.SetActive(false); item.transform.GetChild(1).gameObject.SetActive(false); item.transform.GetChild(2).gameObject.SetActive(true); item.transform.GetChild(3).gameObject.SetActive(true); this.EffDescText[panelObjectIdx].ClearString(); LordEquipData.GetNewGemEffectString(this.EffDescText[panelObjectIdx], (byte)this.effectCompareList[dataIdx].EffectID, this.effectCompareList[dataIdx].EffectValue, this.effectCompareList[dataIdx].isEven, this.effectCompareList[dataIdx].useForceColor); component.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, this.GetTextHeight(245f, this.EffDescText[panelObjectIdx], 18)); component.text = this.EffDescText[panelObjectIdx].ToString(); component.fontSize = 17; component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); UIButtonHint component2 = item.transform.GetChild(3).GetComponent <UIButtonHint>(); component2.Parm1 = (ushort)(7431 + (int)this.effectCompareList[dataIdx].fromPart); component2.m_Handler = this; UISpritesArray component3 = item.transform.GetChild(3).GetComponent <UISpritesArray>(); component3.SetSpriteIndex((int)this.effectCompareList[dataIdx].fromPart); } }
// Token: 0x060012F6 RID: 4854 RVA: 0x00210164 File Offset: 0x0020E364 public override void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId) { if (dataIdx == 0) { item.transform.GetChild(0).gameObject.SetActive(true); item.transform.GetChild(1).gameObject.SetActive(false); UIText component = item.transform.GetChild(0).GetChild(4).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7062u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(4717u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(9858u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else { item.transform.GetChild(0).gameObject.SetActive(false); item.transform.GetChild(1).gameObject.SetActive(true); item.transform.GetChild(1).GetChild(11).gameObject.SetActive(false); this.SortTextArray[0, panelObjectIdx].ClearString(); this.SortTextArray[0, panelObjectIdx].IntToFormat((long)dataIdx, 1, false); this.SortTextArray[0, panelObjectIdx].AppendFormat("{0}"); UIText component = item.transform.GetChild(1).GetChild(4).GetComponent <UIText>(); component.text = this.SortTextArray[0, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[1, panelObjectIdx].ClearString(); this.SortTextArray[1, panelObjectIdx].Append(LeaderBoardManager.Instance.AlliHuntBoard[dataIdx - 1].Name); component = item.transform.GetChild(1).GetChild(5).GetComponent <UIText>(); component.text = this.SortTextArray[1, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); this.SortTextArray[2, panelObjectIdx].ClearString(); this.SortTextArray[2, panelObjectIdx].uLongToFormat(LeaderBoardManager.Instance.AlliHuntBoard[dataIdx - 1].Value, 1, true); this.SortTextArray[2, panelObjectIdx].AppendFormat("{0}"); component = item.transform.GetChild(1).GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); if (dataIdx == LeaderBoardManager.Instance.AlliHuntRank) { UISpritesArray component2 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(2); component2 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(2); component2 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(2); } else if (dataIdx % 2 == 0) { UISpritesArray component2 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(1); component2 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(1); component2 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(1); } else { UISpritesArray component2 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(0); component2 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(0); component2 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(0); } } }
// Token: 0x06001DFB RID: 7675 RVA: 0x00387EFC File Offset: 0x003860FC public void reflashItem() { if (UILordEquipSetEdit.SetName == null) { UILordEquipSetEdit.SetName = StringManager.Instance.SpawnString(30); } UILordEquipSetEdit.SetName.ClearString(); if (UILordEquipSetEdit.showingSet.Name.Length == 0) { UILordEquipSetEdit.SetName.IntToFormat((long)(UILordEquipSetEdit.SetIdx + 1), 1, false); UILordEquipSetEdit.SetName.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(928u)); } else { UILordEquipSetEdit.SetName.Append(UILordEquipSetEdit.showingSet.Name); } UIText component = this.AGS_Form.GetChild(0).GetChild(1).GetComponent <UIText>(); component.text = UILordEquipSetEdit.SetName.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component.cachedTextGeneratorForLayout.Invalidate(); int num = (int)component.preferredWidth / 2 + 30; RectTransform component2 = this.AGS_Form.GetChild(2).GetComponent <RectTransform>(); component2.anchoredPosition = new Vector2((float)num, component2.anchoredPosition.y); this.effectCompareList.Clear(); List <LordEquipEffectSet> effList = new List <LordEquipEffectSet>(); for (int i = 0; i < 8; i++) { if (UILordEquipSetEdit.showingSet.SerialNO[i] != 0u) { for (int j = 0; j < (int)DataManager.Instance.RoleAttr.LordEquipBagSize; j++) { if (LordEquipData.Instance().LordEquip[j].SerialNO == UILordEquipSetEdit.showingSet.SerialNO[i]) { UILordEquipSetEdit.SetDataIndex[i] = j; } } LordEquipData.GetEffectList(LordEquipData.Instance().LordEquip[UILordEquipSetEdit.SetDataIndex[i]], effList, 0, (byte)Math.Min(5, i), true); } } LordEquipData.effectListAddToEffectCompareList(effList, this.effectCompareList); LordEquipData.EffectTitleListCreater(this.effectCompareList); this.ForgingIcon.gameObject.SetActive(false); if (this.DM.RoleAttr.LordEquipEventData.SerialNO != 0u) { for (int k = 0; k < 8; k++) { if (this.DM.RoleAttr.LordEquipEventData.SerialNO == UILordEquipSetEdit.showingSet.SerialNO[k]) { this.ForgingIcon.SetParent(this.AGS_Form.GetChild(5).GetChild(k + 16)); this.ForgingIcon.anchoredPosition = new Vector2(52f, -52f); this.ForgingIcon.gameObject.SetActive(true); break; } } } int num2; for (int l = 0; l < 8; l++) { if (UILordEquipSetEdit.showingSet.SerialNO[l] != 0u) { this.AGS_Form.GetChild(5).GetChild(l + 8).gameObject.SetActive(false); this.Equips[l].gameObject.SetActive(true); GUIManager.Instance.ChangeLordEquipImg(this.Equips[l].transform, LordEquipData.Instance().LordEquip[UILordEquipSetEdit.SetDataIndex[l]], eLordEquipDisplayKind.Item_Gems, false); this.Equips[l].GetComponent <UILEBtn>().SetCountdown(LordEquipData.Instance().LordEquip[UILordEquipSetEdit.SetDataIndex[l]].ExpireTime, false); } else { this.AGS_Form.GetChild(5).GetChild(l + 8).gameObject.SetActive(true); this.Equips[l].gameObject.SetActive(false); num2 = UILordEquipSetEdit.CheckHaveEquipKind((byte)(l + 21), false); if (num2 > 0) { this.AGS_Form.GetChild(5).GetChild(l + 8).GetChild(0).gameObject.SetActive(num2 == 1); this.AGS_Form.GetChild(5).GetChild(l + 8).GetChild(1).gameObject.SetActive(true); this.AGS_Form.GetChild(5).GetChild(l + 8).GetChild(1).GetComponent <UISpritesArray>().SetSpriteIndex(2 - num2); } else { this.AGS_Form.GetChild(5).GetChild(l + 8).GetChild(0).gameObject.SetActive(false); this.AGS_Form.GetChild(5).GetChild(l + 8).GetChild(1).gameObject.SetActive(false); } } } num2 = UILordEquipSetEdit.CheckHaveEquipKind(26, true); RoleBuildingData buildData = GUIManager.Instance.BuildingData.GetBuildData(15, 0); if (buildData.Level >= 25) { this.usedsolt = 8; } else if (buildData.Level >= 17) { this.usedsolt = 7; } else { this.usedsolt = 6; } if (buildData.Level >= 17 && UILordEquipSetEdit.showingSet.SerialNO[6] == 0u) { this.AGS_Form.GetChild(5).GetChild(24).gameObject.SetActive(buildData.Level < 17); this.AGS_Form.GetChild(5).GetChild(14).GetChild(0).gameObject.SetActive(num2 == 1); this.AGS_Form.GetChild(5).GetChild(14).GetChild(1).gameObject.SetActive(num2 > 0); this.AGS_Form.GetChild(5).GetChild(14).GetChild(1).GetComponent <UISpritesArray>().SetSpriteIndex(2 - num2); this.AGS_Form.GetChild(5).GetChild(14).GetComponent <UIButton>().m_BtnID1 = 3; } else { this.AGS_Form.GetChild(5).GetChild(24).gameObject.SetActive(buildData.Level < 17); this.AGS_Form.GetChild(5).GetChild(14).GetChild(0).gameObject.SetActive(false); this.AGS_Form.GetChild(5).GetChild(14).GetChild(1).gameObject.SetActive(false); this.AGS_Form.GetChild(5).GetChild(14).GetComponent <UIButton>().m_BtnID1 = 0; } if (buildData.Level >= 25 && UILordEquipSetEdit.showingSet.SerialNO[7] == 0u) { this.AGS_Form.GetChild(5).GetChild(25).gameObject.SetActive(buildData.Level < 25); this.AGS_Form.GetChild(5).GetChild(15).GetChild(0).gameObject.SetActive(num2 == 1); this.AGS_Form.GetChild(5).GetChild(15).GetChild(1).gameObject.SetActive(num2 > 0); this.AGS_Form.GetChild(5).GetChild(15).GetChild(1).GetComponent <UISpritesArray>().SetSpriteIndex(2 - num2); this.AGS_Form.GetChild(5).GetChild(15).GetComponent <UIButton>().m_BtnID1 = 3; } else { this.AGS_Form.GetChild(5).GetChild(25).gameObject.SetActive(buildData.Level < 25); this.AGS_Form.GetChild(5).GetChild(15).GetChild(0).gameObject.SetActive(false); this.AGS_Form.GetChild(5).GetChild(15).GetChild(1).gameObject.SetActive(false); this.AGS_Form.GetChild(5).GetChild(15).GetComponent <UIButton>().m_BtnID1 = 0; } this.SPHeight.Clear(); CString cstring = StringManager.Instance.StaticString1024(); for (int m = 0; m < this.effectCompareList.Count; m++) { if (this.effectCompareList[m].isTitel) { this.SPHeight.Add(35f); } else if (this.effectCompareList[m].isNewGemEffect == 1) { cstring.ClearString(); LordEquipData.GetNewGemEffectString(cstring, (byte)this.effectCompareList[m].EffectID, this.effectCompareList[m].EffectValue, true, 0); this.SPHeight.Add(this.GetTextHeight(245f, cstring, 18)); } else { this.SPHeight.Add(32f); } } if (this.SPHeight.Count > 1) { float num3 = this.SPHeight[this.SPHeight.Count - 1]; this.SPHeight.RemoveAt(this.SPHeight.Count - 1); this.SPHeight.Add(num3 + 6f); } this.AGS_Form.GetChild(6).gameObject.SetActive(true); this.AGS_ScrollPanel.AddNewDataHeight(this.SPHeight, true, true); if (!UILordEquipSetEdit.ThingsChanged) { for (int n = 0; n < UILordEquipSetEdit.showingSet.SerialNO.Length; n++) { if (UILordEquipSetEdit.showingSet.SerialNO[n] != LordEquipData.Instance().LordEquipSets[UILordEquipSetEdit.SetIdx].SerialNO[n]) { UILordEquipSetEdit.ThingsChanged = true; break; } } } UIButton component3 = this.AGS_Form.GetChild(4).GetChild(1).GetComponent <UIButton>(); component = component3.transform.GetChild(0).GetComponent <UIText>(); if (UILordEquipSetEdit.ThingsChanged && !UILordEquipSetEdit.showingSet.isSetEmpty()) { component3.image.color = Color.white; component3.m_BtnID1 = 1; component.color = Color.white; } else { component3.image.color = Color.gray; component3.m_BtnID1 = 0; component.color = new Color(0.898f, 0f, 0.31f); } component3 = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <UIButton>(); component = component3.transform.GetChild(0).GetComponent <UIText>(); if (!UILordEquipSetEdit.showingSet.isSetEmpty()) { component3.image.color = Color.white; component3.m_BtnID1 = 2; component.color = Color.white; } else { component3.image.color = Color.gray; component3.m_BtnID1 = 0; component.color = new Color(0.898f, 0f, 0.31f); } }
// Token: 0x06001A97 RID: 6807 RVA: 0x002D36F4 File Offset: 0x002D18F4 public void updataTimeBar() { RectTransform component = this.AGS_Form.GetChild(1).GetChild(4).GetComponent <RectTransform>(); this.AGS_Form.GetChild(1).GetChild(1).GetChild(2).gameObject.SetActive(false); this.AGS_Form.GetChild(1).GetChild(2).GetChild(2).gameObject.SetActive(false); this.AGS_Form.GetChild(1).GetChild(3).GetChild(2).gameObject.SetActive(false); if (this.DM.m_CryptData.money == 0) { this.light1.gameObject.SetActive(false); this.light2.gameObject.SetActive(false); this.light3.gameObject.SetActive(false); component.gameObject.SetActive(false); return; } component.gameObject.SetActive(true); component.anchoredPosition = new Vector2((float)(-342 + (int)((this.DM.m_CryptData.kind - 1) * 249)), -79f); long num = this.DM.m_CryptData.startTime + (long)((ulong)GameConstants.CryptSecends[(int)this.DM.m_CryptData.kind]) - this.DM.ServerTime; if (num < 0L) { num = 0L; } UIText component2 = component.GetChild(1).GetComponent <UIText>(); this.barText.ClearString(); if (num != 0L) { this.barText.Append(this.DM.mStringTable.GetStringByID(3989u)); this.barText.Append(" "); GameConstants.GetTimeString(this.barText, (uint)num, false, true, true, false, true); component2.text = this.barText.ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component = component.GetChild(0).GetComponent <RectTransform>(); float num2 = (float)num / GameConstants.CryptSecends[(int)this.DM.m_CryptData.kind]; num2 = Mathf.Clamp01(1f - num2); component.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 164f); return; } this.AGS_Form.GetChild(1).GetChild((int)(0 + this.DM.m_CryptData.kind)).GetChild(2).gameObject.SetActive(true); this.barText.Append(this.DM.mStringTable.GetStringByID(5881u)); this.light1.gameObject.SetActive(false); this.light2.gameObject.SetActive(false); this.light3.gameObject.SetActive(false); component.gameObject.SetActive(false); switch (this.DM.m_CryptData.kind) { case 1: this.light1.gameObject.SetActive(true); break; case 2: this.light2.gameObject.SetActive(true); break; case 3: this.light3.gameObject.SetActive(true); break; } }