| | |
| | | [SerializeField] Text nameTex;
|
| | | [SerializeField] CommonItemBaisc itemBaisc;
|
| | | [SerializeField] Button selectBtn;
|
| | | [SerializeField] Text strenLvText;
|
| | |
|
| | | DogzModel dogzModel { get { return ModelCenter.Instance.GetModel<DogzModel>(); } }
|
| | |
|
| | | public override void Refresh(CellView cell)
|
| | |
| | | nameTex.text = model.chinItemModel.ItemName;
|
| | | nameTex.color = UIHelper.GetUIColor(model.chinItemModel.ItemColor);
|
| | | itemBaisc.Init(model);
|
| | | int strenLv = 0;
|
| | | if (model.GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus) != null)
|
| | | {
|
| | | strenLv = model.GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus)[0];
|
| | | }
|
| | | if (strenLv > 0)
|
| | | {
|
| | | strenLvText.gameObject.SetActive(true);
|
| | | strenLvText.text = StringUtility.Contact("+", strenLv);
|
| | | }
|
| | | else
|
| | | {
|
| | | strenLvText.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | selectBtn.RemoveAllListeners();
|
| | | selectBtn.AddListener(()=>
|
| | | {
|