private bool CheckMaxDigistoneCount() { int num = DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point + this.Data.num; bool flag = ConstValue.MAX_DIGISTONE_COUNT < num; if (flag && AlertManager.CheckDialogMessage("C-SH06")) { AlertManager.ShowAlertDialog(null, "C-SH06"); } return(flag); }
private IEnumerator InitShop(Action <int> f, float sizeX, float sizeY, float aT) { yield return(base.StartCoroutine(StoreInit.Instance().InitStore())); yield return(base.StartCoroutine(StoreInit.Instance().InitRestoreOperation())); yield return(base.StartCoroutine(StoreInit.Instance().GetProductsOperation())); if (StoreInit.Instance().IsSuccessReceiveProducts() && StoreInit.STATUS.DONE_RECONSUME <= StoreInit.Instance().GetStatus()) { if (DataMng.Instance().RespDataSH_Info.isShopMaintenance == 1) { base.SetCloseAction(f); StoreInit.Instance().SetStatusToDoneInit(); AlertManager.ShowAlertDialog(delegate(int i) { this.< ClosePanel > __BaseCallProxy0(false); }, "C-SH05"); } else if (DataMng.Instance().RespDataSH_Info.isOverDigiStone == 1) { base.SetCloseAction(f); if (AlertManager.CheckDialogMessage("C-SH06")) { AlertManager.ShowAlertDialog(delegate(int i) { this.< ClosePanel > __BaseCallProxy0(false); }, "C-SH06"); } } else { base.ShowDLG(); base.PartsTitle.SetTitle(StringMaster.GetString("ShopTitle")); this.SetDigistoneNumber(); this.SetProductScrollView(); base.Show(f, sizeX, sizeY, aT); } } else { base.SetCloseAction(f); base.ClosePanel(false); } RestrictionInput.EndLoad(); yield break; }
private void Open(string errorCode, string title, string message, bool isRetry, Action <int> onClosed, Func <CMD_Alert.ExtraFunctionReturnValue> onAlertButton) { if (Loading.IsShow()) { Loading.Invisible(); if (APIAlert.< > f__mg$cache0 == null) { APIAlert.< > f__mg$cache0 = new Action(Loading.ResumeDisplay); } this.ClosedAction = APIAlert.< > f__mg$cache0; } AlertManager.onCreateAlert = delegate(bool isCreate, CMD_Alert alert) { if (isCreate) { this.isOpen = true; if (null != alert && onAlertButton != null) { alert.SetActionButtonExtraFunction(onAlertButton); } } }; if (AlertManager.CheckDialogMessage(errorCode)) { AlertManager.ShowAlertDialog(onClosed, errorCode); } else { AlertManager.ButtonActionType actionType = AlertManager.ButtonActionType.Close; if (isRetry) { actionType = AlertManager.ButtonActionType.Retry; } AlertManager.ShowAlertDialog(onClosed, title, message, actionType, false); } }