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); }
public void RefreshItem() { equipItem.Init(m_itemFileInfo); Lable_Name.SetText(NGUIColor.SetTxtColor(LanguageTextManager.GetString(m_itemFileInfo.LocalItemData._szGoodsName), (TextColor)m_itemFileInfo.LocalItemData._ColorLevel)); Lable_position.SetText(NGUIColor.SetTxtColor(EquipmentUpgradeDataManger.Instance.PositionDic[m_itemFileInfo.LocalItemData._GoodsSubClass], TextColor.green)); Lable_Force.SetText((int)EquipItem.GetEquipForce(m_itemFileInfo)); Icon_CanUp.SetActive(ContainerInfomanager.Instance.EquipmentCanUp(EquipmentUpgradeDataManger.Instance.CurrentType, m_itemFileInfo)); SetItemLevel(EquipmentUpgradeDataManger.Instance.CurrentType, m_itemFileInfo); }
int GetWeaponForce() { int force = 0; ItemFielInfo itemfileInfo = ContainerInfomanager.Instance.GetCurrentWeaponItemInfo(); if (itemfileInfo != null) { force = (int)EquipItem.GetEquipForce(itemfileInfo); } return(force); }
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(); }