示例#1
0
    // 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);
        }
    }
示例#2
0
    // 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);
        }
    }
示例#3
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);
            }
        }
    }