Пример #1
0
    public void Init(ItemFielInfo itemfileInfo)
    {
        IconItem.Init(itemfileInfo);
        Lable_name.SetText(NGUIColor.SetTxtColor(LanguageTextManager.GetString(itemfileInfo.LocalItemData._szGoodsName), (TextColor)itemfileInfo.LocalItemData._ColorLevel));
        Lable_position.SetText(EquipmentUpgradeDataManger.Instance.PositionDic[itemfileInfo.LocalItemData._GoodsSubClass]);
        Lable_Currentforce.SetText((int)EquipItem.GetEquipForce(itemfileInfo));
        int addforce = ((int)EquipItem.GetNextLevelEquipForce(itemfileInfo, UpgradeType.StarUp) - (int)EquipItem.GetEquipForce(itemfileInfo));

        if (addforce > 0)
        {
            Lable_addForce.gameObject.SetActive(true);
            Lable_addForce.SetText("+" + addforce);
        }
        else
        {
            Lable_addForce.gameObject.SetActive(false);
        }
        //Lable_strengthLevle.SetText(EquipmentUpgradeDataManger.Instance.GetStrengthLevel(itemfileInfo));
        int starLevel = PlayerDataManager.Instance.GetEquipmentStarLevel((EquiptSlotType)itemfileInfo.sSyncContainerGoods_SC.nPlace);

        if (starLevel < CommonDefineManager.Instance.CommonDefine.StartStrengthLimit)
        {
            Eff_go.SetActive(true);
        }
        else
        {
            Eff_go.SetActive(false);
        }
        SetStarColor(starLevel);
    }
Пример #2
0
    public void Init(ItemFielInfo itemfileInfo)
    {
        IconItem.Init(itemfileInfo);
        Lable_name.SetText(NGUIColor.SetTxtColor(LanguageTextManager.GetString(itemfileInfo.LocalItemData._szGoodsName), (TextColor)itemfileInfo.LocalItemData._ColorLevel));
        Lable_position.SetText(EquipmentUpgradeDataManger.Instance.PositionDic[itemfileInfo.LocalItemData._GoodsSubClass]);
        Lable_Currentforce.SetText((int)EquipItem.GetEquipForce(itemfileInfo));
        int addforce = ((int)EquipItem.GetNextLevelEquipForce(itemfileInfo, UpgradeType.Strength) - (int)EquipItem.GetEquipForce(itemfileInfo));

        if (addforce > 0)
        {
            Lable_addForce.gameObject.SetActive(true);
            Lable_addForce.SetText("+" + addforce);
        }
        else
        {
            Lable_addForce.gameObject.SetActive(false);
        }
        Lable_strengthLevle.SetText(EquipmentUpgradeDataManger.Instance.GetStrengthLevel(itemfileInfo));
        TaskGuideBtnRegister();
    }