Exemple #1
0
        // Token: 0x060011F0 RID: 4592 RVA: 0x001F1FE4 File Offset: 0x001F01E4
        public override void SetData(int Index)
        {
            StringTable       mStringTable  = DataManager.Instance.mStringTable;
            FootBallSkillData recordByIndex = FootballManager.Instance.FootBallSkillTable.GetRecordByIndex(Index);

            this.SkillIcon.SetData(ref recordByIndex);
            this.Context[0].text = mStringTable.GetStringByID((uint)recordByIndex.SkillName);
            this.ContStr[0].ClearString();
            this.ContStr[0].IntToFormat((long)recordByIndex.SkillStrength, 1, false);
            this.ContStr[0].AppendFormat(mStringTable.GetStringByID(17202u));
            this.Context[1].text = this.ContStr[0].ToString();
            this.Context[1].SetAllDirty();
            this.Context[1].cachedTextGenerator.Invalidate();
            this.ContStr[1].ClearString();
            this.ContStr[1].IntToFormat((long)recordByIndex.NeedSoldierRank, 1, false);
            this.ContStr[1].IntToFormat((long)((ulong)recordByIndex.NeedSoldierQty), 1, true);
            this.ContStr[1].AppendFormat(mStringTable.GetStringByID(17203u));
            this.Context[2].text = this.ContStr[1].ToString();
            this.Context[2].SetAllDirty();
            this.Context[2].cachedTextGenerator.Invalidate();
            this.TimeStr.ClearString();
            this.TimeStr.IntToFormat((long)(recordByIndex.SkillCountDown / 100), 1, true);
            this.TimeStr.AppendFormat(mStringTable.GetStringByID(17204u));
            this.TimeText.text = this.TimeStr.ToString();
            this.TimeText.SetAllDirty();
            this.TimeText.cachedTextGenerator.Invalidate();
        }
Exemple #2
0
        // Token: 0x060011F4 RID: 4596 RVA: 0x001F22B4 File Offset: 0x001F04B4
        public void SetData(ref FootBallSkillData Data)
        {
            this.DistStr.ClearString();
            this.DistStr.IntToFormat((long)Data.SkillStrength, 1, false);
            this.DistStr.AppendFormat("{0}");
            this.DistText.text = this.DistStr.ToString();
            this.DistText.SetAllDirty();
            this.DistText.cachedTextGenerator.Invalidate();
            int num = (int)Data.SkillIcon;

            if (num == 0 || num > this.IconArray.m_Sprites.Length)
            {
                num = 1;
            }
            this.SkillImg.sprite = this.IconArray.GetSprite(num - 1);
        }