// 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: 0x06001B5A RID: 7002 RVA: 0x00307C74 File Offset: 0x00305E74 public void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId) { if (panelId == 1) { if (this.tmpItem_A[panelObjectIdx] == null) { this.tmpItem_A[panelObjectIdx] = item.GetComponent <ScrollPanelItem>(); this.tmpItem_A[panelObjectIdx].m_BtnID2 = panelObjectIdx; this.btn_ActivityEquip[panelObjectIdx] = item.transform.GetChild(0).GetComponent <UIButton>(); this.btn_ActivityEquip[panelObjectIdx].m_Handler = this; this.tmpImg_btn[panelObjectIdx] = item.transform.GetChild(0).GetChild(0).GetComponent <Image>(); this.text_Item_A_Name[panelObjectIdx] = item.transform.GetChild(0).GetChild(0).GetChild(0).GetComponent <UIText>(); this.tmpImgSelect_btn[panelObjectIdx] = item.transform.GetChild(0).GetChild(1).GetComponent <Image>(); } if (this.tmpSpritelist.Count > dataIdx) { this.tmpImg_btn[panelObjectIdx].sprite = this.tmpSpritelist[dataIdx]; } if (this.tmpImg_btn[panelObjectIdx].sprite == null) { this.tmpImg_btn[panelObjectIdx].color = new Color(1f, 1f, 1f, 0f); } else { this.tmpImg_btn[panelObjectIdx].color = new Color(1f, 1f, 1f, 1f); } this.tmpME = this.DM.MallEquipmantTable.GetRecordByKey(this.tmplistEquip[dataIdx]); this.text_Item_A_Name[panelObjectIdx].text = this.DM.mStringTable.GetStringByID((uint)this.tmpME.EquipName); if (this.mItemActivityIdx == dataIdx) { this.tmpImgSelect_btn[panelObjectIdx].gameObject.SetActive(true); this.ItemActivitySelect = 0f; this.mItemActivityIdx2 = panelObjectIdx; } else { this.tmpImgSelect_btn[panelObjectIdx].gameObject.SetActive(false); this.tmpImgSelect_btn[panelObjectIdx].color = new Color(1f, 1f, 1f, 0f); } } else { if (this.tmpItem[panelObjectIdx] == null) { this.tmpItem[panelObjectIdx] = item.GetComponent <ScrollPanelItem>(); this.ItemBG_RC[panelObjectIdx] = item.transform.GetChild(0).GetComponent <RectTransform>(); this.ItemLine_RC[panelObjectIdx] = item.transform.GetChild(6).GetComponent <RectTransform>(); this.tmp_ItemLebtn[panelObjectIdx] = item.transform.GetChild(2).GetComponent <UILEBtn>(); this.tmpImg_ItemEnough[panelObjectIdx] = item.transform.GetChild(4).GetComponent <Image>(); this.btn_ForgingEquip[panelObjectIdx] = item.transform.GetChild(5).GetComponent <UIButton>(); this.btn_ForgingEquip[panelObjectIdx].m_Handler = this; this.text_Itembtn[panelObjectIdx] = item.transform.GetChild(5).GetChild(0).GetComponent <UIText>(); this.text_ItemName[panelObjectIdx] = item.transform.GetChild(3).GetChild(5).GetComponent <UIText>(); this.text_ItemLv[panelObjectIdx] = item.transform.GetChild(3).GetChild(6).GetComponent <UIText>(); this.tmpImg_ItemIcon[panelObjectIdx] = item.transform.GetChild(3).GetChild(0).GetComponent <Image>(); for (int i = 0; i < 4; i++) { this.tmpImg_Items[panelObjectIdx][i] = item.transform.GetChild(3).GetChild(1 + i).GetComponent <Image>(); } for (int j = 0; j < 6; j++) { this.text_ItemEffect[panelObjectIdx][j] = item.transform.GetChild(7 + j).GetChild(0).GetComponent <UIText>(); this.text_ItemEffect_V[panelObjectIdx][j] = item.transform.GetChild(7 + j).GetChild(1).GetComponent <UIText>(); } } if (this.tmplistData.Count > dataIdx) { this.tmpItem[panelObjectIdx].m_BtnID2 = panelObjectIdx; this.tmpEQ = this.DM.EquipTable.GetRecordByKey(this.tmplistData[dataIdx]); this.GUIM.ChangeLordEquipImg(this.tmp_ItemLebtn[panelObjectIdx].transform, this.tmpEQ.EquipKey, this.mColor + 1, eLordEquipDisplayKind.OnlyItem, 0, 0, 0, 0, 0, false); this.Cstr_ItemName[panelObjectIdx].ClearString(); GameConstants.GetColoredLordEquipString(this.Cstr_ItemName[panelObjectIdx], this.tmpEQ.EquipKey, this.mColor + 1); this.text_ItemName[panelObjectIdx].text = this.Cstr_ItemName[panelObjectIdx].ToString(); this.text_ItemName[panelObjectIdx].SetAllDirty(); this.text_ItemName[panelObjectIdx].cachedTextGenerator.Invalidate(); this.Cstr_ItemLv[panelObjectIdx].ClearString(); if (this.tmpEQ.NeedLv <= this.DM.RoleAttr.Level) { this.Cstr_ItemLv[panelObjectIdx].IntToFormat((long)this.tmpEQ.NeedLv, 1, true); } else { CString cstring = StringManager.Instance.StaticString1024(); cstring.ClearString(); cstring.IntToFormat((long)this.tmpEQ.NeedLv, 1, true); cstring.AppendFormat("<color=#FF5581FF>{0}</color>"); this.Cstr_ItemLv[panelObjectIdx].StringToFormat(cstring); } this.Cstr_ItemLv[panelObjectIdx].StringToFormat(this.DM.mStringTable.GetStringByID((uint)((ushort)(7410 + (int)this.tmpEQ.EquipKind)))); this.Cstr_ItemLv[panelObjectIdx].AppendFormat(this.DM.mStringTable.GetStringByID(7437u)); this.text_ItemLv[panelObjectIdx].text = this.Cstr_ItemLv[panelObjectIdx].ToString(); this.text_ItemLv[panelObjectIdx].SetAllDirty(); this.text_ItemLv[panelObjectIdx].cachedTextGenerator.Invalidate(); this.effectList.Clear(); LordEquipData.GetEffectList(this.tmpEQ.EquipKey, this.mColor + 1, this.effectList); for (int k = 0; k < this.effectList.Count; k++) { this.Cstr_Effect[panelObjectIdx][k].ClearString(); GameConstants.GetEffectValue(this.Cstr_Effect[panelObjectIdx][k], this.effectList[k].EffectID, 0u, 8, 0f); this.text_ItemEffect[panelObjectIdx][k].text = this.Cstr_Effect[panelObjectIdx][k].ToString(); this.text_ItemEffect[panelObjectIdx][k].SetAllDirty(); this.text_ItemEffect[panelObjectIdx][k].cachedTextGenerator.Invalidate(); this.Cstr_Effect_V[panelObjectIdx][k].ClearString(); GameConstants.GetEffectValue(this.Cstr_Effect_V[panelObjectIdx][k], this.effectList[k].EffectID, (uint)this.effectList[k].EffectValue, 3, 0f); this.text_ItemEffect_V[panelObjectIdx][k].text = this.Cstr_Effect_V[panelObjectIdx][k].ToString(); this.text_ItemEffect_V[panelObjectIdx][k].SetAllDirty(); this.text_ItemEffect_V[panelObjectIdx][k].cachedTextGenerator.Invalidate(); } int count = this.effectList.Count; for (int l = 0; l < count; l++) { item.transform.GetChild(7 + l).gameObject.SetActive(true); } for (int m = count; m < 6; m++) { item.transform.GetChild(7 + m).gameObject.SetActive(false); } this.ItemBG_RC[panelObjectIdx].sizeDelta = new Vector2(this.ItemBG_RC[panelObjectIdx].sizeDelta.x, (float)(92 + count * 24)); this.ItemLine_RC[panelObjectIdx].sizeDelta = new Vector2(this.ItemLine_RC[panelObjectIdx].sizeDelta.x, (float)(17 + (count - 1) * 24)); this.tmpCount = 0; this.tmpEnoughCount = 0; this.bShowMainEquip = false; this.tmpImg_ItemIcon[panelObjectIdx].gameObject.SetActive(false); if (this.mColor >= 1) { if (LordEquipData.getItemQuantity(this.tmpEQ.EquipKey, this.mColor) > 0) { this.tmpImg_ItemIcon[panelObjectIdx].sprite = this.SArray.m_Sprites[(int)((this.tmpEQ.EquipKind - 21) * 2)]; this.bShowMainEquip = true; } else { this.tmpImg_ItemIcon[panelObjectIdx].sprite = this.SArray.m_Sprites[(int)((this.tmpEQ.EquipKind - 21) * 2 + 1)]; } } for (int n = 0; n < 4; n++) { this.DM.mLordEquip.GetMaterialEnough(ref this.tmpCount, ref this.tmpEnoughCount, this.mColor, n, this.tmpEQ); if (n > 0) { this.tmpImg_Items[panelObjectIdx][n].rectTransform.anchoredPosition = new Vector2(this.tmpImg_Items[panelObjectIdx][n - 1].rectTransform.anchoredPosition.x + 40f, this.tmpImg_Items[panelObjectIdx][n].rectTransform.anchoredPosition.y); } } bool flag = false; if (((this.mColor >= 1 && this.bShowMainEquip) || this.mColor == 0) && this.tmpCount > 0 && this.tmpCount == this.tmpEnoughCount) { this.tmpImg_ItemEnough[panelObjectIdx].gameObject.SetActive(true); flag = true; this.tmpCount = 0; } else { this.tmpImg_ItemEnough[panelObjectIdx].gameObject.SetActive(false); if (this.mColor >= 1) { this.tmpImg_ItemIcon[panelObjectIdx].gameObject.SetActive(true); } } if (!flag) { for (int num = 0; num < (int)this.tmpCount; num++) { this.tmpImg_Items[panelObjectIdx][num].gameObject.SetActive(true); if ((int)this.tmpEnoughCount > num) { this.tmpImg_Items[panelObjectIdx][num].sprite = this.SArray.m_Sprites[13]; } else { this.tmpImg_Items[panelObjectIdx][num].sprite = this.SArray.m_Sprites[12]; } } } for (int num2 = (int)this.tmpCount; num2 < 4; num2++) { this.tmpImg_Items[panelObjectIdx][num2].gameObject.SetActive(false); this.tmpImg_Items[panelObjectIdx][num2].sprite = this.SArray.m_Sprites[12]; } } } }
// Token: 0x06001BD3 RID: 7123 RVA: 0x00316910 File Offset: 0x00314B10 public void Show(UIButtonHint hint, ushort ItemID, byte Rank, int Num = -1) { if (GUIManager.Instance.m_SimpleItemInfo.m_ButtonHint != null) { GUIManager.Instance.m_SimpleItemInfo.Hide(GUIManager.Instance.m_SimpleItemInfo.m_ButtonHint); } if (Rank == 0) { return; } if (this.m_RectTransform.gameObject.activeSelf) { this.Hide(this.m_ButtonHint); } DataManager instance = DataManager.Instance; bool flag = false; bool flag2 = false; float num = 0f; Equip recordByKey = instance.EquipTable.GetRecordByKey(ItemID); if (!GUIManager.Instance.IsLeadItem(recordByKey.EquipKind)) { return; } GUIManager.Instance.ChangeLordEquipImg(this.ItemTrans, ItemID, Rank, eLordEquipDisplayKind.OnlyItem, 0, 0, 0, 0, 0, false); if (recordByKey.EquipKind >= 21 && recordByKey.EquipKind <= 26) { flag2 = true; this.LevelStr.ClearString(); if (recordByKey.NeedLv <= instance.RoleAttr.Level) { this.LevelStr.IntToFormat((long)recordByKey.NeedLv, 1, false); } else { CString cstring = StringManager.Instance.StaticString1024(); cstring.IntToFormat((long)recordByKey.NeedLv, 1, false); cstring.AppendFormat("<color=#FF5581FF>{0}</color>"); this.LevelStr.StringToFormat(cstring); } this.LevelStr.AppendFormat(instance.mStringTable.GetStringByID(885u)); this.LevelText.text = this.LevelStr.ToString(); this.LevelText.SetAllDirty(); this.LevelText.cachedTextGenerator.Invalidate(); flag = true; this.KindText.text = instance.mStringTable.GetStringByID(7431u + (uint)recordByKey.EquipKind - 21u); if (!this._HideEquipVal && recordByKey.TimedType > 0) { this.TimeTrans.gameObject.SetActive(true); this.TimeStr.ClearString(); if (recordByKey.TimedTime >= 86400u) { GameConstants.GetTimeString(this.TimeStr, recordByKey.TimedTime, false, false, true, false, true); } else { this.TimeStr.Append(DataManager.MissionDataManager.FormatMissionTime(recordByKey.TimedTime)); } this.TimeText.text = this.TimeStr.ToString(); this.TimeText.SetAllDirty(); this.TimeText.cachedTextGenerator.Invalidate(); this.TimeExtendHeight = 25f; } } else if (recordByKey.EquipKind == 27) { bool flag3 = recordByKey.NewGem > 0; this.KindText.transform.localPosition = this.LevelText.transform.localPosition; flag = true; if (flag3) { this.ShadowObj.SetActive(false); this.KindText.text = instance.mStringTable.GetStringByID(16126u); this.ContText.gameObject.SetActive(true); this.ContStr.ClearString(); for (int i = 0; i < 3; i++) { if (recordByKey.NewGemEffect[i] == 0) { break; } if (i > 0) { this.ContStr.Append('\n'); } CString cstring2 = StringManager.Instance.StaticString1024(); SpecialEffect recordByKey2 = instance.SpecialEffectTable.GetRecordByKey(recordByKey.NewGemEffect[i]); if ((int)Rank <= recordByKey2.ColorEffect.Length) { LordEquipData.GetNewGemEffectString(cstring2, recordByKey2.NewGemEffectID, (int)recordByKey2.ColorEffect[(int)(Rank - 1)], true, 0); } else { LordEquipData.GetNewGemEffectString(cstring2, recordByKey2.NewGemEffectID, (int)recordByKey2.ColorEffect[0], true, 0); } this.ContStr.Append(cstring2); } this.ContText.text = this.ContStr.ToString(); if (recordByKey.EquipInfo > 0) { this.ContText.fontSize = 16; } this.ContText.SetAllDirty(); this.ContText.cachedTextGenerator.Invalidate(); this.ContText.cachedTextGeneratorForLayout.Invalidate(); if (this.ContStr.Length > 0) { num = this.ContText.preferredHeight; } this.EffectTrans.anchoredPosition = new Vector2(this.OriEffPos.x, this.OriEffPos.y - num); if (recordByKey.EquipInfo > 0) { this.TipObj.SetActive(true); this.TipText.text = instance.mStringTable.GetStringByID((uint)recordByKey.EquipInfo); this.TipRect.sizeDelta = new Vector2(this.TipRect.sizeDelta.x, this.TipText.preferredHeight); } } else { this.KindText.text = instance.mStringTable.GetStringByID(878u); } this.OwnStr.ClearString(); this.OwnStr.Append("("); if (Num == -1) { this.OwnStr.IntToFormat((long)instance.GetCurItemQuantity(ItemID, Rank), 1, true); } else { this.OwnStr.IntToFormat((long)Num, 1, true); } this.OwnStr.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(79u)); this.OwnStr.Append(")"); this.OwnText.text = this.OwnStr.ToString(); this.OwnText.SetAllDirty(); this.OwnText.cachedTextGenerator.Invalidate(); } else if (recordByKey.EquipKind == 20) { this.KindText.transform.localPosition = this.LevelText.transform.localPosition; this.ContText.gameObject.SetActive(true); this.ContText.text = instance.mStringTable.GetStringByID((uint)recordByKey.EquipInfo); this.KindText.text = instance.mStringTable.GetStringByID(879u); this.OwnStr.ClearString(); this.OwnStr.Append("("); if (Num == -1) { this.OwnStr.IntToFormat((long)instance.GetCurItemQuantity(ItemID, Rank), 1, true); } else { this.OwnStr.IntToFormat((long)Num, 1, true); } this.OwnStr.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(79u)); this.OwnStr.Append(")"); this.OwnText.text = this.OwnStr.ToString(); this.OwnText.SetAllDirty(); this.OwnText.cachedTextGenerator.Invalidate(); } this.NameStr.ClearString(); GameConstants.GetColoredLordEquipString(this.NameStr, ref recordByKey, Rank); this.NameText.text = this.NameStr.ToString(); this.NameText.SetAllDirty(); this.NameText.cachedTextGenerator.Invalidate(); this.EffSize = 0; if (flag) { if (flag2 && this._HideEquipVal) { this.ContText.gameObject.SetActive(true); this.ContText.text = instance.mStringTable.GetStringByID((uint)recordByKey.EquipInfo); } else { this.EffectTrans.gameObject.SetActive(true); this.effList.Clear(); LordEquipData.GetEffectList(recordByKey.EquipKey, Rank, this.effList); this.EffSize = this.effList.Count; int num2 = 0; for (int j = 0; j < this.EffSize; j++) { if (this.effList[j].isNewGemEffect <= 0) { this.EffNumStr[num2].ClearString(); Effect recordByKey3 = instance.EffectData.GetRecordByKey(this.effList[j].EffectID); this.EffTitleText[num2].text = instance.mStringTable.GetStringByID((uint)recordByKey3.InfoID); if (recordByKey3.ValueID == 0) { this.EffNumStr[num2].IntToFormat((long)this.effList[j].EffectValue, 1, false); this.EffNumStr[num2].AppendFormat("{0}"); } else { this.EffNumStr[num2].FloatToFormat((float)this.effList[j].EffectValue / 100f, 2, false); if (GUIManager.Instance.IsArabic) { this.EffNumStr[num2].AppendFormat("%{0}"); } else { this.EffNumStr[num2].AppendFormat("{0}%"); } } this.EffNumText[num2].text = this.EffNumStr[num2].ToString(); this.EffNumText[num2].SetAllDirty(); this.EffNumText[num2].cachedTextGenerator.Invalidate(); if (num2 >= 3) { this.EffTitleText[num2].gameObject.SetActive(true); this.EffNumText[num2].gameObject.SetActive(true); } num2++; } } this.EffSize = num2; if (this.EffSize >= 4) { this.LinTrans[1].gameObject.SetActive(true); } else if (this.EffSize == 6) { this.LinTrans[2].gameObject.SetActive(true); } } } if (this.EffSize <= 1) { this.LinTrans[0].gameObject.SetActive(false); } float num3 = -this.EffectTrans.anchoredPosition.y; if (this.TimeExtendHeight > 0f) { this.ContTextRect.anchoredPosition = new Vector2(this.ContTextRect.anchoredPosition.x, this.ContTextRect.anchoredPosition.y - this.TimeExtendHeight); this.EffectTrans.anchoredPosition = new Vector2(this.EffectTrans.anchoredPosition.x, this.EffectTrans.anchoredPosition.y - this.TimeExtendHeight); } num = this.ContText.preferredHeight; if (num > this.ContText.rectTransform.sizeDelta.y) { this.ContText.rectTransform.sizeDelta = new Vector2(this.ContText.rectTransform.sizeDelta.x, num); } if (this.EffSize > 0) { num3 += -this.EffectRect[this.EffSize - 1].anchoredPosition.y + this.EffectRect[this.EffSize - 1].sizeDelta.y + this.TimeExtendHeight; } else { num3 = -this.ContTextRect.anchoredPosition.y; num3 += num; } if (this.TipObj.activeSelf) { this.TipRect.anchoredPosition = new Vector2(this.TipRect.anchoredPosition.x, -num3); num3 += this.TipRect.sizeDelta.y; } num3 += 16f; if (num3 < 193f) { num3 = 193f; } this.m_RectTransform.sizeDelta = new Vector2(this.m_RectTransform.sizeDelta.x, num3); this.m_ButtonHint = hint; this.m_ButtonHint.GetTipPosition(this.m_RectTransform, UIButtonHint.ePosition.Original, null); this.m_RectTransform.gameObject.SetActive(true); this.Canvasgroup.alpha = 1f; UILEBtn component = hint.transform.GetComponent <UILEBtn>(); if (component != null && component.m_Handler == null) { int soundIndex = (int)component.SoundIndex; if ((soundIndex & 64) == 0) { AudioManager.Instance.PlayUISFXIndex((UIClickSoundIndex)soundIndex); } else if ((soundIndex & 64) > 0) { int enumSoundIndex = soundIndex & -65; AudioManager.Instance.PlayUISFXIndex((UIClickSoundIndex)enumSoundIndex); } } }