| | |
| | | EquipSource equipSourceDes;
|
| | | [SerializeField]
|
| | | Text equipSourceText;
|
| | | [SerializeField] Text dogzEquipDesText;
|
| | | #endregion
|
| | |
|
| | | [SerializeField]
|
| | |
| | |
|
| | | private void SetGemAttrUI()
|
| | | {
|
| | | if (itemAttrData.itemConfig.LV < itemTipsModel.gemOpenLvs[0])
|
| | | if (itemAttrData.itemConfig.LV < itemTipsModel.gemOpenLvs[0]
|
| | | || itemAttrData.packType == PackType.rptDogzEquip
|
| | | || itemAttrData.packType == PackType.rptDogzItem)
|
| | | {
|
| | | gemAttr.SetActive(false);
|
| | | return;
|
| | |
| | |
|
| | | private void SetBottomUI()
|
| | | {
|
| | | if (itemAttrData.itemConfig.Description == "" || string.IsNullOrEmpty(itemAttrData.itemConfig.Description))
|
| | | if(itemAttrData.packType != PackType.rptDogzItem && itemAttrData.packType != PackType.rptDogzEquip)
|
| | | {
|
| | | equipSourceNormal.gameObject.SetActive(true);
|
| | | equipSourceDes.gameObject.SetActive(false);
|
| | | equipSourceText.gameObject.SetActive(false);
|
| | | SetBottomText(equipSourceNormal);
|
| | | dogzEquipDesText.gameObject.SetActive(false);
|
| | | if (itemAttrData.itemConfig.Description == "" || string.IsNullOrEmpty(itemAttrData.itemConfig.Description))
|
| | | {
|
| | | equipSourceNormal.gameObject.SetActive(true);
|
| | | equipSourceDes.gameObject.SetActive(false);
|
| | | equipSourceText.gameObject.SetActive(false);
|
| | | SetBottomText(equipSourceNormal);
|
| | | }
|
| | | else
|
| | | {
|
| | | equipSourceNormal.gameObject.SetActive(false);
|
| | | equipSourceDes.gameObject.SetActive(true);
|
| | | equipSourceText.gameObject.SetActive(true);
|
| | | SetBottomText(equipSourceDes);
|
| | | equipSourceText.text = itemAttrData.itemConfig.Description;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | equipSourceNormal.gameObject.SetActive(false);
|
| | | equipSourceDes.gameObject.SetActive(true);
|
| | | equipSourceText.gameObject.SetActive(true);
|
| | | SetBottomText(equipSourceDes);
|
| | | equipSourceText.text = itemAttrData.itemConfig.Description;
|
| | | equipSourceDes.gameObject.SetActive(false);
|
| | | equipSourceText.gameObject.SetActive(false);
|
| | | dogzEquipDesText.gameObject.SetActive(true);
|
| | | dogzEquipDesText.text = itemAttrData.itemConfig.Description;
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | private void SetBottomText(EquipSource source)
|