| | |
| | | |
| | | if (wishData.wishCnt < HappyXBModel.wishMaxOutCnt) |
| | | { |
| | | tipRect.SetActive(true); |
| | | freeText.SetActive(true); |
| | | itemCntText?.SetActive(false); |
| | | if (wishData == null || wishData.wishID == 0) |
| | | { |
| | | tipRect.SetActive(false); |
| | | } |
| | | else |
| | | { |
| | | tipRect.SetActive(true); |
| | | freeText.SetActive(true); |
| | | itemCntText?.SetActive(false); |
| | | |
| | | } |
| | | headGray = false; |
| | | } |
| | | else if (wishData.auto && PackManager.Instance.GetItemCountByID(PackType.Item, itemID) > 0) |
| | | else if (wishData.auto) |
| | | { |
| | | if (itemCntText == null) |
| | | { |
| | |
| | | itemIcon.SetItemSprite(itemID); |
| | | itemCntText.text = UIHelper.ShowUseItem(PackType.Item, itemID, 1, bright: false); |
| | | } |
| | | headGray = false; |
| | | headGray = PackManager.Instance.GetItemCountByID(PackType.Item, itemID) <= 0; |
| | | } |
| | | else |
| | | { |