Example #1
0
        public override void OpenPopup(UIViewRequest request)
        {
            base.OpenPopup(request);


            ((SigninUIView)this.View).UpdateDayLoginElements(isClaimDay, CurrectDay);

            isClaimOnlineCount = Data.GameData.ClaimOnlineReward;
        }
Example #2
0
        public override void OpenPopup(UIViewRequest request)
        {
            base.OpenPopup(request);
            UnlockCarViewRequest _requestData = request as UnlockCarViewRequest;

            RewardLevel  = _requestData.RewardCarLevel;
            RewardAmount = _requestData.RewardCarAmount;
            ((UnlockCarUIView)this.View).ShowView(GameDataManager.Instance._CarNodeGroupData.GetProperties(_requestData.UnlockCarLevel), GameDataManager.Instance._CarNodeGroupData.GetIcon(RewardLevel), RewardAmount);
        }
Example #3
0
        public void RequestPopup(UIViewRequest request)
        {
            if (!this.IsShowingPopup || !request.Enqueue)
            {
                this.OpenPopupNow(request);
                return;
            }

            this._popupQueue.AddLast(request);
        }
Example #4
0
        private void TryOpenNextPopup()
        {
            if (this._popupQueue.Count == 0)
            {
                return;
            }
            UIViewRequest value = this._popupQueue.First.Value;

            this._popupQueue.RemoveFirst();
            this.OpenPopupNow(value);
        }
        public override void OpenPopup(UIViewRequest request)
        {
            base.OpenPopup(request);

            ClaimRedPackViewRequest _Request = request as ClaimRedPackViewRequest;

            Amount = _Request.RedPackAmount;

            double totalAmount = 800.639f;

            totalAmount = Math.Round(totalAmount, 2);
            ((ClaimRedPackUIView)this.View).ShowView(Amount, totalAmount);
        }
Example #6
0
        private void OpenPopupNow(UIViewRequest request)
        {
            if (!request.IsValid)
            {
                this.TryOpenNextPopup();
                return;
            }
            UIBaseState popupBaseState = (UIBaseState)this._fsm.GetState(request.PopupType);

            if (this._fsm.CurrentState == popupBaseState)
            {
                return;
            }
            this._fsm.SwitchState(popupBaseState);
            if (this._fsm.CurrentState == popupBaseState)
            {
                UIViewBackground.gameObject.SetActive(true);
                popupBaseState.OpenPopup(request);
                popupBaseState.transform.parent.SetAsLastSibling();
                return;
            }
            Debug.LogWarning("State change unsuccessfull! PopupManager may have become corrupted");
        }
Example #7
0
 public override void OpenPopup(UIViewRequest request)
 {
     base.OpenPopup(request);
 }
Example #8
0
 public void ClosePopup(UIViewRequest request, Action callback, bool animate, bool synchronous)
 {
     ((UIBaseState)this._fsm.GetState(request.PopupType)).ClosePopup(callback, animate, synchronous);
 }
Example #9
0
 public virtual void OpenPopup(UIViewRequest request)
 {
 }