Ejemplo n.º 1
0
 // Token: 0x06001B6B RID: 7019 RVA: 0x0030A644 File Offset: 0x00308844
 public void CheckReOpen()
 {
     if (this.DM.mLordEquip != null && this.DM.mLordEquip.ForgeItem_mEquip != 0)
     {
         UIEffectFilter.SeletedFilter = this.DM.mLordEquip.ForgeItem_mSeletedFilter;
         if (UIEffectFilter.SeletedFilter != 0)
         {
             this.mFilterSelect         = UIEffectFilter.SeletedFilter;
             this.mFilterSelectEffectID = this.DM.LordEquipEffectFilter.GetRecordByIndex((int)(this.mFilterSelect - 1)).effectID;
             this.Cstr_Filter.ClearString();
             GameConstants.GetEffectValue(this.Cstr_Filter, this.mFilterSelectEffectID, 0u, 8, 0f);
             this.text_Filter[0].text = this.Cstr_Filter.ToString();
             this.text_Filter[0].SetAllDirty();
             this.text_Filter[0].cachedTextGenerator.Invalidate();
             this.text_Filter[0].color = Color.green;
             this.text_Filter[1].gameObject.SetActive(true);
         }
         this.bLvFilter = this.DM.mLordEquip.ForgeItem_bLvFilter;
         this.Img_Yes.gameObject.SetActive(this.bLvFilter);
         this.mEquip = this.DM.mLordEquip.ForgeItem_mEquip - 1;
         this.mColor = this.DM.mLordEquip.ForgeItem_mColor;
         this.SelectEquipT.gameObject.SetActive(true);
         this.SelectColorT.gameObject.SetActive(true);
         this.ShowTimeSelectEquip = 0f;
         this.ShowTimeSelectColor = 0f;
         this.SelectColorT.SetParent(this.btn_Color[(int)this.mColor].transform, false);
         this.SelectEquipT.SetParent(this.btn_Equip[(int)this.mEquip].transform, false);
         this.SetEquipList(this.mEquip);
         this.m_ScrollPanel.GoTo(this.DM.mLordEquip.ForgeItem_ScrollIdx);
     }
 }
Ejemplo n.º 2
0
    // Token: 0x06001BC4 RID: 7108 RVA: 0x00315998 File Offset: 0x00313B98
    public void GetLegionHintStr(byte heroEnhance, ref Skill skill, ref CString Content, byte RankStr = 0)
    {
        CString cstring  = StringManager.Instance.StaticString1024();
        CString cstring2 = StringManager.Instance.StaticString1024();

        cstring.Append(Content);
        float num = (float)skill.HurtValue + (float)((ushort)this.LegionRankMagnifation[(int)(heroEnhance - 1)] * skill.HurtIncreaseValue) / 1000f;

        if (skill.HurtKind == 1)
        {
            GameConstants.GetEffectValue(Content, skill.HurtAddition, 0u, 7, 0f);
            Content.IntToFormat((long)((ushort)this.LegionRankMagnifation[(int)(heroEnhance - 1)] * skill.HurtIncreaseValue), 1, true);
            Content.AppendFormat("{0}");
        }
        else if (skill.SkillType == 10)
        {
            GameConstants.GetEffectValue(Content, skill.HurtAddition, (uint)num, 1, 0f);
        }
        else
        {
            GameConstants.GetEffectValue(Content, skill.HurtAddition, 0u, 6, num * 100f);
        }
        if (RankStr > 0)
        {
            cstring2.StringToFormat(DataManager.Instance.mStringTable.GetStringByID(15u));
            cstring2.IntToFormat((long)RankStr, 1, false);
            cstring2.StringToFormat(Content);
            if (skill.SkillType == 10)
            {
                cstring2.AppendFormat("<color=#ffff00ff>{0}{1} : {2}</color>");
            }
            else
            {
                cstring2.AppendFormat("<color=#33eb67ff>{0}{1} : {2}</color>");
            }
        }
        else
        {
            cstring2.StringToFormat(Content);
            if (skill.SkillType == 10)
            {
                cstring2.AppendFormat("<color=#ffff00ff>{0}</color>");
            }
            else
            {
                cstring2.AppendFormat("<color=#33eb67ff>{0}</color>");
            }
        }
        cstring2.Insert(0, cstring, -1);
        Content.ClearString();
        Content.Append(cstring2);
    }
Ejemplo n.º 3
0
    // Token: 0x060018CE RID: 6350 RVA: 0x00299358 File Offset: 0x00297558
    private void SetValue(Color color)
    {
        byte b = 0;

        if ((int)this.m_ManorID < this.GM.BuildingData.AllBuildsData.Length && this.m_ManorID >= 0)
        {
            b = this.GM.BuildingData.AllBuildsData[(int)this.m_ManorID].Level;
        }
        if (b <= 0)
        {
            b = 1;
        }
        BuildLevelRequest buildLevelRequestData = this.GM.BuildingData.GetBuildLevelRequestData(19, b);

        this.m_EffectTemp[0].Effect = buildLevelRequestData.Effect1;
        this.m_EffectTemp[1].Effect = buildLevelRequestData.Effect2;
        this.m_EffectTemp[2].Effect = buildLevelRequestData.Effect3;
        this.m_EffectTemp[3].Effect = buildLevelRequestData.Effect4;
        this.m_EffectTemp[0].Value  = (ushort)buildLevelRequestData.Value1;
        this.m_EffectTemp[1].Value  = (ushort)buildLevelRequestData.Value2;
        this.m_EffectTemp[2].Value  = buildLevelRequestData.Value3;
        this.m_EffectTemp[3].Value  = buildLevelRequestData.Value4;
        for (int i = 0; i < this.m_EffectTemp.Length; i++)
        {
            this.SetValueIcon(i, this.m_EffectTemp[i].Effect);
            GameConstants.GetEffectValue(this.m_ValueText[i].TitleStr, this.m_EffectTemp[i].Effect, 0u, 0, 0f);
            this.m_ValueText[i].TitleText.text = this.m_ValueText[i].TitleStr.ToString();
            this.m_ValueText[i].TitleText.SetAllDirty();
            this.m_ValueText[i].TitleText.cachedTextGenerator.Invalidate();
            GameConstants.GetEffectValue(this.m_ValueText[i].ValueStr, this.m_EffectTemp[i].Effect, (uint)this.m_EffectTemp[i].Value, 3, 0f);
            this.m_ValueText[i].TempStr.ClearString();
            if (this.GM.IsArabic)
            {
                this.m_ValueText[i].TempStr.Append(this.m_ValueText[i].ValueStr);
                this.m_ValueText[i].TempStr.Append(this.DM.mStringTable.GetStringByID(5805u));
            }
            else
            {
                this.m_ValueText[i].TempStr.Append(this.DM.mStringTable.GetStringByID(5805u));
                this.m_ValueText[i].TempStr.Append(this.m_ValueText[i].ValueStr);
            }
            this.m_ValueText[i].ValueText.text  = this.m_ValueText[i].TempStr.ToString();
            this.m_ValueText[i].ValueText.color = color;
            this.m_ValueText[i].ValueText.SetAllDirty();
            this.m_ValueText[i].ValueText.cachedTextGenerator.Invalidate();
        }
    }
Ejemplo n.º 4
0
    // Token: 0x06001FE3 RID: 8163 RVA: 0x003CBFE8 File Offset: 0x003CA1E8
    public void UpdateTalentInfo()
    {
        DataManager instance    = DataManager.Instance;
        TalentTbl   recordByKey = instance.TalentData.GetRecordByKey((ushort)this.TalentID);
        byte        talentLevel = instance.GetTalentLevel(recordByKey.TalentID, this.SaveSlot);

        this.TalentName.text = instance.mStringTable.GetStringByID((uint)recordByKey.NameID);
        float   num       = 163f / (float)recordByKey.LevelMax;
        Vector2 sizeDelta = this.DegreeRect.sizeDelta;

        sizeDelta.x = num * (float)talentLevel;
        this.DegreeRect.sizeDelta = sizeDelta;
        this.LevelStr.ClearString();
        this.LevelStr.IntToFormat((long)talentLevel, 1, false);
        this.LevelStr.IntToFormat((long)recordByKey.LevelMax, 1, false);
        if (GUIManager.Instance.IsArabic)
        {
            this.LevelStr.AppendFormat("{1}/{0}");
        }
        else
        {
            this.LevelStr.AppendFormat("{0}/{1}");
        }
        this.LevelText.text = this.LevelStr.ToString();
        this.LevelText.SetAllDirty();
        this.LevelText.cachedTextGenerator.Invalidate();
        this.GraphicID = recordByKey.Graphic;
        if (GUIManager.Instance.TechMaterial == null)
        {
            this.TalentIcon.enabled = false;
        }
        else
        {
            this.TalentIcon.sprite   = GUIManager.Instance.GetTechSprite(this.GraphicID);
            this.TalentIcon.material = GUIManager.Instance.TechMaterial;
            this.TalentIcon.enabled  = true;
        }
        this.NeedPointStr.ClearString();
        this.EffectStr.ClearString();
        this.EffectNextStr.ClearString();
        this.ContentStr.ClearString();
        uint           num2  = 0u;
        byte           level = Math.Max(1, talentLevel);
        TalentLevelTbl talentLevelTbl;

        if (instance.GetTalentLevelupData(out talentLevelTbl, (ushort)this.TalentID, level))
        {
            if (talentLevel > 0)
            {
                num2 += (uint)talentLevelTbl.EffectVal;
            }
            CString cstring = StringManager.Instance.StaticString1024();
            if (talentLevel == 0 && recordByKey.NeedTalentID > 0)
            {
                this.EffectStr.IntToFormat((long)recordByKey.NeedTalentLv, 1, false);
                this.EffectStr.StringToFormat(instance.mStringTable.GetStringByID((uint)instance.TalentData.GetRecordByKey(recordByKey.NeedTalentID).NameID));
                this.EffectStr.AppendFormat(instance.mStringTable.GetStringByID(1510u));
            }
            else if (talentLevelTbl.Effect <= 1000)
            {
                if (num2 > 0u)
                {
                    GameConstants.GetEffectValue(cstring, talentLevelTbl.Effect, 0u, 6, num2);
                    this.EffectStr.StringToFormat(cstring);
                    this.EffectStr.AppendFormat(instance.mStringTable.GetStringByID(5012u));
                }
            }
            else
            {
                GameConstants.GetEffectValue(cstring, talentLevelTbl.Effect, 0u, 7, num2);
                this.EffectStr.StringToFormat(cstring);
                this.EffectStr.AppendFormat(instance.mStringTable.GetStringByID(5012u));
            }
            this.EffectText.text = this.EffectStr.ToString();
            this.EffectText.SetAllDirty();
            this.EffectText.cachedTextGenerator.Invalidate();
            GameConstants.GetEffectValue(this.ContentStr, talentLevelTbl.Effect, num2, 0, 0f);
            this.ContText.text = this.ContentStr.ToString();
            this.ContText.SetAllDirty();
            this.ContText.cachedTextGenerator.Invalidate();
        }
        if (talentLevel < recordByKey.LevelMax && instance.GetTalentLevelupData(out talentLevelTbl, (ushort)this.TalentID, talentLevel + 1))
        {
            num2 = (uint)((ushort)((uint)talentLevelTbl.EffectVal - num2));
            CString cstring2 = StringManager.Instance.StaticString1024();
            if (talentLevelTbl.Effect <= 1000)
            {
                GameConstants.GetEffectValue(cstring2, talentLevelTbl.Effect, 0u, 6, num2);
            }
            else
            {
                GameConstants.GetEffectValue(cstring2, talentLevelTbl.Effect, 0u, 7, num2);
            }
            GameConstants.GetEffectValue(this.ContentStr, talentLevelTbl.Effect, num2, 0, 0f);
            this.ContText.text = this.ContentStr.ToString();
            this.ContText.SetAllDirty();
            this.ContText.cachedTextGenerator.Invalidate();
            this.EffectNextStr.StringToFormat(cstring2);
            this.EffectNextStr.AppendFormat(instance.mStringTable.GetStringByID(5013u));
            this.EffectNextText.text = this.EffectNextStr.ToString();
            this.EffectNextText.SetAllDirty();
            this.EffectNextText.cachedTextGenerator.Invalidate();
            this.NeedPointStr.IntToFormat((long)talentLevelTbl.NeedPoint, 1, false);
            this.NeedPointStr.AppendFormat("{0}");
            this.NeedPointText.text = this.NeedPointStr.ToString();
            this.NeedPointText.SetAllDirty();
            this.NeedPointText.cachedTextGenerator.Invalidate();
            this.LearnTrans.gameObject.SetActive(true);
            this.ResearchFull.gameObject.SetActive(false);
            this.FullFrame.gameObject.SetActive(false);
            this.Frame.gameObject.SetActive(true);
        }
        else
        {
            this.EffectNextText.text = string.Empty;
            this.LearnTrans.gameObject.SetActive(false);
            this.ResearchFull.gameObject.SetActive(true);
            this.FullFrame.gameObject.SetActive(true);
            this.Frame.gameObject.SetActive(false);
            this.ResetBtn.gameObject.SetActive(true);
            this.ResetStateImg.color = Color.white;
        }
        this.SetBtnStyle(instance.CheckTalentState((ushort)this.TalentID, this.SaveSlot, 1), recordByKey.LevelMax);
    }
Ejemplo n.º 5
0
 // 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];
             }
         }
     }
 }
Ejemplo n.º 6
0
    // Token: 0x06002040 RID: 8256 RVA: 0x003D2DE0 File Offset: 0x003D0FE0
    public void UpdateTechInfo()
    {
        DataManager instance    = DataManager.Instance;
        byte        b           = 0;
        byte        b2          = 0;
        TechDataTbl recordByKey = DataManager.Instance.TechData.GetRecordByKey((ushort)this.TechID);
        byte        techLevel   = instance.GetTechLevel(recordByKey.TechID);

        this.TechName.text = instance.mStringTable.GetStringByID((uint)recordByKey.TechName);
        float   num       = 173.8f / (float)recordByKey.LevelMax;
        Vector2 sizeDelta = this.DegreeRect.sizeDelta;

        sizeDelta.x = num * (float)techLevel;
        this.DegreeRect.sizeDelta = sizeDelta;
        this.LevelStr.ClearString();
        this.LevelStr.IntToFormat((long)techLevel, 1, false);
        this.LevelStr.IntToFormat((long)recordByKey.LevelMax, 1, false);
        if (GUIManager.Instance.IsArabic)
        {
            this.LevelStr.AppendFormat("{1}/{0}");
        }
        else
        {
            this.LevelStr.AppendFormat("{0}/{1}");
        }
        this.LevelText.text = this.LevelStr.ToString();
        this.LevelText.SetAllDirty();
        this.LevelText.cachedTextGenerator.Invalidate();
        this.GraphicID = recordByKey.Graphic;
        if (GUIManager.Instance.TechMaterial == null)
        {
            this.TechImage.enabled = false;
        }
        else
        {
            this.TechImage.sprite   = GUIManager.Instance.GetTechSprite(this.GraphicID);
            this.TechImage.material = GUIManager.Instance.TechMaterial;
            this.TechImage.enabled  = true;
        }
        this.EffectStr.ClearString();
        this.EffectNextStr.ClearString();
        this.ContentStr.ClearString();
        uint         num2  = 0u;
        byte         level = Math.Max(1, techLevel);
        TechLevelTbl techLevelTbl;

        if (instance.GetTechLevelupData(out techLevelTbl, (ushort)this.TechID, level))
        {
            if (techLevel > 0)
            {
                num2 += techLevelTbl.EffectVal;
            }
            CString cstring = StringManager.Instance.StaticString1024();
            if (techLevelTbl.Effect <= 1000)
            {
                if (num2 > 0u)
                {
                    GameConstants.GetEffectValue(cstring, techLevelTbl.Effect, 0u, 6, num2);
                }
            }
            else if (techLevel > 0)
            {
                GameConstants.GetEffectValue(cstring, techLevelTbl.Effect, 0u, 7, num2);
            }
            GameConstants.GetEffectValue(this.ContentStr, techLevelTbl.Effect, num2, 0, 0f);
            b = (byte)cstring[0];
            this.EffectStr.StringToFormat(cstring);
            this.EffectStr.AppendFormat(instance.mStringTable.GetStringByID(5012u));
            this.EffectText.text = this.EffectStr.ToString();
            this.EffectText.SetAllDirty();
            this.EffectText.cachedTextGenerator.Invalidate();
            this.ContText.text = this.ContentStr.ToString();
            this.ContText.SetAllDirty();
            this.ContText.cachedTextGenerator.Invalidate();
        }
        if (techLevel < recordByKey.LevelMax && instance.GetTechLevelupData(out techLevelTbl, (ushort)this.TechID, techLevel + 1))
        {
            num2 = techLevelTbl.EffectVal - num2;
            CString cstring2 = StringManager.Instance.StaticString1024();
            if (techLevelTbl.Effect <= 1000)
            {
                GameConstants.GetEffectValue(cstring2, techLevelTbl.Effect, 0u, 6, num2);
            }
            else
            {
                GameConstants.GetEffectValue(cstring2, techLevelTbl.Effect, 0u, 7, num2);
            }
            GameConstants.GetEffectValue(this.ContentStr, techLevelTbl.Effect, num2, 0, 0f);
            this.ContText.text = this.ContentStr.ToString();
            this.ContText.SetAllDirty();
            this.ContText.cachedTextGenerator.Invalidate();
            b2 = (byte)cstring2[0];
            this.EffectNextStr.StringToFormat(cstring2);
            this.EffectNextStr.AppendFormat(instance.mStringTable.GetStringByID(5013u));
            this.EffectNextText.text = this.EffectNextStr.ToString();
            this.EffectNextText.SetAllDirty();
            this.EffectNextText.cachedTextGenerator.Invalidate();
            this.ConfirmTrans.gameObject.SetActive(true);
            this.ResearchFull.gameObject.SetActive(false);
            this.DegreeRect.gameObject.SetActive(true);
            this.FullFrame.gameObject.SetActive(false);
            this.Frame.gameObject.SetActive(true);
        }
        else
        {
            this.EffectNextText.text = string.Empty;
            this.ConfirmTrans.gameObject.SetActive(false);
            this.ResearchFull.gameObject.SetActive(true);
            this.DegreeRect.gameObject.SetActive(false);
            this.FullFrame.gameObject.SetActive(true);
            this.Frame.gameObject.SetActive(false);
        }
        byte b3 = instance.CheckTechState((ushort)this.TechID);

        this.ConfirmBtn.m_BtnID2 = this.TechID;
        this.ConfirmBtn.m_BtnID3 = (int)b3;
        if (b == 0)
        {
            this.EffectRect.gameObject.SetActive(false);
        }
        else
        {
            this.EffectRect.gameObject.SetActive(true);
            Vector2 anchoredPosition = this.EffectRect.anchoredPosition;
            if (b2 == 0)
            {
                anchoredPosition.y = -281f;
            }
            else
            {
                anchoredPosition.y = -269f;
            }
            this.EffectRect.anchoredPosition = anchoredPosition;
        }
        if (b2 == 0)
        {
            this.EffectNextText.gameObject.SetActive(false);
        }
        else
        {
            this.EffectNextText.gameObject.SetActive(true);
            Vector2 anchoredPosition2 = this.EffectNextText.rectTransform.anchoredPosition;
            if (b == 0)
            {
                anchoredPosition2.y = -280f;
            }
            else
            {
                anchoredPosition2.y = -297f;
            }
            this.EffectNextText.rectTransform.anchoredPosition = anchoredPosition2;
        }
        if ((b3 & 1) > 0)
        {
            if ((b3 & 2) == 0)
            {
                this.LockPanel.gameObject.SetActive(true);
                this.Lock.gameObject.SetActive(true);
                this.Lock1.gameObject.SetActive(false);
            }
            else
            {
                this.Lock.gameObject.SetActive(false);
                this.Lock1.gameObject.SetActive(true);
                this.LockPanel.gameObject.SetActive(false);
            }
        }
        else
        {
            this.Lock.gameObject.SetActive(false);
            this.LockPanel.gameObject.SetActive(false);
            this.Lock1.gameObject.SetActive(false);
        }
        if (GUIManager.Instance.GuideParm1 == 3 && this.TechID == (int)GUIManager.Instance.GuideParm2)
        {
            GUIManager.Instance.GuideArrow_Position(new Vector3(0f, -132.88f, 0f), ArrowDirect.Ar_Up);
        }
    }
Ejemplo n.º 7
0
    // Token: 0x060010D1 RID: 4305 RVA: 0x001DF65C File Offset: 0x001DD85C
    public void SetTopic()
    {
        CString cstring  = StringManager.Instance.StaticString1024();
        CString cstring2 = StringManager.Instance.StaticString1024();

        for (int i = 0; i < 2; i++)
        {
            this.text_NextTopic_Info[i].gameObject.SetActive(true);
        }
        this.Cstr_NowTopic_Info[0].ClearString();
        this.Cstr_NowTopic_Info[1].ClearString();
        this.Cstr_NextTopic_Info[0].ClearString();
        this.Cstr_NextTopic_Info[1].ClearString();
        if (!this.AM.bArenaKVK)
        {
            this.ImgNowCD.gameObject.SetActive(true);
            this.ImgNextCD.gameObject.SetActive(false);
            for (int j = 0; j < 2; j++)
            {
                this.text_NowTopic_Info[j].gameObject.SetActive(true);
            }
            if (this.AM.m_NowArenaTopicID[0] != 0 && this.AM.m_NowArenaTopicID[1] != 0)
            {
                this.Cstr_NowTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NowArenaTopicID[0]));
                this.Cstr_NowTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NowArenaTopicID[1]));
                this.Cstr_NowTopic_Info[0].AppendFormat(this.DM.mStringTable.GetStringByID(9115u));
            }
            else
            {
                if (this.AM.m_NowArenaTopicID[0] != 0)
                {
                    this.Cstr_NowTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NowArenaTopicID[0]));
                }
                else
                {
                    this.Cstr_NowTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NowArenaTopicID[1]));
                }
                this.Cstr_NowTopic_Info[0].AppendFormat(this.DM.mStringTable.GetStringByID(9152u));
            }
            this.text_NowTopic_Info[0].text = this.Cstr_NowTopic_Info[0].ToString();
            this.text_NowTopic_Info[0].SetAllDirty();
            this.text_NowTopic_Info[0].cachedTextGenerator.Invalidate();
            this.text_NowTopic_Info[0].cachedTextGeneratorForLayout.Invalidate();
            if (this.text_NowTopic_Info[0].preferredHeight > this.text_NowTopic_Info[0].rectTransform.sizeDelta.y)
            {
                this.text_NowTopic_Info[0].rectTransform.sizeDelta = new Vector2(this.text_NowTopic_Info[0].rectTransform.sizeDelta.x, this.text_NowTopic_Info[0].preferredHeight + 1f);
            }
            this.text_NowTopic_Info[1].rectTransform.anchoredPosition = new Vector2(this.text_NowTopic_Info[0].rectTransform.anchoredPosition.x, this.text_NowTopic_Info[0].rectTransform.anchoredPosition.y - (this.text_NowTopic_Info[0].preferredHeight + 1f + 14f));
            cstring.ClearString();
            cstring2.ClearString();
            if (this.AM.m_NowTopicEffect[0].Effect != 0 && this.AM.m_NowTopicEffect[1].Effect != 0)
            {
                GameConstants.GetEffectValue(cstring, this.AM.m_NowTopicEffect[0].Effect, (uint)this.AM.m_NowTopicEffect[0].Value, 10, 0f);
                GameConstants.GetEffectValue(cstring2, this.AM.m_NowTopicEffect[1].Effect, (uint)this.AM.m_NowTopicEffect[1].Value, 10, 0f);
                this.Cstr_NowTopic_Info[1].StringToFormat(cstring);
                this.Cstr_NowTopic_Info[1].StringToFormat(cstring2);
                this.Cstr_NowTopic_Info[1].AppendFormat(this.DM.mStringTable.GetStringByID(9116u));
            }
            else
            {
                if (this.AM.m_NowTopicEffect[0].Effect != 0)
                {
                    GameConstants.GetEffectValue(cstring, this.AM.m_NowTopicEffect[0].Effect, (uint)this.AM.m_NowTopicEffect[0].Value, 10, 0f);
                }
                else
                {
                    GameConstants.GetEffectValue(cstring, this.AM.m_NowTopicEffect[1].Effect, (uint)this.AM.m_NowTopicEffect[1].Value, 10, 0f);
                }
                this.Cstr_NowTopic_Info[1].StringToFormat(cstring);
                this.Cstr_NowTopic_Info[1].AppendFormat(this.DM.mStringTable.GetStringByID(9153u));
            }
            this.text_NowTopic_Info[1].text = this.Cstr_NowTopic_Info[1].ToString();
            this.text_NowTopic_Info[1].SetAllDirty();
            this.text_NowTopic_Info[1].cachedTextGenerator.Invalidate();
            this.text_NowTopic_Info[1].cachedTextGeneratorForLayout.Invalidate();
            if (this.text_NowTopic_Info[1].preferredHeight > this.text_NowTopic_Info[1].rectTransform.sizeDelta.y)
            {
                this.text_NowTopic_Info[1].rectTransform.sizeDelta = new Vector2(this.text_NowTopic_Info[1].rectTransform.sizeDelta.x, this.text_NowTopic_Info[1].preferredHeight + 1f);
            }
            if (this.AM.m_NextArenaTopicID[0] != 0 && this.AM.m_NextArenaTopicID[1] != 0)
            {
                this.Cstr_NextTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NextArenaTopicID[0]));
                this.Cstr_NextTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NextArenaTopicID[1]));
                this.Cstr_NextTopic_Info[0].AppendFormat(this.DM.mStringTable.GetStringByID(9115u));
            }
            else
            {
                if (this.AM.m_NextArenaTopicID[0] != 0)
                {
                    this.Cstr_NextTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NextArenaTopicID[0]));
                }
                else
                {
                    this.Cstr_NextTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NextArenaTopicID[1]));
                }
                this.Cstr_NextTopic_Info[0].AppendFormat(this.DM.mStringTable.GetStringByID(9152u));
            }
            this.text_NextTopic_Info[0].text = this.Cstr_NextTopic_Info[0].ToString();
            this.text_NextTopic_Info[0].SetAllDirty();
            this.text_NextTopic_Info[0].cachedTextGenerator.Invalidate();
            this.text_NextTopic_Info[0].cachedTextGeneratorForLayout.Invalidate();
            if (this.text_NextTopic_Info[0].preferredHeight > this.text_NextTopic_Info[0].rectTransform.sizeDelta.y)
            {
                this.text_NextTopic_Info[0].rectTransform.sizeDelta = new Vector2(this.text_NextTopic_Info[0].rectTransform.sizeDelta.x, this.text_NextTopic_Info[0].preferredHeight + 1f);
            }
            this.text_NextTopic_Info[1].rectTransform.anchoredPosition = new Vector2(this.text_NextTopic_Info[0].rectTransform.anchoredPosition.x, this.text_NextTopic_Info[0].rectTransform.anchoredPosition.y - (this.text_NextTopic_Info[0].preferredHeight + 1f + 14f));
            cstring.ClearString();
            cstring2.ClearString();
            if (this.AM.m_NextTopicEffect[0].Effect != 0 && this.AM.m_NextTopicEffect[1].Effect != 0)
            {
                GameConstants.GetEffectValue(cstring, this.AM.m_NextTopicEffect[0].Effect, (uint)this.AM.m_NextTopicEffect[0].Value, 10, 0f);
                GameConstants.GetEffectValue(cstring2, this.AM.m_NextTopicEffect[1].Effect, (uint)this.AM.m_NextTopicEffect[1].Value, 10, 0f);
                this.Cstr_NextTopic_Info[1].StringToFormat(cstring);
                this.Cstr_NextTopic_Info[1].StringToFormat(cstring2);
                this.Cstr_NextTopic_Info[1].AppendFormat(this.DM.mStringTable.GetStringByID(9116u));
            }
            else
            {
                if (this.AM.m_NextTopicEffect[0].Effect != 0)
                {
                    GameConstants.GetEffectValue(cstring, this.AM.m_NextTopicEffect[0].Effect, (uint)this.AM.m_NextTopicEffect[0].Value, 10, 0f);
                }
                else
                {
                    GameConstants.GetEffectValue(cstring, this.AM.m_NextTopicEffect[1].Effect, (uint)this.AM.m_NextTopicEffect[1].Value, 10, 0f);
                }
                this.Cstr_NextTopic_Info[1].StringToFormat(cstring);
                this.Cstr_NextTopic_Info[1].AppendFormat(this.DM.mStringTable.GetStringByID(9153u));
            }
            this.text_NextTopic_Info[1].text = this.Cstr_NextTopic_Info[1].ToString();
            this.text_NextTopic_Info[1].SetAllDirty();
            this.text_NextTopic_Info[1].cachedTextGenerator.Invalidate();
            this.text_NextTopic_Info[1].cachedTextGeneratorForLayout.Invalidate();
            if (this.text_NextTopic_Info[1].preferredHeight > this.text_NextTopic_Info[1].rectTransform.sizeDelta.y)
            {
                this.text_NextTopic_Info[1].rectTransform.sizeDelta = new Vector2(this.text_NextTopic_Info[1].rectTransform.sizeDelta.x, this.text_NextTopic_Info[1].preferredHeight + 1f);
            }
        }
        else
        {
            this.text_Close.gameObject.SetActive(true);
            this.ImgNowCD.gameObject.SetActive(false);
            for (int k = 0; k < 2; k++)
            {
                this.text_NowTopic_Info[k].gameObject.SetActive(false);
            }
            if (this.AM.m_NextArenaTopicID[0] != 0 && this.AM.m_NextArenaTopicID[1] != 0)
            {
                this.Cstr_NextTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NextArenaTopicID[0]));
                this.Cstr_NextTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NextArenaTopicID[1]));
                this.Cstr_NextTopic_Info[0].AppendFormat(this.DM.mStringTable.GetStringByID(9115u));
            }
            else
            {
                if (this.AM.m_NextArenaTopicID[0] != 0)
                {
                    this.Cstr_NextTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NextArenaTopicID[0]));
                }
                else
                {
                    this.Cstr_NowTopic_Info[0].StringToFormat(this.DM.mStringTable.GetStringByID(9200u + (uint)this.AM.m_NextArenaTopicID[1]));
                }
                this.Cstr_NextTopic_Info[0].AppendFormat(this.DM.mStringTable.GetStringByID(9152u));
            }
            this.text_NextTopic_Info[0].text = this.Cstr_NextTopic_Info[0].ToString();
            this.text_NextTopic_Info[0].SetAllDirty();
            this.text_NextTopic_Info[0].cachedTextGenerator.Invalidate();
            this.text_NextTopic_Info[0].cachedTextGeneratorForLayout.Invalidate();
            if (this.text_NextTopic_Info[0].preferredHeight > this.text_NextTopic_Info[0].rectTransform.sizeDelta.y)
            {
                this.text_NextTopic_Info[0].rectTransform.sizeDelta = new Vector2(this.text_NextTopic_Info[0].rectTransform.sizeDelta.x, this.text_NextTopic_Info[0].preferredHeight + 1f);
            }
            this.text_NextTopic_Info[1].rectTransform.anchoredPosition = new Vector2(this.text_NextTopic_Info[0].rectTransform.anchoredPosition.x, this.text_NextTopic_Info[0].rectTransform.anchoredPosition.y - (this.text_NextTopic_Info[0].preferredHeight + 1f + 14f));
            cstring.ClearString();
            cstring2.ClearString();
            if (this.AM.m_NextTopicEffect[0].Effect != 0 && this.AM.m_NextTopicEffect[1].Effect != 0)
            {
                GameConstants.GetEffectValue(cstring, this.AM.m_NowTopicEffect[0].Effect, (uint)this.AM.m_NextTopicEffect[0].Value, 10, 0f);
                GameConstants.GetEffectValue(cstring2, this.AM.m_NowTopicEffect[1].Effect, (uint)this.AM.m_NextTopicEffect[1].Value, 10, 0f);
                this.Cstr_NextTopic_Info[1].StringToFormat(cstring);
                this.Cstr_NextTopic_Info[1].StringToFormat(cstring2);
                this.Cstr_NextTopic_Info[1].AppendFormat(this.DM.mStringTable.GetStringByID(9116u));
            }
            else
            {
                if (this.AM.m_NextTopicEffect[0].Effect != 0)
                {
                    GameConstants.GetEffectValue(cstring, this.AM.m_NextTopicEffect[0].Effect, (uint)this.AM.m_NextTopicEffect[0].Value, 10, 0f);
                }
                else
                {
                    GameConstants.GetEffectValue(cstring, this.AM.m_NextTopicEffect[1].Effect, (uint)this.AM.m_NextTopicEffect[1].Value, 10, 0f);
                }
                this.Cstr_NextTopic_Info[1].StringToFormat(cstring);
                this.Cstr_NextTopic_Info[1].AppendFormat(this.DM.mStringTable.GetStringByID(9153u));
            }
            this.text_NextTopic_Info[1].text = this.Cstr_NextTopic_Info[1].ToString();
            this.text_NextTopic_Info[1].SetAllDirty();
            this.text_NextTopic_Info[1].cachedTextGenerator.Invalidate();
            this.text_NextTopic_Info[1].cachedTextGeneratorForLayout.Invalidate();
            if (this.text_NextTopic_Info[1].preferredHeight > this.text_NextTopic_Info[1].rectTransform.sizeDelta.y)
            {
                this.text_NextTopic_Info[1].rectTransform.sizeDelta = new Vector2(this.text_NextTopic_Info[1].rectTransform.sizeDelta.x, this.text_NextTopic_Info[1].preferredHeight + 1f);
            }
        }
        if (this.ImgNowCD.IsActive())
        {
            this.Cstr_NowCD.ClearString();
            if (this.AM.m_NowArenaTopicEndTime >= this.DM.ServerTime)
            {
                if ((this.AM.m_NowArenaTopicEndTime - this.DM.ServerTime) / 86400L > 0L)
                {
                    this.Cstr_NowCD.IntToFormat((this.AM.m_NowArenaTopicEndTime - this.DM.ServerTime) / 86400L, 1, false);
                    this.Cstr_NowCD.AppendFormat("{0}d");
                }
                else
                {
                    this.Cstr_NowCD.IntToFormat((this.AM.m_NowArenaTopicEndTime - this.DM.ServerTime) % 86400L / 3600L, 2, false);
                    this.Cstr_NowCD.IntToFormat((this.AM.m_NowArenaTopicEndTime - this.DM.ServerTime) % 3600L / 60L, 2, false);
                    this.Cstr_NowCD.IntToFormat((this.AM.m_NowArenaTopicEndTime - this.DM.ServerTime) % 60L, 2, false);
                    this.Cstr_NowCD.AppendFormat("{0}:{1}:{2}");
                }
            }
            else
            {
                this.Cstr_NowCD.IntToFormat(0L, 2, false);
                this.Cstr_NowCD.IntToFormat(0L, 2, false);
                this.Cstr_NowCD.IntToFormat(0L, 2, false);
                this.Cstr_NowCD.AppendFormat("{0}:{1}:{2}");
            }
            this.text_NowCD[1].text = this.Cstr_NowCD.ToString();
            this.text_NowCD[1].SetAllDirty();
            this.text_NowCD[1].cachedTextGenerator.Invalidate();
        }
        if (this.ImgNextCD.IsActive())
        {
            this.Cstr_NextCD.ClearString();
            long num;
            if (this.text_Close.IsActive())
            {
                num = this.AM.m_NowArenaTopicEndTime - this.DM.ServerTime;
            }
            else
            {
                num = this.AM.m_NextArenaTopicBeginTime - this.DM.ServerTime;
            }
            if (num >= this.DM.ServerTime)
            {
                if (num / 86400L > 0L)
                {
                    this.Cstr_NextCD.IntToFormat(num / 86400L, 1, false);
                    this.Cstr_NextCD.AppendFormat("{0}d");
                }
                else
                {
                    this.Cstr_NextCD.IntToFormat(num % 86400L / 3600L, 2, false);
                    this.Cstr_NextCD.IntToFormat(num % 3600L / 60L, 2, false);
                    this.Cstr_NextCD.IntToFormat(num % 60L, 2, false);
                    this.Cstr_NextCD.AppendFormat("{0}:{1}:{2}");
                }
            }
            else
            {
                this.Cstr_NextCD.IntToFormat(0L, 2, false);
                this.Cstr_NextCD.IntToFormat(0L, 2, false);
                this.Cstr_NextCD.IntToFormat(0L, 2, false);
                this.Cstr_NextCD.AppendFormat("{0}:{1}:{2}");
            }
            this.text_NextCD[1].text = this.Cstr_NextCD.ToString();
            this.text_NextCD[1].SetAllDirty();
            this.text_NextCD[1].cachedTextGenerator.Invalidate();
        }
    }
Ejemplo n.º 8
0
    // Token: 0x06001F1A RID: 7962 RVA: 0x003BADEC File Offset: 0x003B8FEC
    private void SetSkillHint(ushort heroID, byte enhance, int MaxNum, byte Arms)
    {
        byte[] array = new byte[]
        {
            1,
            2,
            4,
            8,
            20
        };
        Hero recordByKey = this.DM.HeroTable.GetRecordByKey(heroID);

        ushort[] array2 = new ushort[]
        {
            recordByKey.GroupSkill1,
            recordByKey.GroupSkill2,
            recordByKey.GroupSkill3,
            recordByKey.GroupSkill4
        };
        CurHeroData curHeroData = this.DM.curHeroData[(uint)heroID];

        this.GM.ChangeHeroItemImg(this.m_HeroIcon.transform, eHeroOrItem.Hero, heroID, curHeroData.Star, 0, 0);
        this.m_HeroNameText.text      = this.DM.mStringTable.GetStringByID((uint)recordByKey.HeroTitle);
        this.m_HeroArmsText.text      = this.GetArmsStr(Arms);
        this.m_HeroEnhanceIcon.sprite = this.GetEnhanceIcon(enhance);
        this.m_HeroMaxNumStr.ClearString();
        StringManager.Instance.IntToFormat((long)MaxNum, 1, true);
        this.m_HeroMaxNumStr.AppendFormat("{0}");
        this.m_HeroMaxNum.text = this.m_HeroMaxNumStr.ToString();
        for (int i = 0; i < 4; i++)
        {
            Skill   recordByKey2 = this.DM.SkillTable.GetRecordByKey(array2[i]);
            CString cstring      = StringManager.Instance.StaticString1024();
            cstring.ClearString();
            cstring.IntToFormat((long)recordByKey2.SkillIcon, 5, false);
            cstring.AppendFormat("s{0}");
            this.m_SkillImage[i].sprite   = this.GM.LoadSkillSprite(cstring);
            this.m_SkillImage[i].material = this.GM.GetSkillMaterial();
            this.m_SkillFrame[i].sprite   = this.GM.LoadFrameSprite("sk");
            this.m_SkillFrame[i].material = this.GM.GetFrameMaterial();
            this.m_SkliiNameText[i].text  = this.DM.mStringTable.GetStringByID((uint)recordByKey2.SkillName);
            this.m_SkillInfoStr[i].ClearString();
            float num = (float)recordByKey2.HurtValue + (float)((ushort)array[(int)(curHeroData.Star - 1)] * recordByKey2.HurtIncreaseValue) / 1000f;
            if (recordByKey2.HurtKind == 1)
            {
                GameConstants.GetEffectValue(this.m_SkillInfoStr[i], recordByKey2.HurtAddition, 0u, 7, 0f);
                this.m_SkillInfoStr[i].IntToFormat((long)((ushort)array[(int)(curHeroData.Star - 1)] * recordByKey2.HurtIncreaseValue), 1, false);
                this.m_SkillInfoStr[i].AppendFormat("{0}");
                this.m_SkillInfoText[i].text = this.m_SkillInfoStr[i].ToString();
            }
            else
            {
                if (recordByKey2.SkillType == 10)
                {
                    GameConstants.GetEffectValue(this.m_SkillInfoStr[i], recordByKey2.HurtAddition, (uint)num, 1, 0f);
                }
                else
                {
                    GameConstants.GetEffectValue(this.m_SkillInfoStr[i], recordByKey2.HurtAddition, 0u, 6, num * 100f);
                }
                this.m_SkillInfoText[i].text = this.m_SkillInfoStr[i].ToString();
            }
            if (curHeroData.SkillLV[i] == 0)
            {
                this.SetMaskColor(i, true);
                this.m_SkillMaskTf[i].gameObject.SetActive(true);
            }
            else
            {
                this.SetMaskColor(i, false);
                this.m_SkillMaskTf[i].gameObject.SetActive(false);
            }
        }
    }