| | |
| | | |
| | | public class OSRankHeroCallGiftCell : CellView |
| | | { |
| | | [SerializeField] ImageEx rateImage; |
| | | [SerializeField] TextEx rateText; |
| | | [SerializeField] Text nameText; |
| | | [SerializeField] ItemCell[] itemCells; |
| | | [SerializeField] Button buyBtn; |
| | |
| | | id -= 100000000; |
| | | var ctgConfig = CTGConfig.Get(id); |
| | | nameText.text = ctgConfig.Title; |
| | | rateImage.SetActive(true); |
| | | rateText.text = Language.Get("DailySpecials07", ctgConfig.Percentage); |
| | | for (int i = 0; i < itemCells.Length; i++) |
| | | { |
| | | var itemCell = itemCells[i]; |
| | |
| | | SysNotifyMgr.Instance.ShowTip("ActivityOver"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | RechargeManager.Instance.CTG(id); |
| | | }); |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | rateImage.SetActive(false); |
| | | //商店 |
| | | var storeConfig = StoreConfig.Get(id); |
| | | nameText.text = storeConfig.Name; |
| | |
| | | moneyIcon.SetIconWithMoneyType(storeConfig.MoneyType); |
| | | } |
| | | redImg.SetActive(storeConfig.MoneyNum == 0); |
| | | } |
| | | } |
| | | var buyCnt = StoreModel.Instance.GetShopLimitBuyCount(id); |
| | | buyLimitText.text = Language.Get("storename6", storeConfig.LimitCnt - buyCnt, storeConfig.LimitCnt); |
| | | |