public override void OpenPopup(UIViewRequest request) { base.OpenPopup(request); ((SigninUIView)this.View).UpdateDayLoginElements(isClaimDay, CurrectDay); isClaimOnlineCount = Data.GameData.ClaimOnlineReward; }
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); }
public void RequestPopup(UIViewRequest request) { if (!this.IsShowingPopup || !request.Enqueue) { this.OpenPopupNow(request); return; } this._popupQueue.AddLast(request); }
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); }
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"); }
public override void OpenPopup(UIViewRequest request) { base.OpenPopup(request); }
public void ClosePopup(UIViewRequest request, Action callback, bool animate, bool synchronous) { ((UIBaseState)this._fsm.GetState(request.PopupType)).ClosePopup(callback, animate, synchronous); }
public virtual void OpenPopup(UIViewRequest request) { }