// Token: 0x06001BBD RID: 7101 RVA: 0x003149A8 File Offset: 0x00312BA8 public void Hide(UIButtonHint hint) { if (this.m_ButtonHint != hint || this.m_RectTransform == null) { return; } this.m_RectTransform.gameObject.SetActive(false); GUIManager.Instance.ChangeHeroItemImg(this.m_ItemBtn.transform, eHeroOrItem.Item, 0, 0, 0, 0); this.m_ItemBtn.transform.gameObject.SetActive(true); UIText name = this.m_Name; string empty = string.Empty; this.m_Properties.text = empty; name.text = empty; this.m_ButtonHint = null; Vector2 sizeDelta = this.m_Properties.rectTransform.sizeDelta; sizeDelta.y = this.OriTextHeight; this.m_Properties.rectTransform.sizeDelta = sizeDelta; sizeDelta = this.m_BackRect.sizeDelta; sizeDelta.y = this.OriHeight; this.m_BackRect.sizeDelta = sizeDelta; this.m_Properties.fontSize = 18; this.m_HeroName.fontSize = 22; this.m_HeroName.resizeTextMaxSize = 22; }
// Token: 0x06001DF2 RID: 7666 RVA: 0x00387624 File Offset: 0x00385824 public void OnButtonDown(UIButtonHint sender) { this.HintStr.ClearString(); this.HintStr.StringToFormat(this.DM.mStringTable.GetStringByID((uint)sender.Parm1)); this.HintStr.AppendFormat(this.DM.mStringTable.GetStringByID(16143u)); GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 0, 320f, 20, this.HintStr, Vector2.zero); }
// Token: 0x06000D42 RID: 3394 RVA: 0x0013B0DC File Offset: 0x001392DC public void OnButtonUp(UIButtonHint sender) { GUIManager.Instance.m_Hint.Hide(true); if (GUIManager.Instance.m_Arena_Hint != null) { GUIManager.Instance.m_Arena_Hint.Hide(); } }
// Token: 0x06001BD4 RID: 7124 RVA: 0x00317574 File Offset: 0x00315774 public void Hide(UIButtonHint hint) { if (this.m_ButtonHint != hint) { return; } this.m_ButtonHint = null; this.m_RectTransform.gameObject.SetActive(false); this.ContText.transform.gameObject.SetActive(false); this.EffectTrans.transform.gameObject.SetActive(false); this.TimeTrans.transform.gameObject.SetActive(false); this.ShadowObj.SetActive(true); UIText nameText = this.NameText; string text = string.Empty; this.KindText.text = text; text = text; this.LevelText.text = text; nameText.text = text; for (int i = 0; i < this.EffTitleText.Length; i++) { UIText uitext = this.EffTitleText[i]; text = string.Empty; this.EffNumText[i].text = text; uitext.text = text; } this.KindText.transform.localPosition = this.OriKindPos; this.OwnText.text = string.Empty; if (this.EffSize >= 3) { for (int j = 3; j < this.EffSize; j++) { this.EffTitleText[j].gameObject.SetActive(false); this.EffNumText[j].gameObject.SetActive(false); } this.LinTrans[1].gameObject.SetActive(false); this.LinTrans[2].gameObject.SetActive(false); } else if (this.ContText.gameObject.activeSelf) { this.ContText.gameObject.SetActive(false); } if (this.TimeExtendHeight > 0f) { this.ContTextRect.anchoredPosition = new Vector2(this.ContTextRect.anchoredPosition.x, this.ContTextRect.anchoredPosition.y - this.TimeExtendHeight); this.EffectTrans.anchoredPosition = this.OriEffPos; } this.TimeExtendHeight = 0f; this.EffSize = 0; this.LinTrans[0].gameObject.SetActive(true); this.TipObj.SetActive(false); this.ContText.gameObject.SetActive(false); this.ContTextRect.sizeDelta = this.OriTextSize; this.ContText.fontSize = this.OriContFontSize; this.m_RectTransform.sizeDelta = this.OriRectSize; }
// Token: 0x0600210B RID: 8459 RVA: 0x003ED694 File Offset: 0x003EB894 public void OnButtonUp(UIButtonHint sender) { byte equipKind = DataManager.Instance.EquipTable.GetRecordByKey(sender.Parm1).EquipKind; bool flag = this.GUIM.IsLeadItem(equipKind); if (flag) { this.GUIM.m_LordInfo.Hide(sender); } }
// Token: 0x06000DA9 RID: 3497 RVA: 0x0015F6E4 File Offset: 0x0015D8E4 public void OnButtonDown(UIButtonHint sender) { if (this.ActivityIndex == 210 && this.AM.AW_PrizeGroupID > 0) { CString cstring = StringManager.Instance.SpawnString(300); cstring.StringToFormat(DataManager.Instance.mStringTable.GetStringByID(17029u)); cstring.AppendFormat(this.DM.mStringTable.GetStringByID(1003u)); GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 0, 300f, 20, cstring, Vector2.zero); } }
// Token: 0x06001BEC RID: 7148 RVA: 0x00319254 File Offset: 0x00317454 public void Hide(UIButtonHint hint) { if (this.m_ButtonHint != hint) { return; } this.m_RectTransform.gameObject.SetActive(false); this.HideBtn.m_Handler = null; this.m_ButtonHint = null; }
// Token: 0x0600207C RID: 8316 RVA: 0x003DB154 File Offset: 0x003D9354 public void OnButtonDown(UIButtonHint sender) { if (sender.Parm1 == 1) { this.Img_Hint_Info.gameObject.SetActive(true); } else { GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintArmy, 0, 0f, 0, 1, 0, Vector2.zero, UIButtonHint.ePosition.Original); } }
// Token: 0x060016B0 RID: 5808 RVA: 0x00271CC0 File Offset: 0x0026FEC0 public void OnButtonUp(UIButtonHint sender) { if (this.m_WorldWarZ) { sender.ControlFadeOut.SetActive(false); } if (GUIManager.Instance.m_Hint != null) { GUIManager.Instance.m_Hint.Hide(true); } }
// Token: 0x06000D41 RID: 3393 RVA: 0x0013B078 File Offset: 0x00139278 public void OnButtonDown(UIButtonHint sender) { if (sender.Parm2 == 3) { GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 0, 326.5f, 20, (int)sender.Parm1, 0, new Vector2(0f, 0f), UIButtonHint.ePosition.Original); } else { ActivityManager.Instance.AllianceWarMgr.Send_MSG_REQUEST_ALLIANCEWAR_MEMBER_DATA((byte)sender.Parm1); } }
// Token: 0x0600210A RID: 8458 RVA: 0x003ED630 File Offset: 0x003EB830 public void OnButtonDown(UIButtonHint sender) { byte equipKind = DataManager.Instance.EquipTable.GetRecordByKey(sender.Parm1).EquipKind; bool flag = this.GUIM.IsLeadItem(equipKind); if (flag) { sender.SetFadeOutObject(EUIButtonHint.UILeBtn); this.GUIM.m_LordInfo.Show(sender, sender.Parm1, sender.Parm2, -1); } }
// Token: 0x06001F1C RID: 7964 RVA: 0x003BB22C File Offset: 0x003B942C public void OnButtonDown(UIButtonHint sender) { int btnID = sender.transform.parent.GetComponent <UIButton>().m_BtnID1; int btnID2 = sender.transform.parent.GetComponent <UIButton>().m_BtnID3; ushort heroID = this.m_Data[btnID].Item[btnID2].HeroID; byte enhance = this.m_Data[btnID].Item[btnID2].Enhance; int maxNum = (int)this.m_Data[btnID].Item[btnID2].MaxNum; byte arms = this.m_Data[btnID].Item[btnID2].Arms; this.SetSkillHint(heroID, enhance, maxNum, arms); this.m_SkillHintPanel.gameObject.SetActive(true); }
// Token: 0x060010E1 RID: 4321 RVA: 0x001E21A8 File Offset: 0x001E03A8 public void OnButtonUp(UIButtonHint sender) { UIButton component = sender.transform.GetComponent <UIButton>(); GUIArena_Replay btnID = (GUIArena_Replay)component.m_BtnID1; if (btnID == GUIArena_Replay.btn_Hint) { if (this.Img_ItmeHint[component.m_BtnID2] != null) { this.Img_ItmeHint[component.m_BtnID2].gameObject.SetActive(false); } } }
// Token: 0x06001A23 RID: 6691 RVA: 0x002C460C File Offset: 0x002C280C public void OnButtonDown(UIButtonHint sender) { if (sender.Parm1 == 0) { GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 2, 240f, 20, (int)this.CurUseCastleID, 0, Vector2.zero, UIButtonHint.ePosition.Original); } else { sender.GetTipPosition(this.Hint.ThisTransform, UIButtonHint.ePosition.Original, null); this.Hint.Show((ushort)this.CurUseCastleID); } AudioManager.Instance.PlayUISFXIndex(UIClickSoundIndex.Normal); }
// Token: 0x06001B8A RID: 7050 RVA: 0x0030D0E8 File Offset: 0x0030B2E8 public void OnButtonDown(UIButtonHint sender) { if (sender.Parm1 < 16) { this.HintTrans.gameObject.SetActive(true); int id = 3841 + (int)this.IndexToSoldierKind[(int)sender.Parm1]; this.Hint.text = DataManager.Instance.mStringTable.GetStringByID((uint)id); this.HintTrans.sizeDelta = new Vector2(1920f, 1920f); this.HintTrans.sizeDelta = new Vector2(this.Hint.preferredWidth + 35f, this.Hint.preferredHeight + 31f); this.Hint.UpdateArabicPos(); this.HintTrans.anchoredPosition = ((RectTransform)sender.transform).anchoredPosition + new Vector2(0f, 110f); } }
// Token: 0x06001311 RID: 4881 RVA: 0x00212DD4 File Offset: 0x00210FD4 private void CreateAlliVSBoard() { this.SPHeight.Clear(); this.SPHeight.Add(38f); ushort num = 0; while ((int)num < LeaderBoardManager.Instance.AllianceWarGroupBoard.Count) { this.SPHeight.Add(53f); num += 1; } UIText component = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>(); component.text = DataManager.Instance.mStringTable.GetStringByID(7091u); this.AGS_Form.GetChild(2).gameObject.SetActive(true); this.AGS_Form.GetChild(5).gameObject.SetActive(true); component = this.AGS_Form.GetChild(5).GetComponent <UIText>(); this.Ranking.ClearString(); this.Ranking.IntToFormat((long)LeaderBoardManager.Instance.AllianceWarGroupRank, 1, false); this.Ranking.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(9856u)); component.text = this.Ranking.ToString(); component.SetAllDirty(); component.cachedTextGenerator.Invalidate(); Image component2 = this.AGS_Form.GetChild(10).GetComponent <Image>(); component2.gameObject.SetActive(true); GUIManager.Instance.SetAllyWarRankImage(component2, ActivityManager.Instance.AW_Rank); this.Text1.text = ActivityManager.Instance.AW_Rank.ToString(); RectTransform component3 = this.Text1.gameObject.GetComponent <RectTransform>(); if (ActivityManager.Instance.AW_Rank > 20) { component3.anchoredPosition = Vector2.zero; } else { component3.anchoredPosition = new Vector2(0f, 5f); } UIButton component4 = this.AGS_Form.GetChild(10).GetComponent <UIButton>(); component4.m_Handler = this; component4.m_EffectType = e_EffectType.e_Normal; component4.transition = Selectable.Transition.None; component4.m_BtnID1 = 12; UIButtonHint uibuttonHint = component4.gameObject.AddComponent <UIButtonHint>(); uibuttonHint.m_eHint = EUIButtonHint.UIArena_Hint; uibuttonHint.m_Handler = this; uibuttonHint.ControlFadeOut = GUIManager.Instance.m_Arena_Hint.m_RectTransform.gameObject; uibuttonHint.ScrollID = 1; }
// Token: 0x06001932 RID: 6450 RVA: 0x002A7B54 File Offset: 0x002A5D54 public void OnButtonUp(UIButtonHint sender) { byte equipKind = this.DM.EquipTable.GetRecordByKey(sender.Parm1).EquipKind; bool flag = this.GM.IsLeadItem(equipKind); if (flag) { this.GM.m_LordInfo.Hide(sender); } else { this.GM.m_SimpleItemInfo.Hide(sender); } }
// Token: 0x0600130F RID: 4879 RVA: 0x00212BEC File Offset: 0x00210DEC public override void OnOpen(int arg1, int arg2) { base.OnOpen(arg1, arg2); UIButton component = this.AGS_Form.GetChild(10).GetComponent <UIButton>(); component.m_Handler = this; component.m_EffectType = e_EffectType.e_Normal; component.transition = Selectable.Transition.None; component.m_BtnID1 = 12; UIButtonHint uibuttonHint = component.gameObject.AddComponent <UIButtonHint>(); uibuttonHint.m_eHint = EUIButtonHint.UIArena_Hint; uibuttonHint.m_Handler = this; uibuttonHint.ControlFadeOut = GUIManager.Instance.m_Arena_Hint.m_RectTransform.gameObject; uibuttonHint.ScrollID = 1; this.HintStr = StringManager.Instance.SpawnString(300); if (LeaderBoardManager.Instance.AllianceWarGroupBoardUpdateTime < DataManager.Instance.ServerTime || LeaderBoardManager.Instance.MobiGroupAllianceID != DataManager.Instance.RoleAlliance.Id) { UILeaderBoardBase.TopIndex[19] = 0; MessagePacket messagePacket = new MessagePacket(1024); messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCEWAR_RANK; messagePacket.AddSeqId(); messagePacket.Send(false); this.DataReady = false; } else { this.DataReady = true; } GameObject gameObject = new GameObject("Text1"); gameObject.transform.SetParent(this.AGS_Form.GetChild(10).transform, false); RectTransform rectTransform = gameObject.AddComponent <RectTransform>(); rectTransform.anchoredPosition = new Vector2(0f, 0f); rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 44f); rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, 44f); UIText uitext = gameObject.AddComponent <UIText>(); uitext.font = GUIManager.Instance.GetTTFFont(); uitext.resizeTextForBestFit = true; uitext.resizeTextMinSize = 24; uitext.resizeTextMaxSize = 30; uitext.alignment = TextAnchor.LowerCenter; uitext.text = string.Empty; this.Text1 = uitext; gameObject.AddComponent <Outline>(); gameObject.AddComponent <Shadow>(); }
// Token: 0x06001F34 RID: 7988 RVA: 0x003BC294 File Offset: 0x003BA494 public void OnButtonUp(UIButtonHint sender) { if (sender != null && this.m_GitImageHint != null && sender == this.m_AllyRankImageHint) { GUIManager.Instance.m_Hint.Hide(true); } else if (sender != null && this.m_GitImageHint != null && sender == this.m_GitImageHint) { GUIManager.Instance.m_Hint.Hide(true); } else { this.GM.m_SimpleItemInfo.Hide(sender); } }
// Token: 0x060019DC RID: 6620 RVA: 0x002BF238 File Offset: 0x002BD438 public void OnButtonDown(UIButtonHint sender) { this.HintText.text = DataManager.Instance.mStringTable.GetStringByID((uint)sender.Parm1); Vector2 vector = this.RectHint.sizeDelta; vector.y = this.HintText.preferredHeight + 16f; this.RectHint.sizeDelta = vector; sender.GetTipPosition(this.RectHint, UIButtonHint.ePosition.Original, null); vector = this.RectHint.anchoredPosition; vector.x += 20f; vector.y -= 2f; this.RectHint.anchoredPosition = vector; this.RectHint.gameObject.SetActive(true); AudioManager.Instance.PlayUISFXIndex(UIClickSoundIndex.Normal); }
// Token: 0x06000943 RID: 2371 RVA: 0x000BD94C File Offset: 0x000BBB4C public void OnButtonDown(UIButtonHint sender) { UIButton uibutton = sender.m_Button as UIButton; if (this.bMove || uibutton == null || uibutton.m_BtnID1 < 0 || uibutton.m_BtnID1 >= 10 || uibutton.m_BtnID2 < 1 || uibutton.m_BtnID2 > 3) { return; } this.bHintOpen = (byte)(uibutton.m_BtnID2 - 1); Vector3 position = this.HintRC[uibutton.m_BtnID1][(int)this.bHintOpen].position; this.m_HintBox.rectTransform.position = position; this.m_HintBox.rectTransform.anchoredPosition -= new Vector2(40f, 0f); this.m_HintBox.gameObject.SetActive(true); this.HintTime = 2f; this.SetHint(); }
// Token: 0x06001E73 RID: 7795 RVA: 0x003A4D0C File Offset: 0x003A2F0C public void OnButtonDown(UIButtonHint sender) { byte equipKind = DataManager.Instance.EquipTable.GetRecordByKey(sender.Parm1).EquipKind; bool flag = this.GM.IsLeadItem(equipKind); if (flag) { sender.SetFadeOutObject(EUIButtonHint.UILeBtn); this.GM.m_LordInfo.Show(sender, sender.Parm1, sender.Parm2, -1); } else { sender.SetFadeOutObject(EUIButtonHint.UIHIBtn); this.GM.m_SimpleItemInfo.Show(sender, sender.Parm1, -1, UIButtonHint.ePosition.Original, null); } AudioManager.Instance.PlayUISFXIndex(UIClickSoundIndex.Normal); }
// Token: 0x06001301 RID: 4865 RVA: 0x002117A4 File Offset: 0x0020F9A4 public override void OnButtonDown(UIButtonHint sender) { UIButton uibutton = sender.m_Button as UIButton; if (uibutton == null) { return; } int btnID = uibutton.m_BtnID1; if (btnID == 12) { uint id = 1028u - (uint)DataManager.Instance.RoleAlliance.AMRank; this.HintStr.ClearString(); this.HintStr.Append(DataManager.Instance.mStringTable.GetStringByID(id)); GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 0, 300f, 20, this.HintStr, Vector2.zero); } }
// Token: 0x06001317 RID: 4887 RVA: 0x002139FC File Offset: 0x00211BFC public override void OnButtonDown(UIButtonHint sender) { UIButton uibutton = sender.m_Button as UIButton; if (uibutton == null) { return; } int btnID = uibutton.m_BtnID1; if (btnID != 11) { if (btnID == 12) { this.HintStr.ClearString(); this.HintStr.IntToFormat((long)ActivityManager.Instance.AW_Rank, 1, false); this.HintStr.IntToFormat((long)ActivityManager.Instance.AW_MemberCount, 1, false); this.HintStr.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(17074u)); GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 0, 300f, 20, this.HintStr, new Vector2(70f, -50f)); } } else { this.HintStr.ClearString(); switch (uibutton.m_BtnID3) { case 1: this.HintStr.IntToFormat((long)uibutton.m_BtnID2, 1, false); this.HintStr.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(17025u)); break; case 2: this.HintStr.IntToFormat((long)uibutton.m_BtnID2, 1, false); this.HintStr.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(17026u)); break; case 3: this.HintStr.IntToFormat((long)uibutton.m_BtnID2, 1, false); this.HintStr.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(17027u)); break; } GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 0, 300f, 20, this.HintStr, new Vector2(70f, -50f)); } }
// Token: 0x0600108E RID: 4238 RVA: 0x001D6B1C File Offset: 0x001D4D1C public void SetArmyIcon(Image image, int ArmyIdx, UIText IconText, CString str, UIButtonHint hint, Image background, float textWidth) { if (background == null || image == null || this.m_SpritesArray == null) { return; } Vector2 sizeDelta = background.rectTransform.sizeDelta; sizeDelta.x = ((textWidth <= 238.4f) ? (textWidth + 40f) : 278.4f); background.rectTransform.sizeDelta = sizeDelta; SoldierData recordByKey = this.DM.SoldierDataTable.GetRecordByKey((ushort)(ArmyIdx + 1)); image.sprite = this.m_SpritesArray.GetSprite((int)recordByKey.SoldierKind); str.ClearString(); str.IntToFormat((long)recordByKey.Tier, 1, false); str.AppendFormat("{0}"); IconText.text = str.ToString(); hint.Parm1 = (ushort)ArmyIdx; }
// Token: 0x06001BC9 RID: 7113 RVA: 0x00316014 File Offset: 0x00314214 public void Hide(UIButtonHint hint) { this.m_RectTransform.gameObject.SetActive(false); this.Divider1.gameObject.SetActive(true); this.Divider2.gameObject.SetActive(false); this.RequireIdx = 0; this.SkillIndex = 0; this.m_ButtonHint = null; this.Prop.text = string.Empty; this.RequireMsg.text = string.Empty; if (this.HeroEnhance > 0 && this.BadgeTransform.Length > (int)this.HeroEnhance) { this.BadgeTransform[(int)(this.HeroEnhance - 1)].GetChild(0).gameObject.SetActive(false); this.HeroEnhance = 0; } this.Timer = 0f; this.Content.fontSize = 18; this.Prop.fontSize = 18; }
// Token: 0x06001F33 RID: 7987 RVA: 0x003BC078 File Offset: 0x003BA278 public void OnButtonDown(UIButtonHint sender) { if (sender != null && this.m_AllyRankImageHint != null && sender == this.m_AllyRankImageHint) { ushort[] array = new ushort[] { 1028, 1027, 1026, 1025, 1024 }; this.m_GiftHintStr.ClearString(); if (this.DM.RoleAlliance.AMRank >= 0 && (int)this.DM.RoleAlliance.AMRank < array.Length) { this.m_GiftHintStr.Append(this.DM.mStringTable.GetStringByID((uint)array[(int)this.DM.RoleAlliance.AMRank])); } GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 0, 300f, 20, this.m_GiftHintStr, Vector2.zero); } else if (sender != null && this.m_GitImageHint != null && sender == this.m_GitImageHint && this.IsSpecialPrize()) { this.m_GiftHintStr.ClearString(); this.m_GiftHintStr.StringToFormat(this.DM.mStringTable.GetStringByID(1339u)); this.m_GiftHintStr.AppendFormat(this.DM.mStringTable.GetStringByID(1003u)); GUIManager.Instance.m_Hint.Show(sender, UIHintStyle.eHintSimple, 0, 300f, 20, this.m_GiftHintStr, Vector2.zero); } else { byte equipKind = DataManager.Instance.EquipTable.GetRecordByKey(sender.Parm1).EquipKind; bool flag = this.GM.IsLeadItem(equipKind); if (flag) { sender.SetFadeOutObject(EUIButtonHint.UILeBtn); this.GM.m_LordInfo.Show(sender, sender.Parm1, sender.Parm2, -1); } else { sender.SetFadeOutObject(EUIButtonHint.UIHIBtn); this.GM.m_SimpleItemInfo.Show(sender, sender.Parm1, -1, UIButtonHint.ePosition.Original, null); } AudioManager.Instance.PlayUISFXIndex(UIClickSoundIndex.Normal); } }
// Token: 0x060011EF RID: 4591 RVA: 0x001F1EC0 File Offset: 0x001F00C0 public ItemSkill(Transform transform, Font font, UISpritesArray SkillIconArray, GUIWindow win) : base(transform) { this.SkillIcon = new _FootSkillIcon(base.recttransform.GetChild(0) as RectTransform, font, SkillIconArray); for (int i = 0; i < this.Context.Length; i++) { this.Context[i] = base.recttransform.GetChild(i + 1).GetComponent <UIText>(); this.Context[i].font = font; } this.TimeText = base.recttransform.GetChild(4).GetChild(1).GetComponent <Text>(); this.TimeText.font = font; UIButtonHint uibuttonHint = base.recttransform.GetChild(5).gameObject.AddComponent <UIButtonHint>(); uibuttonHint.m_eHint = EUIButtonHint.DownUpHandler; uibuttonHint.m_Handler = win; uibuttonHint.Parm1 = 12561; this.TimeStr = StringManager.Instance.SpawnString(30); this.ContStr[0] = StringManager.Instance.SpawnString(30); this.ContStr[1] = StringManager.Instance.SpawnString(128); }
// Token: 0x060012FA RID: 4858 RVA: 0x00210634 File Offset: 0x0020E834 public override void OnOpen(int arg1, int arg2) { base.OnOpen(arg1, arg2); RectTransform component = this.AGS_Form.GetChild(1).GetComponent <RectTransform>(); component.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 450f); component = component.GetChild(0).GetComponent <RectTransform>(); component.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 360f); this.Ranking = StringManager.Instance.SpawnString(300); UIButton component2 = this.AGS_Form.GetChild(10).GetComponent <UIButton>(); component2.m_Handler = this; component2.m_EffectType = e_EffectType.e_Normal; component2.transition = Selectable.Transition.None; component2.m_BtnID1 = 12; UIButtonHint uibuttonHint = component2.gameObject.AddComponent <UIButtonHint>(); uibuttonHint.m_eHint = EUIButtonHint.UIArena_Hint; uibuttonHint.m_Handler = this; uibuttonHint.ControlFadeOut = GUIManager.Instance.m_Arena_Hint.m_RectTransform.gameObject; uibuttonHint.ScrollID = 1; if (ActivityManager.Instance.AllyMobilizationData.EventState != EActivityState.EAS_ReplayRanking) { this.closeAfter = true; return; } this.closeAfter = false; if (LeaderBoardManager.Instance.MobilizationAlliWorldBoardTime < DataManager.Instance.ServerTime || LeaderBoardManager.Instance.MobiAlliWorldAllianceID != DataManager.Instance.RoleAlliance.Id) { UILeaderBoardBase.TopIndex[20] = 0; MessagePacket messagePacket = new MessagePacket(1024); messagePacket.Protocol = Protocol._MSG_REQUEST_ALLIANCEMOBILIZATION_LEGENDRANK; messagePacket.AddSeqId(); messagePacket.Send(false); } else { this.DataReady = true; } }
// Token: 0x06000FFC RID: 4092 RVA: 0x001C6B18 File Offset: 0x001C4D18 public void OnOpen(Transform transform) { this.transform = transform; byte b = 0; while ((int)b < this.RankPoint.Length) { GUIManager.Instance.SetAllyRankImage(transform.GetChild(0).GetChild((int)b).GetChild(0).GetComponent <Image>(), b); this.Widths[(int)b] = transform.GetChild(0).GetChild((int)b).GetComponent <RectTransform>().sizeDelta.x; UIButtonHint uibuttonHint = transform.GetChild(0).GetChild((int)b).gameObject.AddComponent <UIButtonHint>(); uibuttonHint.m_eHint = EUIButtonHint.DownUpHandler; uibuttonHint.m_DownUpHandler = this; uibuttonHint.Parm1 = (ushort)(1028 - (int)b); this.RankPoint[(int)b] = transform.GetChild(1).GetChild((int)b); b += 1; } this.ImgUpRect = transform.GetChild(0).GetChild(5).GetComponent <RectTransform>(); this.ImgUp = this.ImgUpRect.GetComponent <Image>(); this.ImgDownRect = transform.GetChild(0).GetChild(6).GetComponent <RectTransform>(); this.ImgDown = this.ImgDownRect.GetComponent <Image>(); this.RankAnime.Initial(transform.GetChild(1).GetChild(5).GetComponent <Image>()); }