Esempio n. 1
0
 // Token: 0x06001EDA RID: 7898 RVA: 0x003B0550 File Offset: 0x003AE750
 public void OnLEButtonClick(UILEBtn sender)
 {
     if (this.OpenNext(this.ScrollComp[sender.m_BtnID2].LEBtn.LEID))
     {
         AudioManager.Instance.PlayUISFXIndex(UIClickSoundIndex.Normal);
     }
 }
Esempio n. 2
0
    // Token: 0x06001DF4 RID: 7668 RVA: 0x003876B8 File Offset: 0x003858B8
    public void OnLEButtonClick(UILEBtn sender)
    {
        int btnID = sender.m_BtnID1;

        if (btnID == 3)
        {
            UILordEquipSetEdit.ChangingIdx = sender.m_BtnID2 - 1;
            UILordEquip.waitForReturn      = eUI_LordEquipReturnKind.None;
            this.door.OpenMenu(EGUIWindow.UI_LordEquip, 3, sender.m_BtnID2, false);
        }
    }
Esempio n. 3
0
 // Token: 0x06001DFA RID: 7674 RVA: 0x00387DFC File Offset: 0x00385FFC
 public void AfterLoader()
 {
     if (this.Equips == null)
     {
         this.Equips = new RectTransform[8];
     }
     for (int i = 0; i < 8; i++)
     {
         UILEBtn component = this.AGS_Form.GetChild(5).GetChild(16 + i).GetComponent <UILEBtn>();
         GUIManager.Instance.InitLordEquipImg(component.transform, 0, 0, eLordEquipDisplayKind.OnlyItem, true, true, 0, 0, 0, 0, 0, false);
         this.Equips[i] = component.transform.GetComponent <RectTransform>();
     }
     this.effectCompareList = new List <LordEquipEffectCompareSet>();
     for (int j = 0; j < this.EffDescText.Length; j++)
     {
         this.EffDescText[j] = StringManager.Instance.SpawnString(500);
     }
     this.HintStr = StringManager.Instance.SpawnString(500);
     this.AGS_ScrollPanel.IntiScrollPanel(445f, 0f, 0f, this.SPHeight, 18, this);
     this.reflashItem();
     this.isLoading = false;
 }
Esempio n. 4
0
 // Token: 0x06000DA7 RID: 3495 RVA: 0x0015F6CC File Offset: 0x0015D8CC
 public void OnLEButtonClick(UILEBtn sender)
 {
 }
Esempio n. 5
0
    // Token: 0x06001F35 RID: 7989 RVA: 0x003BC338 File Offset: 0x003BA538
    private void InitUI()
    {
        for (int i = 0; i < this.m_Data.Length; i++)
        {
            this.m_Data[i].Init();
        }
        for (int j = 0; j < this.m_PanelObject.Length; j++)
        {
            this.m_PanelObject[j].Init();
        }
        this.m_SpArray                = base.transform.gameObject.GetComponent <UISpritesArray>();
        this.m_TitleText1             = base.transform.GetChild(0).GetChild(4).GetComponent <UIText>();
        this.m_TitleText1.font        = this.TTF;
        this.m_TitleText1.text        = this.DM.mStringTable.GetStringByID(1339u);
        this.m_TitleText2             = base.transform.GetChild(0).GetChild(8).GetComponent <UIText>();
        this.m_TitleText2.font        = this.TTF;
        this.m_TitleText2.text        = this.DM.mStringTable.GetStringByID(1368u);
        this.m_OverText               = base.transform.GetChild(0).GetChild(10).GetComponent <UIText>();
        this.m_OverText.font          = this.TTF;
        this.m_OverText.text          = this.DM.mStringTable.GetStringByID(1369u);
        this.m_OverText.color         = new Color(1f, 0.968f, 0.6f, 1f);
        this.m_TimeIcon               = base.transform.GetChild(0).GetChild(6).GetComponent <Image>();
        this.m_TimeText               = base.transform.GetChild(0).GetChild(7).GetComponent <UIText>();
        this.m_TimeText.font          = this.TTF;
        this.m_GitImageHint           = base.transform.GetChild(0).GetChild(9).gameObject.AddComponent <UIButtonHint>();
        this.m_GitImageHint.m_Handler = this;
        this.m_GitImageHint.m_eHint   = EUIButtonHint.DownUpHandler;
        this.m_SpecialPrize           = base.transform.GetChild(0).GetChild(11).GetComponent <Image>();
        this.m_ScrollPanel            = base.transform.GetChild(1).GetComponent <ScrollPanel>();
        this.m_Send           = base.transform.GetChild(3).GetComponent <UIButton>();
        this.m_Send.m_BtnID1  = 200;
        this.m_Send.m_Handler = this;
        this.m_FlashImage     = base.transform.GetChild(3).GetChild(0).GetComponent <Image>();
        UIText component = base.transform.GetChild(3).GetChild(1).GetComponent <UIText>();

        component.font        = this.TTF;
        component.text        = this.DM.mStringTable.GetStringByID(1542u);
        this.m_Exit           = base.transform.GetChild(4).GetChild(0).GetComponent <UIButton>();
        this.m_Exit.m_BtnID1  = 100;
        this.m_Exit.m_Handler = this;
        Image component2 = base.transform.GetChild(4).GetComponent <Image>();

        component2.sprite   = this.door.LoadSprite("UI_main_close_base");
        component2.material = this.door.LoadMaterial();
        if (GUIManager.Instance.bOpenOnIPhoneX && component2)
        {
            component2.enabled = false;
        }
        this.m_Exit.image.sprite   = this.door.LoadSprite("UI_main_close");
        this.m_Exit.image.material = this.door.LoadMaterial();
        this.m_FingerImageObject   = base.transform.GetChild(5).gameObject;
        for (int k = 2; k <= 4; k++)
        {
            UIHIBtn component3 = base.transform.GetChild(2).GetChild(k).GetChild(0).GetChild(0).GetComponent <UIHIBtn>();
            this.GM.InitianHeroItemImg(component3.gameObject.transform, eHeroOrItem.Item, 0, 0, 0, 0, false, true, true, false);
            UILEBtn component4 = base.transform.GetChild(2).GetChild(k).GetChild(0).GetChild(3).GetComponent <UILEBtn>();
            component4.gameObject.AddComponent <UIButtonHint>().m_eHint = EUIButtonHint.UILeBtn;
            this.GM.InitLordEquipImg(component4.gameObject.transform, 0, 0, eLordEquipDisplayKind.OnlyItem, false, true, 0, 0, 0, 0, 0, false);
        }
        this.m_AllyRankImage               = base.transform.GetChild(0).GetChild(12).GetComponent <Image>();
        this.m_AllyRankImageHint           = base.transform.GetChild(0).GetChild(12).gameObject.AddComponent <UIButtonHint>();
        this.m_AllyRankImageHint.m_Handler = this;
        this.m_AllyRankImageHint.m_eHint   = EUIButtonHint.DownUpHandler;
        if (this.m_AllyRankImage != null)
        {
            if (this.DM.RoleAlliance.AMRank >= 0)
            {
                this.GM.SetAllyRankImage(this.m_AllyRankImage, this.DM.RoleAlliance.AMRank);
                this.m_AllyRankImage.gameObject.SetActive(true);
            }
            else
            {
                this.m_AllyRankImage.gameObject.SetActive(false);
            }
        }
        base.transform.GetChild(2).GetChild(5).GetComponent <Image>().color = new Color(1f, 1f, 1f, 0.6274f);
        GUIManager.Instance.UpdateUI(EGUIWindow.Door, 1, 1);
    }
Esempio n. 6
0
 // Token: 0x06001F32 RID: 7986 RVA: 0x003BC05C File Offset: 0x003BA25C
 public void OnLEButtonClick(UILEBtn sender)
 {
     this.OnClick(sender.m_BtnID1, sender.m_BtnID2, sender.m_BtnID3, false);
 }
Esempio n. 7
0
    // 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();
    }
Esempio n. 8
0
    // 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);
            }
        }
    }