| | |
| | | {
|
| | | if (GetSingleInvestState(foreverCardType, GetIdsByType(foreverCardType)[0]) == 0 && vipModel.realRecharge >= rechargeSumDict[foreverCardType])
|
| | | {
|
| | | WindowCenter.Instance.Open<ForeverCardWin>();
|
| | | PopupWindowsProcessor.Instance.Add("ForeverCardWin");
|
| | | }
|
| | |
|
| | | UpdateRedpoint();
|
| | |
| | | rechargeSumDict = ConfigParse.ParseIntDict(funcConfig.Numerical4); |
| | | |
| | | investTypes = m_InvestRechargeIds.Keys.ToList(); |
| | | |
| | | investTypes.Add(foreverCardType); |
| | | investTypes.Sort(); |
| | | |
| | | var configs = InvestConfig.GetValues(); |
| | | for (int i = 0; i < configs.Count; i++) |
| | | { |
| | | var config = configs[i]; |
| | | if (!investTypes.Contains(config.type) && config.type != foreverCardType) |
| | | if (!investTypes.Contains(config.type)) |
| | | { |
| | | continue; |
| | | } |
| | |
| | | && !WindowCenter.Instance.ExistAnyFullScreenOrMaskWin() && !StageLoad.Instance.isLoading
|
| | | && !ModelCenter.Instance.GetModel<TreasureModel>().newGotShowing)
|
| | | {
|
| | | WindowCenter.Instance.Open<ForeverCardWin>();
|
| | | //WindowCenter.Instance.Open<ForeverCardWin>();
|
| | | PopupWindowsProcessor.Instance.Add("ForeverCardWin");
|
| | | openState = openState | (int)Math.Pow(2, type);
|
| | | LocalSave.SetInt("ForeverCard" + PlayerDatas.Instance.baseData.PlayerID, openState);
|
| | | } |