| | |
| | | { |
| | | [SerializeField] protected ImageEx vipImage; |
| | | [SerializeField] protected TextEx vipText; |
| | | [SerializeField] protected OutlineEx vipTextOutline; |
| | | [SerializeField] protected ImageEx rateImage; |
| | | [SerializeField] protected TextEx rateText; |
| | | [SerializeField] protected Text nameText; |
| | |
| | | id -= 100000000; |
| | | var ctgConfig = CTGConfig.Get(id); |
| | | nameText.text = ctgConfig.Title; |
| | | |
| | | vipImage.SetActive(ctgConfig.VipLevel > 0); |
| | | vipText.text = ctgConfig.VipLevel > 0 ? Language.Get($"VipLevelInfo{ctgConfig.VipLevel}") : string.Empty; |
| | | if (ctgConfig.VipLevel > 0) |
| | | { |
| | | vipImage.SetSprite($"VipLevel{ctgConfig.VipLevel}"); |
| | | vipText.text = Language.Get($"VipLevelInfo{ctgConfig.VipLevel}"); |
| | | vipText.color = InvestModel.Instance.GetTextColor(ctgConfig.VipLevel); |
| | | vipTextOutline.OutlineColor = InvestModel.Instance.GetOutlineColor(ctgConfig.VipLevel); |
| | | } |
| | | |
| | | rateImage.SetActive(true); |
| | | rateText.text = Language.Get("DailySpecials07", ctgConfig.Percentage); |
| | | for (int i = 0; i < itemCells.Length; i++) |
| | |
| | | return; |
| | | } |
| | | |
| | | if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.PrivilegeCard) && ctgConfig.VipLevel == 1 && !InvestModel.Instance.IsInvested(InvestModel.monthCardType)) |
| | | if (ctgConfig.VipLevel > 0 && !FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.PrivilegeCard)) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("MinggeAuto8"); |
| | | return; |
| | | } |
| | | if (ctgConfig.VipLevel == 1 && !InvestModel.Instance.IsInvested(InvestModel.monthCardType)) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("MinggeAuto5"); |
| | | UIManager.Instance.OpenWindow<PrivilegeCardWin>(); |
| | | return; |
| | | } |
| | | if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.PrivilegeCard) && ctgConfig.VipLevel == 2 && !InvestModel.Instance.IsInvested(InvestModel.foreverCardType)) |
| | | if (ctgConfig.VipLevel == 2 && !InvestModel.Instance.IsInvested(InvestModel.foreverCardType)) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("MinggeAuto7"); |
| | | UIManager.Instance.OpenWindow<PrivilegeCardWin>(); |