// 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: 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: 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: 0x06001E8E RID: 7822 RVA: 0x003A6260 File Offset: 0x003A4460 public override void OnOpen(int arg1, int arg2) { this.DM = DataManager.Instance; this.SM = StringManager.Instance; this.GM = GUIManager.Instance; this.ST = this.DM.mStringTable; Font ttffont = this.GM.GetTTFFont(); this.m_transform = base.transform; this.door = (this.GM.FindMenu(EGUIWindow.Door) as Door); byte b = 1; ushort hiid = 1; this.NameStr = this.SM.SpawnString(30); if (arg1 == 1) { MapPoint mapPoint = DataManager.MapDataController.LayoutMapInfo[arg2]; PlayerPoint playerPoint = DataManager.MapDataController.PlayerPointTable[(int)mapPoint.tableID]; this.NameStr.Append(playerPoint.playerName); b = playerPoint.allianceRank; hiid = playerPoint.portraitID; GameConstants.MapIDToPointCode(arg2, out this.DesPoint.zoneID, out this.DesPoint.pointID); } else if (arg1 == 2) { AllianceMemberClientDataType allianceMemberClientDataType = this.DM.AllianceMember[arg2]; this.NameStr.Append(allianceMemberClientDataType.Name); b = (byte)allianceMemberClientDataType.Rank; hiid = allianceMemberClientDataType.Head; this.DesPoint = this.DM.AllyMemberLoc; } else if (arg1 == 3) { this.NameStr.Append(this.DM.mLordProfile.PlayerName); b = this.DM.mLordProfile.AlliRank; hiid = this.DM.mLordProfile.Head; this.DesPoint = this.DM.AllyMemberLoc; } else { this.NameStr.Append("TestHelpName"); } this.mBD = this.GM.BuildingData.GetBuildData(17, 0); this.mBR = this.GM.BuildingData.GetBuildLevelRequestData(17, this.mBD.Level); UIButton component = this.m_transform.GetChild(9).GetChild(0).GetComponent <UIButton>(); component.m_Handler = this; component.m_BtnID1 = 1; this.HelpButton = this.m_transform.GetChild(10).GetComponent <UIButton>(); this.HelpButton.m_Handler = this; this.HelpButton.m_BtnID1 = 2; if (this.GM.bOpenOnIPhoneX) { this.m_transform.GetChild(9).GetComponent <Image>().enabled = false; } this.RBText[5] = this.m_transform.GetChild(11).GetComponent <UIText>(); this.RBText[5].font = ttffont; this.RBText[5].text = this.DM.mStringTable.GetStringByID(4040u); this.HelpButtonText = this.HelpButton.transform.GetChild(0).GetComponent <UIText>(); this.HelpButtonText.font = ttffont; this.HelpButtonText.text = this.DM.mStringTable.GetStringByID(4039u); this.HelpButton.m_Text = this.HelpButtonText; this.HelpButton.ForTextChange(e_BtnType.e_ChangeText); this.RBText[6] = this.m_transform.GetChild(12).GetComponent <UIText>(); this.RBText[6].font = ttffont; this.RBText[6].text = this.NameStr.ToString(); UISpritesArray component2 = this.m_transform.GetChild(3).GetComponent <UISpritesArray>(); component2.SetSpriteIndex((int)(b - 1)); if (this.GM.IsArabic) { ((RectTransform)this.m_transform.GetChild(3)).localScale = new Vector3(-1f, 1f, 1f); } GUIManager.Instance.InitianHeroItemImg(this.m_transform.GetChild(4), eHeroOrItem.Hero, hiid, 11, 0, 0, false, false, true, false); this.LTaxText = this.m_transform.GetChild(13).GetComponent <UIText>(); this.LTaxText.font = ttffont; this.TaxStr = this.SM.SpawnString(30); this.TaxText = this.m_transform.GetChild(14).GetComponent <UIText>(); this.TaxText.font = ttffont; this.TaxStr2 = this.SM.SpawnString(30); this.TaxStr2.Length = 0; StringManager.IntToStr(this.TaxStr2, 0L, 1, false); this.TaxText.text = this.TaxStr2.ToString(); this.RBText[7] = this.m_transform.GetChild(15).GetComponent <UIText>(); this.RBText[7].font = ttffont; this.RBText[7].text = this.DM.mStringTable.GetStringByID(4038u); this.LoadingMax = this.GetMaxLoading(); this.LoadingText = this.m_transform.GetChild(16).GetComponent <UIText>(); this.LoadingText.font = ttffont; this.LoadingStr2 = this.SM.SpawnString(30); this.RefreshTax(); this.AddSpeedText = this.m_transform.GetChild(18).GetComponent <UIText>(); this.AddSpeedText.font = ttffont; this.BootsStr = this.SM.SpawnString(30); this.TotalTimeText = this.m_transform.GetChild(17).GetComponent <UIText>(); this.TotalTimeText.font = ttffont; this.TimeStr = this.SM.SpawnString(30); this.RefreshSpeed(); this.m_DResourcesT = this.m_transform.GetChild(19); this.m_DResources = this.m_DResourcesT.GetComponent <DemandResources>(); this.GM.InitDemandResources(this.m_DResourcesT, 489f, 100f, false); for (int i = 0; i < 5; i++) { this.m_DResources.TextResources[i].fontSize = 14; } this.GM.SetDemandResourcesText(this.m_DResources.GetComponent <Transform>(), this.lSendResource); Transform child = this.m_transform.GetChild(20).GetChild(0); for (int j = 0; j < 5; j++) { this.lResource[j] = (long)((ulong)this.DM.Resource[j].Stock); this.ResourcesStr[j] = this.SM.SpawnString(30); Transform child2 = child.GetChild(j); Transform child3 = child2.GetChild(0); Image component3 = child3.GetChild(0).GetComponent <Image>(); component3.sprite = this.GM.m_ItemIconSpriteAsset.LoadSprite((ushort)(1001 + j)); component3.material = this.GM.m_ItemIconSpriteAsset.GetMaterial(); component3 = child3.GetChild(1).GetComponent <Image>(); component3.material = this.GM.GetFrameMaterial(); component3.sprite = this.GM.LoadFrameSprite("if001"); this.RBText[j] = child2.GetChild(1).GetComponent <UIText>(); this.RBText[j].font = ttffont; this.RBText[j].text = this.DM.mStringTable.GetStringByID((uint)(3952 + j)); child3 = child2.GetChild(2); this.GM.InitUnitResourcesSlider(child3, eUnitSlider.MarketHelp, 0u, (uint)this.lResource[j], 0.7f); this.m_Slider[j] = child3.GetComponent <UnitResourcesSlider>(); this.m_Slider[j].m_Handler = this; this.m_Slider[j].m_ID = j; this.m_Slider[j].BtnInputText.m_Handler = this; this.m_Slider[j].BtnInputText.m_BtnID1 = 3; this.m_Slider[j].BtnInputText.m_BtnID2 = j; this.GM.SetUnitResourcesSliderSize(child3, eUnitSliderSize.Input, 85f, 26f, 110f, 26f, 0f, 0f); } if (this.GM.m_OpenResourceMenu) { for (int k = 0; k < 5; k++) { if (this.GM.m_SaveResource[k] > 0u) { this.CheckResource(k, (long)((ulong)this.GM.m_SaveResource[k])); this.SetSlider(k, (long)((ulong)this.GM.m_SaveResource[k])); } } } else { this.GM.m_OpenResourceMenu = true; } this.RefreshResource(false); this.GM.UpdateUI(EGUIWindow.Door, 1, 2); this.bOpen = true; }
// 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: 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: 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: 0x06001D1A RID: 7450 RVA: 0x00342EB8 File Offset: 0x003410B8 public void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId) { byte b = this.DM.sortedPrisonerList[(int)this.SPdispIdx[dataIdx]]; this.SPnowIdx[panelObjectIdx] = b; this.SPItem[panelObjectIdx] = item.transform; UIHIBtn component = item.transform.GetChild(1).GetComponent <UIHIBtn>(); GUIManager.Instance.InitianHeroItemImg(component.transform, eHeroOrItem.Hero, this.DM.PrisonerList[(int)b].head, 11, 0, 0, false, false, true, false); UIText component2 = item.transform.GetChild(2).GetComponent <UIText>(); this.SPLv[panelObjectIdx].ClearString(); this.SPLv[panelObjectIdx].IntToFormat((long)this.DM.PrisonerList[(int)b].LordLevel, 1, false); this.SPLv[panelObjectIdx].AppendFormat(this.DM.mStringTable.GetStringByID(7757u)); component2.text = this.SPLv[panelObjectIdx].ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2 = item.transform.GetChild(3).GetComponent <UIText>(); this.SPName[panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SPName[panelObjectIdx], this.DM.PrisonerList[(int)b].KingdomID, this.DM.PrisonerList[(int)b].name, this.DM.PrisonerList[(int)b].AlliTag, false); component2.text = this.SPName[panelObjectIdx].ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2 = item.transform.GetChild(8).GetComponent <UIText>(); UISpritesArray component3 = item.transform.GetChild(6).GetComponent <UISpritesArray>(); long num = this.DM.PrisonerList[(int)b].StartActionTime + (long)((ulong)this.DM.PrisonerList[(int)b].TotalTime) - this.DM.ServerTime; if (num < 0L) { num = 0L; } RectTransform component4 = item.transform.GetChild(6).GetComponent <RectTransform>(); this.SPStat[panelObjectIdx].ClearString(); switch (this.DM.PrisonerList[(int)b].nowStat) { case PrisonerState.WaitForRelease: { this.SPStat[panelObjectIdx].Append(this.DM.mStringTable.GetStringByID(7768u)); component3.SetSpriteIndex(2); item.transform.GetChild(4).gameObject.SetActive(false); float num2 = (float)num / this.DM.PrisonerList[(int)b].TotalTime; num2 = Mathf.Clamp01(1f - num2); component4.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 255f); break; } case PrisonerState.WaitForExecute: if (num > 21600L) { num -= 21600L; this.SPStat[panelObjectIdx].Append(this.DM.mStringTable.GetStringByID(7759u)); component3.SetSpriteIndex(1); item.transform.GetChild(4).gameObject.SetActive(false); float num2 = (float)num / (this.DM.PrisonerList[(int)b].TotalTime - 21600u); num2 = Mathf.Clamp01(1f - num2); component4.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 255f); } else { this.SPStat[panelObjectIdx].Append(this.DM.mStringTable.GetStringByID(7758u)); component3.SetSpriteIndex(0); item.transform.GetChild(4).gameObject.SetActive(true); component3 = item.transform.GetChild(4).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(0); float num2 = (float)num / 21600f; num2 = Mathf.Clamp01(1f - num2); component4.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 255f); } break; case PrisonerState.Poisoned: { this.SPStat[panelObjectIdx].Append(this.DM.mStringTable.GetStringByID(15008u)); component3.SetSpriteIndex(3); item.transform.GetChild(4).gameObject.SetActive(true); component3 = item.transform.GetChild(4).GetComponent <UISpritesArray>(); component3.SetSpriteIndex(1); float num2 = (float)num / this.DM.PrisonerList[(int)b].TotalTime; num2 = Mathf.Clamp01(1f - num2); component4.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, num2 * 255f); break; } } component2.text = this.SPStat[panelObjectIdx].ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); component2 = item.transform.GetChild(9).GetComponent <UIText>(); this.SPTime[panelObjectIdx].ClearString(); GameConstants.GetTimeString(this.SPTime[panelObjectIdx], (uint)num, true, true, true, false, true); component2.text = this.SPTime[panelObjectIdx].ToString(); component2.SetAllDirty(); component2.cachedTextGenerator.Invalidate(); UIButton component5 = item.transform.GetChild(0).GetComponent <UIButton>(); component5.m_BtnID1 = (int)this.SPdispIdx[dataIdx]; component5.m_Handler = this; }
// Token: 0x06001315 RID: 4885 RVA: 0x00213278 File Offset: 0x00211478 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(17034u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7094u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(7).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(17039u); 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(10).gameObject.SetActive(true); item.transform.GetChild(1).GetChild(12).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(); this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], 0, LeaderBoardManager.Instance.AllianceWarGroupBoard[dataIdx - 1].Name, LeaderBoardManager.Instance.AllianceWarGroupBoard[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(LeaderBoardManager.Instance.AllianceWarGroupBoard[dataIdx - 1].Power, 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(); this.SortTextArray[3, panelObjectIdx].ClearString(); this.SortTextArray[3, panelObjectIdx].IntToFormat((long)LeaderBoardManager.Instance.AllianceWarGroupBoard[dataIdx - 1].Score, 1, true); this.SortTextArray[3, panelObjectIdx].AppendFormat("{0}"); component = item.transform.GetChild(1).GetChild(7).GetComponent <UIText>(); component.text = this.SortTextArray[3, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); if (dataIdx == LeaderBoardManager.Instance.AllianceWarGroupRank) { 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); component2 = item.transform.GetChild(1).GetChild(3).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); component2 = item.transform.GetChild(1).GetChild(3).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); component2 = item.transform.GetChild(1).GetChild(3).GetComponent <UISpritesArray>(); component2.SetSpriteIndex(0); } UIButton component3 = item.transform.GetChild(1).GetChild(10).GetComponent <UIButton>(); component3.m_Handler = this; component3.m_BtnID1 = 6; component3.m_BtnID2 = dataIdx - 1; component3 = item.transform.GetChild(1).GetChild(12).GetComponent <UIButton>(); component3.m_Handler = this; component3.m_BtnID1 = 11; component3.m_BtnID2 = dataIdx; component = item.transform.GetChild(1).GetChild(4).GetComponent <UIText>(); if (dataIdx <= (int)LeaderBoardManager.Instance.AllianceWarGroupRankUpNum) { component3.m_BtnID3 = 1; component.color = new Color32(byte.MaxValue, byte.MaxValue, 0, byte.MaxValue); } else if (dataIdx >= (int)LeaderBoardManager.Instance.AllianceWarGroupRankDownNum) { component3.m_BtnID3 = 2; component.color = new Color32(0, byte.MaxValue, byte.MaxValue, byte.MaxValue); } else { component3.m_BtnID3 = 3; component.color = new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue); } UIButtonHint component4 = item.transform.GetChild(1).GetChild(12).GetComponent <UIButtonHint>(); component4.Parm1 = (ushort)dataIdx; component4.m_eHint = EUIButtonHint.DownUpHandler; component4.m_Handler = this; component4.ControlFadeOut = GUIManager.Instance.m_Arena_Hint.m_RectTransform.gameObject; } }
// Token: 0x06001322 RID: 4898 RVA: 0x0021589C File Offset: 0x00213A9C public void UpdatRow_Boards(GameObject item, int dataIdx, int panelObjectIdx) { if (dataIdx == 0) { switch (UIFootBallBoard.SubBoardID) { case 16: { 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 17: { 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; } case 18: { 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(UIFootBallBoard.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(); switch (UIFootBallBoard.SubBoardID) { case 16: this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], ((WorldRankingBoardUnitAlliance)LeaderBoardManager.Instance.Boards[(int)UIFootBallBoard.SubBoardID][dataIdx - 1]).KingdomID, LeaderBoardManager.Instance.Boards[(int)UIFootBallBoard.SubBoardID][dataIdx - 1].Name, LeaderBoardManager.Instance.Boards[(int)UIFootBallBoard.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 17: this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], ((WorldRankingBoardUnit)LeaderBoardManager.Instance.Boards[(int)UIFootBallBoard.SubBoardID][dataIdx - 1]).KingdomID, LeaderBoardManager.Instance.Boards[(int)UIFootBallBoard.SubBoardID][dataIdx - 1].Name, LeaderBoardManager.Instance.Boards[(int)UIFootBallBoard.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 18: this.SortTextArray[1, panelObjectIdx].ClearString(); GameConstants.GetNameString(this.SortTextArray[1, panelObjectIdx], 0, LeaderBoardManager.Instance.Boards[(int)UIFootBallBoard.SubBoardID][dataIdx - 1].Name, LeaderBoardManager.Instance.Boards[(int)UIFootBallBoard.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(); 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)UIFootBallBoard.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 (dataIdx == (int)LeaderBoardManager.Instance.MyRank[(int)UIFootBallBoard.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: 0x0600130B RID: 4875 RVA: 0x00212420 File Offset: 0x00210620 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(17013u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(5).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(17012u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component = item.transform.GetChild(0).GetChild(6).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(1560u); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); } else if (this.RankingTable[dataIdx] == UIAlliVSAlliBoard.SPtab) { 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(string.Empty); 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].Append(string.Empty); component = item.transform.GetChild(1).GetChild(6).GetComponent <UIText>(); component.text = this.SortTextArray[2, panelObjectIdx].ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); 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); } else { AllianceWarManager._RegisterData dataIndex = ActivityManager.Instance.AllianceWarMgr.GetDataIndex(this.RankingTable[dataIdx]); 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(); if (dataIdx > (int)ActivityManager.Instance.AW_MemberCount) { this.SortTextArray[0, panelObjectIdx].IntToFormat((long)(dataIdx - (int)ActivityManager.Instance.AW_MemberCount), 1, false); this.SortTextArray[0, panelObjectIdx].AppendFormat("~{0}"); } else { 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(dataIndex.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(dataIndex.Power, 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 component3 = item.transform.GetChild(1).GetChild(10).GetComponent <UIButton>(); component3.m_Handler = this; component3.m_BtnID1 = 6; component3.m_BtnID2 = dataIdx; if (ActivityManager.Instance.AllianceWarMgr.getMyRankIndex() == dataIdx) { UISpritesArray component4 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(2); component4 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(2); component4 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(2); } else if (dataIdx % 2 == 0) { UISpritesArray component4 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(1); component4 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(1); component4 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(1); } else { UISpritesArray component4 = item.transform.GetChild(1).GetChild(0).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(0); component4 = item.transform.GetChild(1).GetChild(1).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(0); component4 = item.transform.GetChild(1).GetChild(2).GetComponent <UISpritesArray>(); component4.SetSpriteIndex(0); } } }
// Token: 0x06001396 RID: 5014 RVA: 0x0022E154 File Offset: 0x0022C354 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(11011u); 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); item.transform.GetChild(1).GetChild(12).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.NobileBoard[dataIdx - 1].HomeKingdomID, LeaderBoardManager.Instance.NobileBoard[dataIdx - 1].Name, LeaderBoardManager.Instance.NobileBoard[dataIdx - 1].AllianceTag, 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(); GameConstants.GetTimeString(this.SortTextArray[2, panelObjectIdx], LeaderBoardManager.Instance.NobileBoard[dataIdx - 1].OccupyTime, false, false, true, false, true); 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(); 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); } UIButton component3 = item.transform.GetChild(1).GetChild(10).GetComponent <UIButton>(); component3.m_Handler = this; component3.m_BtnID1 = 10; component3.m_BtnID2 = dataIdx - 1; } }