// 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: 0x06001DEB RID: 7659 RVA: 0x00386954 File Offset: 0x00384B54 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(1).GetComponent <UIText>(); component.font = ttffont; component.text = string.Empty; component.SetCheckArabic(true); this.AllTextObject[0] = component; Image component2 = this.AGS_Form.GetChild(1).GetComponent <Image>(); component2.sprite = this.door.LoadSprite("UI_main_close_base"); component2.material = this.door.LoadMaterial(); component2.enabled = !GUIManager.Instance.bOpenOnIPhoneX; component2 = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <Image>(); component2.sprite = this.door.LoadSprite("UI_main_close"); component2.material = this.door.LoadMaterial(); UIButton component3 = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIButton>(); component3.m_Handler = this; component3.m_BtnID1 = 99; component3.m_EffectType = e_EffectType.e_Scale; component3.transition = Selectable.Transition.None; component3 = this.AGS_Form.GetChild(2).GetComponent <UIButton>(); component3.m_Handler = this; component3.m_BtnID1 = 4; component3.m_EffectType = e_EffectType.e_Scale; component3 = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <UIButton>(); component3.m_Handler = this; component3.m_BtnID1 = 2; component3.m_EffectType = e_EffectType.e_Scale; component = this.AGS_Form.GetChild(4).GetChild(0).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(9702u); this.AllTextObject[1] = component; component3 = this.AGS_Form.GetChild(4).GetChild(1).GetComponent <UIButton>(); component3.m_Handler = this; component3.m_BtnID1 = 1; component3.m_EffectType = e_EffectType.e_Scale; component = this.AGS_Form.GetChild(4).GetChild(1).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(929u); this.AllTextObject[2] = component; component3 = this.AGS_Form.GetChild(5).GetChild(8).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Scale; GameConstants.SetPivot(this.AGS_Form.GetChild(5).GetChild(8).GetComponent <RectTransform>(), new Vector2(0.5f, 0.5f)); component3 = this.AGS_Form.GetChild(5).GetChild(9).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Scale; GameConstants.SetPivot(this.AGS_Form.GetChild(5).GetChild(9).GetComponent <RectTransform>(), new Vector2(0.5f, 0.5f)); component3 = this.AGS_Form.GetChild(5).GetChild(10).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Scale; GameConstants.SetPivot(this.AGS_Form.GetChild(5).GetChild(10).GetComponent <RectTransform>(), new Vector2(0.5f, 0.5f)); component3 = this.AGS_Form.GetChild(5).GetChild(11).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Scale; GameConstants.SetPivot(this.AGS_Form.GetChild(5).GetChild(11).GetComponent <RectTransform>(), new Vector2(0.5f, 0.5f)); component3 = this.AGS_Form.GetChild(5).GetChild(12).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Scale; GameConstants.SetPivot(this.AGS_Form.GetChild(5).GetChild(12).GetComponent <RectTransform>(), new Vector2(0.5f, 0.5f)); component3 = this.AGS_Form.GetChild(5).GetChild(13).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Scale; GameConstants.SetPivot(this.AGS_Form.GetChild(5).GetChild(13).GetComponent <RectTransform>(), new Vector2(0.5f, 0.5f)); component3 = this.AGS_Form.GetChild(5).GetChild(14).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Scale; GameConstants.SetPivot(this.AGS_Form.GetChild(5).GetChild(14).GetComponent <RectTransform>(), new Vector2(0.5f, 0.5f)); component3 = this.AGS_Form.GetChild(5).GetChild(15).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Scale; GameConstants.SetPivot(this.AGS_Form.GetChild(5).GetChild(15).GetComponent <RectTransform>(), new Vector2(0.5f, 0.5f)); for (int i = 0; i < 8; i++) { UILEBtn component4 = this.AGS_Form.GetChild(5).GetChild(16 + i).GetComponent <UILEBtn>(); component4.m_Handler = this; component4.gameObject.SetActive(false); this.LEquipLight[i] = this.AGS_Form.GetChild(5).GetChild(i + 8).GetChild(0).GetComponent <Image>(); } component = this.AGS_Form.GetChild(6).GetChild(1).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(1048u); this.AllTextObject[3] = component; this.AGS_ScrollPanel = this.AGS_Form.GetChild(6).GetChild(2).GetComponent <ScrollPanel>(); component = this.AGS_Form.GetChild(6).GetChild(3).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = string.Empty; this.AllTextObject[4] = component; component = this.AGS_Form.GetChild(6).GetChild(3).GetChild(1).GetComponent <UIText>(); component.font = ttffont; component.text = string.Empty; this.AllTextObject[5] = component; component = this.AGS_Form.GetChild(6).GetChild(3).GetChild(2).GetComponent <UIText>(); component.font = ttffont; component.text = string.Empty; component.alignment = TextAnchor.UpperLeft; this.AllTextObject[6] = component; component3 = this.AGS_Form.GetChild(6).GetChild(3).GetChild(3).GetComponent <UIButton>(); component3.m_Handler = this; component3.transition = Selectable.Transition.None; component3.m_EffectType = e_EffectType.e_Normal; component3.m_BtnID1 = 101; UIButtonHint uibuttonHint = component3.gameObject.AddComponent <UIButtonHint>(); uibuttonHint.m_eHint = EUIButtonHint.DownUpHandler; uibuttonHint.m_Handler = this; this.AGS_Forging = this.AGS_Form.GetChild(7).GetChild(0).GetComponent <UISpritesArray>(); this.ForgingIcon = this.AGS_Form.GetChild(7).GetComponent <RectTransform>(); this.ForgingIcon.GetComponent <Image>().color = new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, 120); GameObject gameObject = new GameObject("TextSizeCount"); this.BestHeight = gameObject.AddComponent <UIText>(); this.BestHeight.font = ttffont; this.BestHeight.fontSize = 17; this.BestHeight.text = string.Empty; this.BestHeight.rectTransform.transform.position = new Vector3(1000f, 0f, 0f); if (UILordEquipSetEdit.showingSet == null) { UILordEquipSetEdit.showingSet = new LordEquipSet(); } if (UILordEquipSetEdit.SetDataIndex == null) { UILordEquipSetEdit.SetDataIndex = new int[8]; } this.isLoading = true; LordEquipData.CheckEquipExpired(); }