// Token: 0x0600210F RID: 8463 RVA: 0x003ED74C File Offset: 0x003EB94C public void Refresh_FontTexture() { if (this.text_Title != null && this.text_Title.enabled) { this.text_Title.enabled = false; this.text_Title.enabled = true; } if (this.text_Info != null && this.text_Info.enabled) { this.text_Info.enabled = false; this.text_Info.enabled = true; } for (int i = 0; i < 5; i++) { if (this.text_Str[i] != null && this.text_Str[i].enabled) { this.text_Str[i].enabled = false; this.text_Str[i].enabled = true; } } for (int j = 0; j < 2; j++) { if (this.btn_Itme[j] != null && this.btn_Itme[j].enabled) { this.btn_Itme[j].Refresh_FontTexture(); } } if (this.btn_Item_L != null && this.btn_Item_L.enabled) { LordEquipData.ResetLordEquipFont(this.btn_Item_L); } }
// Token: 0x06001DFC RID: 7676 RVA: 0x003889A8 File Offset: 0x00386BA8 public static int CheckHaveEquipKind(byte Kind, bool CheckRole) { bool flag = false; for (int i = 0; i < (int)DataManager.Instance.RoleAttr.LordEquipBagSize; i++) { if (LordEquipData.Instance().LordEquip[i].ItemID != 0) { Equip recordByKey = DataManager.Instance.EquipTable.GetRecordByKey(LordEquipData.Instance().LordEquip[i].ItemID); if (recordByKey.EquipKind == Kind) { if (!CheckRole || !UILordEquipSetEdit.showingSet.isInSet(LordEquipData.Instance().LordEquip[i].SerialNO)) { flag = true; if (LordEquipData.Instance().LordEquip[i].SerialNO != DataManager.Instance.RoleAttr.LordEquipEventData.SerialNO) { if (DataManager.Instance.RoleAttr.Level >= recordByKey.NeedLv) { return(1); } } } } } } return((!flag) ? 0 : 2); }
// Token: 0x06001F6D RID: 8045 RVA: 0x003C0F1C File Offset: 0x003BF11C public override void OnOpen(int arg1, int arg2) { this.door = (Door)GUIManager.Instance.FindMenu(EGUIWindow.Door); this.DM = DataManager.Instance; if (this.DM.mLordEquip == null) { this.DM.mLordEquip = LordEquipData.Instance(); } this.SPHeight = new List <float>(); Font ttffont = GUIManager.Instance.GetTTFFont(); this.AGS_Form = base.transform; UIText component = this.AGS_Form.GetChild(0).GetChild(2).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(8600u); this.AGS_ScrollPanel = this.AGS_Form.GetChild(1).GetComponent <ScrollPanel>(); component = this.AGS_Form.GetChild(2).GetChild(0).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = string.Empty; UIButton component2 = this.AGS_Form.GetChild(2).GetChild(0).GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component = this.AGS_Form.GetChild(2).GetChild(0).GetChild(1).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(924u); component2 = this.AGS_Form.GetChild(2).GetChild(0).GetChild(2).GetComponent <UIButton>(); component2.m_Handler = this; component = this.AGS_Form.GetChild(2).GetChild(0).GetChild(2).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(925u); this.CloseText = StringManager.Instance.SpawnString(150); this.CloseText.StringToFormat(this.DM.mStringTable.GetStringByID(8600u)); this.CloseText.AppendFormat(this.DM.mStringTable.GetStringByID(3775u)); component = this.AGS_Form.GetChild(3).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.CloseText.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); component2 = this.AGS_Form.GetChild(3).GetChild(1).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 3; component = this.AGS_Form.GetChild(3).GetChild(1).GetChild(0).GetComponent <UIText>(); component.font = ttffont; component.text = this.DM.mStringTable.GetStringByID(3776u); component2 = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_BtnID1 = 99; Image component3 = this.AGS_Form.GetChild(4).GetComponent <Image>(); component3.sprite = this.door.LoadSprite("UI_main_close_base"); component3.material = this.door.LoadMaterial(); component3.enabled = !GUIManager.Instance.bOpenOnIPhoneX; component3 = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <Image>(); component3.sprite = this.door.LoadSprite("UI_main_close"); component3.material = this.door.LoadMaterial(); this.NO = this.AGS_Form.GetChild(3).GetComponent <RectTransform>(); this.isLoading = true; }
// Token: 0x06001B4F RID: 6991 RVA: 0x003067D4 File Offset: 0x003049D4 public override void OnOKCancelBoxClick(bool bOK, int arg1, int arg2) { if (bOK) { if (arg1 == 1) { LordEquipData.CancelCombine(); } } }
// Token: 0x06001F4E RID: 8014 RVA: 0x003BDC4C File Offset: 0x003BBE4C private void Refresh_FontTexture() { if (!this.bFirstInit && this.m_PanelObject != null) { for (int i = 0; i < this.m_PanelObject.Length; i++) { if (this.m_PanelObject[i].m_NumText != null && this.m_PanelObject[i].m_NumText.enabled) { this.m_PanelObject[i].m_NumText.enabled = false; this.m_PanelObject[i].m_NumText.enabled = true; } for (int j = 0; j < 3; j++) { if (this.m_PanelObject[i].m_ItemNumText != null && this.m_PanelObject[i].m_ItemNumText[j] != null && this.m_PanelObject[i].m_ItemNumText[j].enabled) { this.m_PanelObject[i].m_ItemNumText[j].enabled = false; this.m_PanelObject[i].m_ItemNumText[j].enabled = true; } if (this.m_PanelObject[i].m_ItemHIBtn[j] != null) { this.m_PanelObject[i].m_ItemHIBtn[j].Refresh_FontTexture(); } if (this.m_PanelObject[i].m_ItemLEBtn[j] != null) { LordEquipData.ResetLordEquipFont(this.m_PanelObject[i].m_ItemLEBtn[j]); } } } } if (this.m_TimeText != null && this.m_TimeText.enabled) { this.m_TimeText.enabled = false; this.m_TimeText.enabled = true; } if (this.m_OverText != null && this.m_OverText.enabled) { this.m_OverText.enabled = false; this.m_OverText.enabled = true; } if (this.m_TitleText1 != null && this.m_TitleText1.enabled) { this.m_TitleText1.enabled = false; this.m_TitleText1.enabled = true; } if (this.m_TitleText2 != null && this.m_TitleText2.enabled) { this.m_TitleText2.enabled = false; this.m_TitleText2.enabled = true; } }
// Token: 0x06001F73 RID: 8051 RVA: 0x003C1518 File Offset: 0x003BF718 public void OnButtonClick(UIButton sender) { int btnID = sender.m_BtnID1; switch (btnID) { case 1: { if (this.DM.RoleAttr.LordEquipEventData.SerialNO != 0u) { for (int i = 0; i < 8; i++) { if (LordEquipData.Instance().LordEquipSets[sender.m_BtnID2].SerialNO[i] == this.DM.RoleAttr.LordEquipEventData.SerialNO) { GUIManager.Instance.OpenOKCancelBox(this, this.DM.mStringTable.GetStringByID(5893u), this.DM.mStringTable.GetStringByID(9708u), sender.m_BtnID2, 0, null, null); return; } } } MessagePacket messagePacket = new MessagePacket(1024); messagePacket.Protocol = Protocol._MSG_REQUEST_LORDEQUIP_CHANGE; messagePacket.AddSeqId(); messagePacket.Add((byte)sender.m_BtnID2); messagePacket.Send(false); GUIManager.Instance.ShowUILock(EUILock.LordInfo); break; } case 2: UILordEquipSetEdit.loadSet(sender.m_BtnID2); this.door.OpenMenu(EGUIWindow.UI_LordEquipSetEdit, 0, 0, false); break; case 3: GUIManager.Instance.OpenTechTree(116, true); break; default: if (btnID == 99) { this.door.CloseMenu(false); } break; } }
// Token: 0x06001F71 RID: 8049 RVA: 0x003C137C File Offset: 0x003BF57C private void AfterLoader() { if (this.Equips == null) { this.Equips = new RectTransform[8]; } LordEquipData.Instance().CheckQuickSets(); for (int i = 0; i < this.SetNames.Length; i++) { this.SetNames[i] = StringManager.Instance.SpawnString(100); } this.SPHeight.Clear(); this.AGS_ScrollPanel.IntiScrollPanel(445f, 0f, 0f, this.SPHeight, 8, this); this.reFlashScrollPanel(); this.AGS_ScrollPanel.GoTo(0, UISetSelect.memPos); this.AGS_ScrollPanel.gameObject.SetActive(true); this.isLoading = false; }
// Token: 0x06001DF8 RID: 7672 RVA: 0x00387BE0 File Offset: 0x00385DE0 public static void loadSet(int index) { UILordEquipSetEdit.SetIdx = index; if (UILordEquipSetEdit.showingSet == null) { UILordEquipSetEdit.showingSet = new LordEquipSet(); } if (UILordEquipSetEdit.SetDataIndex == null) { UILordEquipSetEdit.SetDataIndex = new int[8]; } for (int i = 0; i < UILordEquipSetEdit.showingSet.SerialNO.Length; i++) { UILordEquipSetEdit.showingSet.SerialNO[i] = LordEquipData.Instance().LordEquipSets[index].SerialNO[i]; } for (int j = 0; j < UILordEquipSetEdit.showingSet.SerialNO.Length; j++) { if (UILordEquipSetEdit.showingSet.SerialNO[j] != 0u) { bool flag = false; for (int k = 0; k < (int)DataManager.Instance.RoleAttr.LordEquipBagSize; k++) { if (LordEquipData.Instance().LordEquip[k].SerialNO == UILordEquipSetEdit.showingSet.SerialNO[j]) { UILordEquipSetEdit.SetDataIndex[j] = k; flag = true; } } if (!flag) { UILordEquipSetEdit.showingSet.SerialNO[j] = 0u; LordEquipData.Instance().LordEquipSets[index].SerialNO[j] = 0u; } } } if (UILordEquipSetEdit.showingSet.Name == null) { UILordEquipSetEdit.showingSet.Name = StringManager.Instance.SpawnString(30); } UILordEquipSetEdit.showingSet.Name.ClearString(); UILordEquipSetEdit.showingSet.Name.Append(LordEquipData.Instance().LordEquipSets[index].Name); UILordEquipSetEdit.ThingsChanged = false; }
// Token: 0x06001F72 RID: 8050 RVA: 0x003C1434 File Offset: 0x003BF634 private void reFlashScrollPanel() { this.SPHeight.Clear(); TechDataTbl recordByKey = this.DM.TechData.GetRecordByKey(116); LordEquipData.Instance().LordEquipSetsCount = (int)DataManager.Instance.GetTechLevel(116); for (int i = 0; i < LordEquipData.Instance().LordEquipSetsCount; i++) { if (LordEquipData.Instance().LordEquipSets[i] == null) { LordEquipData.Instance().LordEquipSets[i] = new LordEquipSet(); LordEquipData.Instance().LordEquipSets[i].Name = StringManager.Instance.SpawnString(30); } this.SPHeight.Add(94f); } if (LordEquipData.Instance().LordEquipSetsCount < (int)recordByKey.LevelMax) { this.SPHeight.Add(94f); } this.AGS_ScrollPanel.AddNewDataHeight(this.SPHeight, false, true); }
// Token: 0x06001ED8 RID: 7896 RVA: 0x003B03C0 File Offset: 0x003AE5C0 public void OnButtonClick(UIButton sender) { if (sender.m_BtnID1 == 1) { Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; if (sender.m_BtnID2 == 2) { if (this.GM.BuildingData.GetBuildData(15, 0).Level < 1) { this.GM.AddHUDMessage(this.DM.mStringTable.GetStringByID(7533u), 255, true); return; } if (this.DM.mLordEquip == null) { this.DM.mLordEquip = LordEquipData.Instance(); } if (door) { this.DM.mLordEquip.OpenForgeSet(this.SetIndex, 4); } } else if (sender.m_BtnID2 == 3) { if (this.OpenData.Count > 0) { int index = this.OpenData.Count - 1; this.RefreshList(this.OpenData[index].OpenKind, this.OpenData[index].OpenID); this.OpenData.RemoveAt(index); } else if (BattleController.IsGambleMode) { GamblingManager.Instance.CloseMenu(false); } else if (door) { door.CloseMenu(false); } } } }
// Token: 0x06001DF9 RID: 7673 RVA: 0x00387D5C File Offset: 0x00385F5C public void ReCheckItem() { for (int i = 0; i < UILordEquipSetEdit.showingSet.SerialNO.Length; i++) { if (UILordEquipSetEdit.showingSet.SerialNO[i] != 0u) { bool flag = false; 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; flag = true; } } if (!flag) { UILordEquipSetEdit.showingSet.SerialNO[i] = 0u; } } } }
// Token: 0x06001173 RID: 4467 RVA: 0x001E8F74 File Offset: 0x001E7174 public override void Update(byte meg) { DataManager instance = DataManager.Instance; BuildsData buildingData = GUIManager.Instance.BuildingData; switch (meg) { case 0: this.PromptRender.enabled = false; this.LevelRender.enabled = false; this.UpgradeRender.gameObject.SetActive(false); return; case 1: this.UpdateTime = 0f; MotionEffect.SetStack(this.OpenUIMotion); GUIManager.Instance.ShowUILock(EUILock.Normal); break; case 2: if (this.EffectBuilding == null) { Vector3 localPosition = this.spriteRender.transform.localPosition; if (buildingData.AllBuildsData[(int)this.Index].BuildID == 8) { localPosition.y = 20.5f; this.EffectBuilding = ParticleManager.Instance.Spawn(345, null, localPosition, 0.8f, true, false, true); } else { localPosition.y += 8.9f; this.EffectBuilding = ParticleManager.Instance.Spawn(293, null, localPosition, 0.8f, true, false, true); } Quaternion localRotation = this.EffectBuilding.transform.localRotation; localRotation.eulerAngles = new Vector3(0f, 180f, 0f); this.EffectBuilding.transform.localRotation = localRotation; } this.markspriteRender.enabled = false; buildingData.GetBuildSprite(this.Index, this.spriteRender, this.LevelRender); this.Update(5); this.markspriteRender.enabled = true; buildingData.GetBuildSprite(this.Index, this.spriteRender, this.LevelRender); break; case 3: case 4: if (this.EffectBuilding != null) { ParticleManager.Instance.DeSpawn(this.EffectBuilding); this.EffectBuilding = null; } this.markspriteRender.enabled = false; buildingData.GetBuildSprite(this.Index, this.spriteRender, this.LevelRender); if (buildingData.AllBuildsData[(int)this.Index].BuildID == 11) { buildingData.ManorGride[6] = this.spriteRender.transform; buildingData.GuideParm = this.Index; NewbieManager.CheckTroopMemory(false); } this.Update(5); this.Update(9); if (!this.UpgradeRender.gameObject.activeSelf) { this.UpgradeRender.gameObject.gameObject.SetActive(true); } break; case 5: { this.PromptRender.transform.localScale = Vector3.one; this.PromptRender.sprite = null; Vector3 localPosition2 = new Vector3(0f, this.spriteRender.renderer.bounds.size.y * 0.0703125f, 0f); if (buildingData.AllBuildsData.Length > (int)this.Index) { if (!instance.MySysSetting.bShowTrainingIdle) { ushort buildID = buildingData.AllBuildsData[(int)this.Index].BuildID; switch (buildID) { case 12: this.PromptRender.transform.localScale *= 0.8f; if (instance.TrapHospitalTotal > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_01"); } break; default: if (buildID == 7) { if (instance.HospitalTotal > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_01"); } } break; case 14: if (instance.TotalSoldier_Embassy > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_11"); } break; case 16: if (GUIManager.Instance.BuildingData.GetBuildData(8, 0).Level < 17) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else if (instance.m_CryptData.money > 0 && instance.m_CryptData.startTime + (long)((ulong)GameConstants.CryptSecends[(int)instance.m_CryptData.kind]) - instance.ServerTime <= 0L) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_06"); } break; case 18: if (instance.PrisonerNum > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("imprisoned_lords"); localPosition2.Set(-0.33f, 1.38f, 0f); } break; case 20: if (PetManager.Instance.CheckPetListBuildMark()) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } break; case 23: if (PetManager.Instance.m_AllPetTrainState == PetManager.EPetTrainDataState.CanReceive) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } break; } } else { switch (buildingData.AllBuildsData[(int)this.Index].BuildID) { case 6: if (!instance.queueBarData[10].bActive && buildingData.AllBuildsData[(int)this.Index].Level > 0) { uint num = instance.AttribVal.TotalOuterSoldier + (uint)instance.SoldierTotal; for (int i = 0; i < 16; i++) { num += instance.mSoldier_Hospital[i]; } if (num < 4200000000u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_02"); } } break; case 7: if (instance.HospitalTotal > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_01"); } break; case 10: if (!instance.queueBarData[1].bActive && buildingData.AllBuildsData[(int)this.Index].Level > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_04"); } break; case 12: this.PromptRender.transform.localScale *= 0.8f; if (instance.TrapHospitalTotal > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_01"); } else if (!instance.queueBarData[14].bActive && (instance.GetTechLevel(11) > 0 || instance.GetTechLevel(12) > 0 || instance.GetTechLevel(13) > 0) && instance.AttribVal.GetEffectBaseVal(GATTR_ENUM.EGA_TRAP_CAPACITY) > instance.TrapTotal) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_03"); } break; case 14: if (instance.TotalSoldier_Embassy > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_11"); } break; case 16: if (GUIManager.Instance.BuildingData.GetBuildData(8, 0).Level < 17) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else if (instance.m_CryptData.money == 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_05"); } else if (instance.m_CryptData.startTime + (long)((ulong)GameConstants.CryptSecends[(int)instance.m_CryptData.kind]) - instance.ServerTime <= 0L) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_06"); } break; case 18: if (instance.PrisonerNum > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("imprisoned_lords"); localPosition2.Set(-0.33f, 1.38f, 0f); } break; case 20: if (PetManager.Instance.CheckPetListBuildMark()) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } break; case 22: if (!instance.queueBarData[34].bActive && buildingData.AllBuildsData[(int)this.Index].Level > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_10"); } break; case 23: if (PetManager.Instance.m_AllPetTrainState == PetManager.EPetTrainDataState.CanReceive) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } else if (PetManager.Instance.m_AllPetTrainState == PetManager.EPetTrainDataState.Empty && buildingData.AllBuildsData[(int)this.Index].Level > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_10"); } break; } } if (instance.MySysSetting.bShowEquipUp && !instance.queueBarData[18].bActive && buildingData.AllBuildsData[(int)this.Index].BuildID == 15) { if (LordEquipData.Instance().isEquipEvoReady) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } } else if (buildingData.AllBuildsData[(int)this.Index].BuildID == 8 && buildingData.castleSkin.CheckShowCastleSkin() && buildingData.castleSkin.CheckShowExclamation(true)) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); localPosition2.Set(0.64f, 2.51f, 0f); } } else { this.UpdateExtendBuildPrompt(this.Index, ref localPosition2); } if (this.PromptRender.sprite != null) { this.PromptRender.transform.localPosition = localPosition2; this.PromptRender.enabled = this.spriteRender.enabled; } else { this.PromptRender.enabled = false; } break; } case 8: if (instance.MySysSetting.bShowBuildUp && this.CheckUpdateRes <= 1 && buildingData.BuildingManorID == 0 && (int)this.Index < buildingData.AllBuildsData.Length && buildingData.AllBuildsData[(int)this.Index].BuildID > 0 && buildingData.AllBuildsData[(int)this.Index].Level < buildingData.BuildlevelupCheck[(int)buildingData.AllBuildsData[(int)this.Index].BuildID]) { this.UpgradeRender.enabled = true; } else { this.UpgradeRender.enabled = false; } break; case 9: if (!instance.MySysSetting.bShowBuildUp || buildingData.AllBuildsData[(int)this.Index].BuildID == 0 || buildingData.BuildingManorID > 0 || ((int)this.Index < buildingData.AllBuildsData.Length && buildingData.AllBuildsData[(int)this.Index].BuildID == 16 && buildingData.AllBuildsData[(int)this.Index].Level == 9)) { this.UpgradeRender.enabled = false; } else { if (buildingData.AllBuildsData[(int)this.Index].Level < 25) { this.CheckUpdateRes = buildingData.CheckLevelupRule(buildingData.AllBuildsData[(int)this.Index].BuildID, buildingData.AllBuildsData[(int)this.Index].Level + 1); } else { this.CheckUpdateRes = 2; } if (this.CheckUpdateRes == 0) { this.UpgradeRender.enabled = true; } else { this.UpgradeRender.enabled = false; } } break; case 12: this.SetSprite(this.Index, 0); break; } if ((int)this.Index < buildingData.AllBuildsData.Length && buildingData.AllBuildsData[(int)this.Index].BuildID > 0) { this.LevelRender.enabled = !this.markspriteRender.enabled; } }
// Token: 0x06002BCC RID: 11212 RVA: 0x004828F4 File Offset: 0x00480AF4 public override void SendImmediate() { LordEquipData.QuickCombineinForge(); }
// Token: 0x06001B58 RID: 7000 RVA: 0x00306DF8 File Offset: 0x00304FF8 public override void OnOpen(int arg1, int arg2) { this.DM = DataManager.Instance; this.GUIM = GUIManager.Instance; if (this.DM.mLordEquip == null) { this.DM.mLordEquip = LordEquipData.Instance(); } if (!this.DM.mLordEquip.LoadLordEquip(false)) { this.bEqDataReq = true; if (!this.DM.mLordEquip.LoadLEMaterial(false)) { this.bMaterialDataReq = true; } } for (int i = 0; i < 6; i++) { this.tmpImg_Items[i] = new Image[4]; this.text_ItemEffect[i] = new UIText[6]; this.text_ItemEffect_V[i] = new UIText[6]; this.Cstr_Effect[i] = new CString[6]; this.Cstr_Effect_V[i] = new CString[6]; for (int j = 0; j < 6; j++) { this.Cstr_Effect[i][j] = StringManager.Instance.SpawnString(30); this.Cstr_Effect_V[i][j] = StringManager.Instance.SpawnString(30); } this.Cstr_ItemLv[i] = StringManager.Instance.SpawnString(100); this.Cstr_ItemName[i] = StringManager.Instance.SpawnString(30); } this.door = (this.GUIM.FindMenu(EGUIWindow.Door) as Door); this.GameT = base.gameObject.transform; this.SArray = this.GameT.GetComponent <UISpritesArray>(); this.m_Mat = this.door.LoadMaterial(); this.tmplistEquip.Clear(); this.TableCount = this.DM.ActivitylistEquip.Count; for (int k = 0; k < this.TableCount; k++) { this.tmplistEquip.Add(this.DM.ActivitylistEquip[k]); } CString cstring = StringManager.Instance.StaticString1024(); cstring.Append("UI/UI_forge_equip_pop"); this.mAB = AssetManager.GetAssetBundle(cstring, out this.mABeKey); if (this.mAB != null) { this.m_ListMat = (this.mAB.Load("UI_forge_equip_pop_m", typeof(Material)) as Material); UnityEngine.Object[] array = this.mAB.LoadAll(typeof(Sprite)); for (int l = 0; l < this.TableCount; l++) { cstring.ClearString(); this.tmpME = this.DM.MallEquipmantTable.GetRecordByKey(this.tmplistEquip[l]); cstring.IntToFormat((long)this.tmpME.EquipIcon, 3, false); cstring.AppendFormat("UI_fc_sbut_{0}"); for (int m = 0; m < array.Length; m++) { if (DataManager.CompareStr(array[m].name, cstring) == 0) { this.tmpSpritelist.Add((Sprite)array[m]); } } } } this.Tmp = this.GameT.GetChild(0).GetChild(0).GetChild(0); this.text_tmpStr[0] = this.Tmp.GetComponent <UIText>(); this.text_tmpStr[0].font = this.TTFont; this.text_tmpStr[0].text = this.DM.mStringTable.GetStringByID(7403u); this.Tmp = this.GameT.GetChild(1); this.BG = this.Tmp.GetComponent <Image>(); this.Tmp = this.GameT.GetChild(1).GetChild(0); this.text_Select = this.Tmp.GetComponent <UIText>(); this.text_Select.font = this.TTFont; this.text_Select.text = this.DM.mStringTable.GetStringByID(7428u); this.Tmp = this.GameT.GetChild(2); Transform child; for (int n = 0; n < 6; n++) { child = this.Tmp.GetChild(2 + n); this.btn_RC[n] = child.GetComponent <RectTransform>(); this.btn_Color[n] = child.GetComponent <UIButton>(); this.btn_Color[n].m_Handler = this; this.btn_Color[n].m_BtnID1 = 1 + n; this.btn_Color[n].m_EffectType = e_EffectType.e_Scale; this.btn_Color[n].transition = Selectable.Transition.None; this.Img_RC[n] = child.GetChild(0).GetComponent <RectTransform>(); } this.SelectColorT = this.Tmp.GetChild(2).GetChild(1); this.Img_SelectColor = this.Tmp.GetChild(2).GetChild(1).GetComponent <Image>(); if (this.DM.mLordEquip != null && this.DM.mLordEquip.IsCheckTechLevel()) { this.mColor = 5; for (int num = 0; num < 5; num++) { this.btn_RC[num].sizeDelta = new Vector2(51f, 51f); this.btn_RC[num].anchoredPosition = new Vector2(this.btn_RC[num].anchoredPosition.x - 10f - (float)(6 * num), this.btn_RC[num].anchoredPosition.y); this.Img_RC[num].sizeDelta = new Vector2(51f, 51f); } this.Img_SelectColor.rectTransform.sizeDelta = new Vector2(64f, 64f); this.btn_Color[5].gameObject.SetActive(true); } child = this.Tmp.GetChild(0).GetChild(0); this.text_tmpStr[1] = child.GetComponent <UIText>(); this.text_tmpStr[1].font = this.TTFont; this.text_tmpStr[1].text = this.DM.mStringTable.GetStringByID(7407u); this.Tmp = this.Tmp.GetChild(1).GetChild(0); this.text_tmpStr[2] = this.Tmp.GetComponent <UIText>(); this.text_tmpStr[2].font = this.TTFont; this.text_tmpStr[2].text = this.DM.mStringTable.GetStringByID(7429u); this.Tmp = this.GameT.GetChild(3).GetChild(0); this.m_ScrollPanel_Activity = this.Tmp.GetComponent <ScrollPanel>(); this.m_ScrollPanel_Activity.m_ScrollPanelID = 1; this.Tmp = this.GameT.GetChild(3).GetChild(1).GetChild(0); UIButton component = this.Tmp.GetComponent <UIButton>(); component.m_BtnID1 = 8; this.tmpImg = this.GameT.GetChild(3).GetChild(1).GetChild(0).GetChild(0).GetComponent <Image>(); if (this.m_AssetBundleKey != 0 && this.m_ListMat != null) { this.tmpImg.material = this.m_ListMat; } this.Tmp = this.GameT.GetChild(3).GetChild(1).GetChild(0).GetChild(0).GetChild(0); UIText component2 = this.Tmp.GetComponent <UIText>(); component2.font = this.TTFont; for (int num2 = 0; num2 < this.TableCount; num2++) { this.tmplist_A.Add(79f); } this.m_ScrollPanel_Activity.IntiScrollPanel(363f, 0f, 0f, this.tmplist_A, 7, this); this.mContentRT = this.m_ScrollPanel_Activity.transform.GetChild(0).GetComponent <RectTransform>(); this.Tmp = this.GameT.GetChild(4); this.m_ScrollPanel = this.Tmp.GetComponent <ScrollPanel>(); this.m_ScrollPanel.m_ScrollPanelID = 2; this.Tmp = this.GameT.GetChild(5); child = this.Tmp.GetChild(2); this.tmpLebtn = child.GetComponent <UILEBtn>(); this.tmpLebtn.m_Handler = this; this.GUIM.InitLordEquipImg(this.tmpLebtn.transform, 0, 0, eLordEquipDisplayKind.OnlyItem, false, true, 0, 0, 0, 0, 0, false); this.tmpLebtn.transition = Selectable.Transition.None; child = this.Tmp.GetChild(3).GetChild(5); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; child = this.Tmp.GetChild(3).GetChild(6); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; child = this.Tmp.GetChild(3).GetChild(7); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; child = this.Tmp.GetChild(4); this.tmpImg = child.GetComponent <Image>(); if (this.GUIM.IsArabic) { this.tmpImg.transform.localScale = new Vector3(-1f, this.tmpImg.transform.localScale.y, this.tmpImg.transform.localScale.z); } child = this.Tmp.GetChild(5); component = child.GetComponent <UIButton>(); component.m_Handler = this; component.m_BtnID1 = 7; component.m_EffectType = e_EffectType.e_Scale; component.transition = Selectable.Transition.None; child = this.Tmp.GetChild(5).GetChild(0); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; component2.text = this.DM.mStringTable.GetStringByID(7410u); for (int num3 = 0; num3 < 6; num3++) { child = this.Tmp.GetChild(7 + num3).GetChild(0); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; child = this.Tmp.GetChild(7 + num3).GetChild(1); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; } this.tmplist.Clear(); for (int num4 = 0; num4 < 6; num4++) { this.tmplist.Add(212f); } this.m_ScrollPanel.IntiScrollPanel(490f, 11f, 0f, this.tmplist, 6, this); this.tmpImg = this.GameT.GetChild(6).GetComponent <Image>(); this.tmpImg.sprite = this.door.LoadSprite("UI_main_close_base"); this.tmpImg.material = this.m_Mat; if (this.GUIM.bOpenOnIPhoneX) { this.tmpImg.enabled = false; } this.btn_EXIT = this.GameT.GetChild(6).GetChild(0).GetComponent <UIButton>(); this.btn_EXIT.m_Handler = this; this.btn_EXIT.m_BtnID1 = 0; this.btn_EXIT.image.sprite = this.door.LoadSprite("UI_main_close"); this.btn_EXIT.image.material = this.m_Mat; this.btn_EXIT.m_EffectType = e_EffectType.e_Scale; this.btn_EXIT.transition = Selectable.Transition.None; if (this.bEqDataReq && this.bMaterialDataReq) { this.CheckReOpen(false); } this.GUIM.UpdateUI(EGUIWindow.Door, 1, 2); }
// 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: 0x06001B46 RID: 6982 RVA: 0x003060DC File Offset: 0x003042DC public override void OnOpen(int arg1, int arg2) { this.DM = DataManager.Instance; this.GUIM = GUIManager.Instance; this.door = (this.GUIM.FindMenu(EGUIWindow.Door) as Door); this.B_ID = arg1; for (int i = 0; i < 3; i++) { this.m_ItemName[i] = this.DM.mStringTable.GetStringByID((uint)(7402 + i)); } this.GameT = base.gameObject.transform; this.BG_T = this.GameT.GetChild(0); this.timeBar = this.BG_T.GetChild(0).GetComponent <UITimeBar>(); if (this.DM.queueBarData[18].bActive) { this.begin = this.DM.queueBarData[18].StartTime; this.target = this.begin + (long)((ulong)this.DM.queueBarData[18].TotalTime); this.GUIM.CreateTimerBar(this.timeBar, this.begin, this.target, 0L, eTimeBarType.CancelType, this.DM.mStringTable.GetStringByID(261u), this.DM.mStringTable.GetStringByID(261u)); this.timeBar.gameObject.SetActive(true); this.Forging = true; } else { this.GUIM.CreateTimerBar(this.timeBar, 0L, 0L, 0L, eTimeBarType.CancelType, string.Empty, string.Empty); this.timeBar.gameObject.SetActive(false); } this.GUIM.SetTimerSpriteType(this.timeBar, eTimerSpriteType.Speed); this.text_timeBar[0] = this.BG_T.GetChild(0).GetChild(2).GetComponent <UIText>(); this.text_timeBar[1] = this.BG_T.GetChild(0).GetChild(3).GetComponent <UIText>(); this.timeBar.m_Handler = this; this.timeBar.m_TimeBarID = 1; this.btn_Magnifier = this.BG_T.GetChild(1).GetComponent <UIButton>(); this.btn_Magnifier.m_Handler = this; this.btn_Magnifier.m_BtnID1 = 1; this.btn_Magnifier.m_EffectType = e_EffectType.e_Scale; this.btn_Magnifier.transition = Selectable.Transition.None; this.btn_Magnifier.gameObject.SetActive(this.DM.RoleAttr.LordEquipEventData.ItemID != 0); this.text_tmpStr[0] = this.BG_T.GetChild(2).GetComponent <UIText>(); this.text_tmpStr[0].font = this.TTFont; if (this.GUIM.BuildingData.AllBuildsData[this.B_ID].Level < 17) { this.text_tmpStr[0].text = this.DM.mStringTable.GetStringByID(7401u); } else { this.text_tmpStr[0].text = this.DM.mStringTable.GetStringByID(7496u); } this.m_ScrollPanel = this.GameT.GetChild(1).GetComponent <ScrollPanel>(); this.Item_T = this.GameT.GetChild(2); for (int j = 0; j < 3; j++) { UIButton component = this.Item_T.GetChild(j).GetComponent <UIButton>(); component.m_Handler = this; component.m_BtnID1 = 2 + j; component.SoundIndex = 64; component.m_EffectType = e_EffectType.e_Scale; component.transition = Selectable.Transition.None; this.text_tmpStr[1 + j] = this.Item_T.GetChild(j).GetChild(0).GetChild(0).GetComponent <UIText>(); this.text_tmpStr[1 + j].font = this.TTFont; this.text_tmpStr[1 + j].text = this.m_ItemName[j]; } for (int k = 0; k < 1; k++) { this.tmplist.Add(227f); } this.m_ScrollPanel.IntiScrollPanel(285f, 0f, 0f, this.tmplist, 1, this); this.m_ScrollRect = this.m_ScrollPanel.GetComponent <CScrollRect>(); this.BG1_T = this.GameT.GetChild(3); if (this.DM.mLordEquip == null) { this.DM.mLordEquip = LordEquipData.Instance(); } if (this.DM.mLordEquip.isEquipEvoReady) { this.Img_isEquipEvoReady.gameObject.SetActive(true); } else { this.Img_isEquipEvoReady.gameObject.SetActive(false); } this.GUIM.UpdateUI(EGUIWindow.Door, 1, 2); NewbieManager.CheckTeach(ETeachKind.SMITH, null, true); }
// Token: 0x06002BAB RID: 11179 RVA: 0x00481AE8 File Offset: 0x0047FCE8 public override void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId) { base.UpDateRowItem(item, dataIdx, panelObjectIdx, panelId); if (this.ItemsData.Count <= dataIdx) { return; } DataManager instance = DataManager.Instance; this.FilterItem[panelObjectIdx].KeyID = this.ItemsData[dataIdx]; ushort num = 1; ushort inKey; if (this.FilterItem[panelObjectIdx].KeyID == this.GenRemoveData.FreeRemove) { inKey = this.FilterItem[panelObjectIdx].KeyID; base.SetItemType(panelObjectIdx, UIFilterBase.eItemType.Use); } else if (this.BagCount > dataIdx) { inKey = this.FilterItem[panelObjectIdx].KeyID; base.SetItemType(panelObjectIdx, UIFilterBase.eItemType.Use); } else { StoreTbl recordByKey = instance.StoreData.GetRecordByKey(this.FilterItem[panelObjectIdx].KeyID); inKey = recordByKey.ItemID; num = recordByKey.Num; base.SetItemType(panelObjectIdx, UIFilterBase.eItemType.BuyAndUse); this.FilterItem[panelObjectIdx].BuyPriceStr.ClearString(); this.FilterItem[panelObjectIdx].BuyPriceStr.IntToFormat((long)((ulong)recordByKey.Price), 1, true); this.FilterItem[panelObjectIdx].BuyPriceStr.AppendFormat("{0}"); this.FilterItem[panelObjectIdx].BuyPrice.text = this.FilterItem[panelObjectIdx].BuyPriceStr.ToString(); this.FilterItem[panelObjectIdx].BuyPrice.SetAllDirty(); this.FilterItem[panelObjectIdx].BuyPrice.cachedTextGenerator.Invalidate(); this.FilterItem[panelObjectIdx].BuyBtn.m_BtnID3 = (int)recordByKey.ID; } Equip recordByKey2 = instance.EquipTable.GetRecordByKey(inKey); ushort curItemQuantity = instance.GetCurItemQuantity(recordByKey2.EquipKey, 0); this.FilterItem[panelObjectIdx].AutouseBtnTrans.gameObject.SetActive(false); GUIManager.Instance.ChangeHeroItemImg(this.FilterItem[panelObjectIdx].ItemTrans, eHeroOrItem.Item, recordByKey2.EquipKey, 0, 0, 0); if (num == 1) { this.FilterItem[panelObjectIdx].Name.text = instance.mStringTable.GetStringByID((uint)recordByKey2.EquipName); } else { this.FilterItem[panelObjectIdx].NameStr.ClearString(); this.FilterItem[panelObjectIdx].NameStr.StringToFormat(instance.mStringTable.GetStringByID((uint)recordByKey2.EquipName)); this.FilterItem[panelObjectIdx].NameStr.IntToFormat((long)num, 1, false); this.FilterItem[panelObjectIdx].NameStr.AppendFormat("{0} x {1}"); this.FilterItem[panelObjectIdx].Name.text = this.FilterItem[panelObjectIdx].NameStr.ToString(); this.FilterItem[panelObjectIdx].Name.SetAllDirty(); this.FilterItem[panelObjectIdx].Name.cachedTextGenerator.Invalidate(); } this.FilterItem[panelObjectIdx].Content.text = instance.mStringTable.GetStringByID((uint)recordByKey2.EquipInfo); this.FilterItem[panelObjectIdx].OwnerStr.ClearString(); if (this.FilterItem[panelObjectIdx].KeyID != this.GenRemoveData.FreeRemove) { this.FilterItem[panelObjectIdx].OwnerStr.StringToFormat(this.OwnerStr); this.FilterItem[panelObjectIdx].OwnerStr.IntToFormat((long)curItemQuantity, 1, true); this.FilterItem[panelObjectIdx].OwnerStr.AppendFormat("{0}{1}"); } this.FilterItem[panelObjectIdx].Owner.text = this.FilterItem[panelObjectIdx].OwnerStr.ToString(); this.FilterItem[panelObjectIdx].Owner.SetAllDirty(); this.FilterItem[panelObjectIdx].Owner.cachedTextGenerator.Invalidate(); this.FilterItem[panelObjectIdx].BuyBtn.m_BtnID2 = (int)recordByKey2.EquipKey; if (LordEquipData.Instance().LordEquip[(int)this.itemPos].GemColor[(int)this.gemPos] > recordByKey2.Color && this.FilterItem[panelObjectIdx].KeyID != this.GenRemoveData.FreeRemove) { this.FilterItem[panelObjectIdx].BuyCaption.color = new Color32(byte.MaxValue, 85, 129, byte.MaxValue); } else { this.FilterItem[panelObjectIdx].BuyCaption.color = new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue); } }
// Token: 0x06002BA9 RID: 11177 RVA: 0x004818E0 File Offset: 0x0047FAE0 public override void SendPack(UIButton sender) { if (sender.m_BtnID2 == (int)this.GenRemoveData.FreeRemove) { GUIManager.Instance.OpenOKCancelBox(GUIManager.Instance.FindMenu(EGUIWindow.UI_BagFilter), DataManager.Instance.mStringTable.GetStringByID(this.GenRemoveData.ConfirmTitle), DataManager.Instance.mStringTable.GetStringByID(this.GenRemoveData.ConfirmMainText), 0, 0, null, null); return; } switch (sender.m_BtnID1) { case 1002: if (DataManager.Instance.EquipTable.GetRecordByKey((ushort)sender.m_BtnID2).Color < LordEquipData.Instance().LordEquip[(int)this.itemPos].GemColor[(int)this.gemPos]) { return; } DataManager.Instance.UseItem((ushort)sender.m_BtnID2, 1, (ushort)this.gemPos, 0, 0, DataManager.Instance.mLordEquip.LordEquip[(int)this.itemPos].SerialNO, string.Empty, true); break; case 1004: if (DataManager.Instance.EquipTable.GetRecordByKey((ushort)sender.m_BtnID2).Color < LordEquipData.Instance().LordEquip[(int)this.itemPos].GemColor[(int)this.gemPos]) { return; } this.CheckBuy(1, (ushort)sender.m_BtnID3, (ushort)sender.m_BtnID2, true, GUIManager.Instance.FindMenu(EGUIWindow.UI_BagFilter), (int)this.gemPos, 0, DataManager.Instance.mLordEquip.LordEquip[(int)this.itemPos].SerialNO); break; } }
// 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: 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: 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: 0x06001B6A RID: 7018 RVA: 0x003099DC File Offset: 0x00307BDC public override void OnOpen(int arg1, int arg2) { this.DM = DataManager.Instance; this.GUIM = GUIManager.Instance; if (this.DM.mLordEquip == null) { this.DM.mLordEquip = LordEquipData.Instance(); } if (!this.DM.mLordEquip.LoadLordEquip(false)) { this.bEqDataReq = true; if (!this.DM.mLordEquip.LoadLEMaterial(false)) { this.bMaterialDataReq = true; } } for (int i = 0; i < 6; i++) { this.tmpImg_Items[i] = new Image[4]; this.text_ItemEffect[i] = new UIText[6]; this.text_ItemEffect_V[i] = new UIText[6]; this.Cstr_Effect[i] = new CString[6]; this.Cstr_Effect_V[i] = new CString[6]; for (int j = 0; j < 6; j++) { this.Cstr_Effect[i][j] = StringManager.Instance.SpawnString(30); this.Cstr_Effect_V[i][j] = StringManager.Instance.SpawnString(30); } this.Cstr_ItemLv[i] = StringManager.Instance.SpawnString(100); this.Cstr_ItemName[i] = StringManager.Instance.SpawnString(30); } this.Cstr_Filter = StringManager.Instance.SpawnString(30); ushort indexByKey = this.DM.EquipTable.GetIndexByKey(4001); ushort indexByKey2 = this.DM.EquipTable.GetIndexByKey(5000); for (int k = (int)indexByKey; k < (int)indexByKey2; k++) { this.tmpEQ = this.DM.EquipTable.GetRecordByIndex((int)((ushort)k)); switch (this.tmpEQ.EquipKind) { case 21: this.tmplistHead.Add((ushort)k); break; case 22: this.tmplistBody.Add((ushort)k); break; case 23: this.tmplistshoe.Add((ushort)k); break; case 24: this.tmplistArms.Add((ushort)k); break; case 25: this.tmplistSecondArms.Add((ushort)k); break; case 26: this.tmplistAccessories.Add((ushort)k); break; } } this.door = (this.GUIM.FindMenu(EGUIWindow.Door) as Door); this.GameT = base.gameObject.transform; this.m_Mat = this.door.LoadMaterial(); this.SArray = this.GameT.GetComponent <UISpritesArray>(); this.Tmp = this.GameT.GetChild(0).GetChild(0).GetChild(0); this.text_tmpStr[0] = this.Tmp.GetComponent <UIText>(); this.text_tmpStr[0].font = this.TTFont; this.text_tmpStr[0].text = this.DM.mStringTable.GetStringByID(7402u); this.Tmp = this.GameT.GetChild(1); this.BG = this.Tmp.GetComponent <Image>(); this.Tmp = this.GameT.GetChild(1).GetChild(0); this.text_Select = this.Tmp.GetComponent <UIText>(); this.text_Select.font = this.TTFont; this.text_Select.text = this.DM.mStringTable.GetStringByID(7405u); this.Tmp = this.GameT.GetChild(2); Transform child = this.Tmp.GetChild(0).GetChild(0); this.text_tmpStr[1] = child.GetComponent <UIText>(); this.text_tmpStr[1].font = this.TTFont; this.text_tmpStr[1].text = this.DM.mStringTable.GetStringByID(7406u); child = this.Tmp.GetChild(1).GetChild(0); this.text_tmpStr[2] = child.GetComponent <UIText>(); this.text_tmpStr[2].font = this.TTFont; this.text_tmpStr[2].text = this.DM.mStringTable.GetStringByID(7407u); child = this.Tmp.GetChild(2).GetChild(0); this.text_tmpStr[3] = child.GetComponent <UIText>(); this.text_tmpStr[3].font = this.TTFont; this.text_tmpStr[3].text = this.DM.mStringTable.GetStringByID(7408u); for (int l = 0; l < 6; l++) { child = this.Tmp.GetChild(3 + l); this.btn_Equip[l] = child.GetComponent <UIButton>(); this.btn_Equip[l].m_Handler = this; this.btn_Equip[l].m_BtnID1 = 1 + l; this.btn_Equip[l].m_EffectType = e_EffectType.e_Scale; this.btn_Equip[l].transition = Selectable.Transition.None; } for (int m = 0; m < 6; m++) { child = this.Tmp.GetChild(9 + m); this.btn_RC[m] = child.GetComponent <RectTransform>(); this.btn_Color[m] = child.GetComponent <UIButton>(); this.btn_Color[m].m_Handler = this; this.btn_Color[m].m_BtnID1 = 7 + m; this.btn_Color[m].m_EffectType = e_EffectType.e_Scale; this.btn_Color[m].transition = Selectable.Transition.None; this.Img_RC[m] = child.GetChild(0).GetComponent <RectTransform>(); } this.SelectEquipT = this.Tmp.GetChild(3).GetChild(0); this.Img_SelectEquip = this.Tmp.GetChild(3).GetChild(0).GetComponent <Image>(); this.SelectColorT = this.Tmp.GetChild(9).GetChild(1); this.Img_SelectColor = this.Tmp.GetChild(9).GetChild(1).GetComponent <Image>(); if (this.DM.mLordEquip != null && this.DM.mLordEquip.IsCheckTechLevel()) { this.mColor = 5; for (int n = 0; n < 5; n++) { this.btn_RC[n].sizeDelta = new Vector2(51f, 51f); this.btn_RC[n].anchoredPosition = new Vector2(this.btn_RC[n].anchoredPosition.x - 10f - (float)(6 * n), this.btn_RC[n].anchoredPosition.y); this.Img_RC[n].sizeDelta = new Vector2(51f, 51f); } this.Img_SelectColor.rectTransform.sizeDelta = new Vector2(64f, 64f); this.btn_Color[5].gameObject.SetActive(true); } child = this.Tmp.GetChild(15); this.btn_LvFilter = child.GetComponent <UIButton>(); this.btn_LvFilter.m_Handler = this; this.btn_LvFilter.m_BtnID1 = 13; child = this.Tmp.GetChild(15).GetChild(0); this.Img_Yes = child.GetComponent <Image>(); if (this.GUIM.IsArabic) { this.Img_Yes.gameObject.AddComponent <ArabicItemTextureRot>(); } child = this.Tmp.GetChild(15).GetChild(1); this.text_tmpStr[4] = child.GetComponent <UIText>(); this.text_tmpStr[4].font = this.TTFont; this.text_tmpStr[4].text = this.DM.mStringTable.GetStringByID(7409u); child = this.Tmp.GetChild(16); this.btn_Filter = child.GetComponent <UIButton>(); this.btn_Filter.m_Handler = this; this.btn_Filter.m_BtnID1 = 14; child = this.Tmp.GetChild(16).GetChild(2); this.text_Filter[0] = child.GetComponent <UIText>(); this.text_Filter[0].font = this.TTFont; this.text_Filter[0].text = this.DM.mStringTable.GetStringByID(7427u); child = this.Tmp.GetChild(16).GetChild(3); this.text_Filter[1] = child.GetComponent <UIText>(); this.text_Filter[1].font = this.TTFont; this.text_Filter[1].text = this.DM.mStringTable.GetStringByID(7464u); child = this.Tmp.GetChild(17); UIButton component = child.GetComponent <UIButton>(); component.m_Handler = this; component.m_BtnID1 = 14; component.m_EffectType = e_EffectType.e_Scale; component.transition = Selectable.Transition.None; this.Tmp = this.GameT.GetChild(3); this.m_ScrollPanel = this.Tmp.GetComponent <ScrollPanel>(); this.Tmp = this.GameT.GetChild(4); child = this.Tmp.GetChild(2); this.tmpLebtn = child.GetComponent <UILEBtn>(); this.tmpLebtn.m_Handler = this; this.GUIM.InitLordEquipImg(this.tmpLebtn.transform, 0, 0, eLordEquipDisplayKind.OnlyItem, false, true, 0, 0, 0, 0, 0, false); this.tmpLebtn.transition = Selectable.Transition.None; child = this.Tmp.GetChild(3).GetChild(5); this.tmpImg = child.GetComponent <Image>(); if (this.GUIM.IsArabic) { this.tmpImg.gameObject.AddComponent <ArabicItemTextureRot>(); } child = this.Tmp.GetChild(3).GetChild(6); UIText component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; child = this.Tmp.GetChild(3).GetChild(7); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; child = this.Tmp.GetChild(3).GetChild(8); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; child = this.Tmp.GetChild(4); component = child.GetComponent <UIButton>(); component.m_Handler = this; component.m_BtnID1 = 15; component.m_EffectType = e_EffectType.e_Scale; component.transition = Selectable.Transition.None; child = this.Tmp.GetChild(4).GetChild(0); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; component2.text = this.DM.mStringTable.GetStringByID(7410u); for (int num = 0; num < 6; num++) { child = this.Tmp.GetChild(6 + num).GetChild(0); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; child = this.Tmp.GetChild(6 + num).GetChild(1); component2 = child.GetComponent <UIText>(); component2.font = this.TTFont; } this.tmplist.Clear(); for (int num2 = 0; num2 < 6; num2++) { this.tmplist.Add(212f); } this.m_ScrollPanel.IntiScrollPanel(490f, 11f, 0f, this.tmplist, 6, this); this.tmpImg = this.GameT.GetChild(5).GetComponent <Image>(); this.tmpImg.sprite = this.door.LoadSprite("UI_main_close_base"); this.tmpImg.material = this.m_Mat; if (this.GUIM.bOpenOnIPhoneX) { this.tmpImg.enabled = false; } this.btn_EXIT = this.GameT.GetChild(5).GetChild(0).GetComponent <UIButton>(); this.btn_EXIT.m_Handler = this; this.btn_EXIT.m_BtnID1 = 0; this.btn_EXIT.image.sprite = this.door.LoadSprite("UI_main_close"); this.btn_EXIT.image.material = this.m_Mat; this.btn_EXIT.m_EffectType = e_EffectType.e_Scale; this.btn_EXIT.transition = Selectable.Transition.None; if (this.bEqDataReq && this.bMaterialDataReq) { this.CheckReOpen(); } this.GUIM.UpdateUI(EGUIWindow.Door, 1, 2); }
// 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); } } }
// 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(); }
// Token: 0x06002BF5 RID: 11253 RVA: 0x00484354 File Offset: 0x00482554 public override void UpdateNetwork(byte[] meg) { base.UpdateNetwork(meg); NetworkNews networkNews = (NetworkNews)meg[0]; switch (networkNews) { case NetworkNews.Refresh_Item: { Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; if (this.Speedup.UseTarget == _UseItemTarget.Rally) { this.UpdateSpeedupItem(true); } else if (this.Speedup.QueueBar == 30) { door.GoToGroup(8, 0, true); door.CloseMenu(false); } else if (this.Speedup.QueueBar >= 2 && this.Speedup.QueueBar <= 9) { door.GoToGroup((int)(this.Speedup.QueueBar - 2), 0, true); door.CloseMenu(false); } else if (this.Speedup.Rally == 2 && this.Speedup.QueueBar >= 22 && this.Speedup.QueueBar <= 29) { door.GoToGroup((int)(this.Speedup.QueueBar - 22), 0, true); door.CloseMenu(false); } else { this.UpdateSpeedupItem(true); } break; } default: if (networkNews != NetworkNews.Login) { if (networkNews != NetworkNews.Refresh_QBarTime) { if (networkNews == NetworkNews.Refresh_FontTextureRebuilt) { if (this.timebar != null) { this.timebar.Refresh_FontTexture(); } } } else if (this.Speedup.Rally > 0) { if (this.Speedup.StartTime + (long)((ulong)this.Speedup.TotalTime) < DataManager.Instance.ServerTime) { Door door2 = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; door2.CloseMenu(false); return; } GUIManager.Instance.SetTimerBar(this.timebar, this.Speedup.StartTime, this.Speedup.StartTime + (long)((ulong)this.Speedup.TotalTime), 0L, eTimeBarType.SpeedupType, this.timebar.m_Titles[0], this.timebar.m_Titles[1]); this.UpdateTime(true); this.UpdateSpeedupItem(true); return; } else { if (this.QueueBar >= (EQueueBarIndex)DataManager.Instance.queueBarData.Length) { return; } this.UpdateQueuebarTime(); } } else { this.BuyAndUse = 0; if (this.Speedup.UseTarget == _UseItemTarget.Rally) { Door door3 = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; door3.CloseMenu(true); } else if (this.Speedup.UseTarget == _UseItemTarget.SunLordequip) { LordEquipData.Instance().LoadLordEquip(false); } else { DataManager.Instance.SortResourceFilterData(); this.UpdateSpeedupItem(true); } this.UpdateQueuebarTime(); this.CheckHelpbarShow(); } break; case NetworkNews.Refresh_Alliance: this.CheckHelpbarShow(); break; } }