private void ShowErrorDialog(string errorCode) { Singleton <DebugLogScreen> .Instance.Print(errorCode); if (Loading.IsShow()) { Loading.Invisible(); } if (GUIMain.IsBarrierON()) { GUIMain.BarrierOFF(); } AlertManager.ShowAlertDialog(delegate(int x) { if (Loading.IsShow()) { Loading.ResumeDisplay(); } if (GUIMain.IsBarrierON()) { GUIMain.BarrierON(null); } if (this.actCallBackReConsume != null) { this.actCallBackReConsume(false); } }, errorCode); }
private IEnumerator WaitMovedForFarmCamera(GUICameraControll farmCamera, Vector3 position) { GUIMain.BarrierON(null); yield return(AppCoroutine.Start(farmCamera.MoveCameraToLookAtPoint(position, 1f), false)); GUIMain.BarrierOFF(); yield break; }
public IEnumerator InitStore() { if (this.init_status > StoreInit.STATUS.DONE_NOTHING) { yield break; } bool result = false; bool initialized = false; StoreUtil.Instance().InitStore(delegate(bool r) { result = r; initialized = true; }); while (!initialized) { yield return(null); } if (!result) { bool isShow = Loading.IsShow(); bool isBarrier = GUIMain.IsBarrierON(); if (isShow) { Loading.Invisible(); } if (isBarrier) { GUIMain.BarrierOFF(); } bool isClosed = false; AlertManager.ShowAlertDialog(delegate(int i) { isClosed = true; }, "C-NP200"); while (!isClosed) { yield return(null); } if (isShow) { Loading.ResumeDisplay(); } if (isBarrier) { GUIMain.BarrierON(null); } } else { this.init_status = StoreInit.STATUS.DONE_INIT; } global::Debug.Log("================================================= STORE INIT isSuccess --> " + result); yield break; }
private IEnumerator ReConsume() { if (this.init_status != StoreInit.STATUS.DONE_REQUEST_PRODUCT) { yield break; } bool isSuccess = false; bool isFinished = false; StoreUtil.Instance().ReConsumeNonConsumedItems(delegate(bool result) { isFinished = true; isSuccess = result; }); while (!isFinished) { yield return(null); } global::Debug.Log("================================================= STORE ReConsume isSuccess --> " + isSuccess); if (!isSuccess) { bool isShow = Loading.IsShow(); bool isBarrier = GUIMain.IsBarrierON(); if (isShow) { Loading.Invisible(); } if (isBarrier) { GUIMain.BarrierOFF(); } bool isClosed = false; AlertManager.ShowAlertDialog(delegate(int i) { isClosed = true; }, "C-SH02"); while (!isClosed) { yield return(null); } if (isShow) { Loading.ResumeDisplay(); } if (isBarrier) { GUIMain.BarrierON(null); } } else { this.init_status = StoreInit.STATUS.DONE_RECONSUME; } yield break; }
private IEnumerator GetProducts(string[] productIDS, bool stateChange) { string err = "err"; bool isFinished = false; StoreUtil.Instance().RequestProducts(productIDS, delegate(string result) { err = result; isFinished = true; }); while (!isFinished) { yield return(null); } if (err != string.Empty) { bool isShow = Loading.IsShow(); bool isBarrier = GUIMain.IsBarrierON(); if (isShow) { Loading.Invisible(); } if (isBarrier) { GUIMain.BarrierOFF(); } bool isClosed = false; AlertManager.ShowAlertDialog(delegate(int i) { isClosed = true; }, AlertManager.GetNeptuneErrorCode(err)); while (!isClosed) { yield return(null); } if (isShow) { Loading.ResumeDisplay(); } if (isBarrier) { GUIMain.BarrierON(null); } this.getProductsSucceed = false; } else { if (stateChange) { this.init_status = StoreInit.STATUS.DONE_REQUEST_PRODUCT; } this.getProductsSucceed = true; } yield break; }
private void OnTapYes() { RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); this.equip.act = 1; GameWebAPI.ChipEquipLogic request = ChipDataMng.RequestAPIChipEquip(this.equip, new Action <int>(this.EndAttachment)); base.StartCoroutine(request.Run(null, delegate(Exception noop) { RestrictionInput.EndLoad(); GUIMain.BarrierOFF(); }, null)); }
public static void EndLoad() { if (Loading.IsShow()) { Loading.Invisible(); } if (!RestrictionInput.isDisableBackKeySetting) { GUIManager.ExtBackKeyReady = true; } GUIMain.BarrierOFF(); }
private void OnFinishAgreement(bool isAgree) { GUIMain.BarrierOFF(); if (isAgree) { PlayerPrefs.SetInt("ChatAgreement", 1); PlayerPrefs.Save(); } else { this.ClosePanel(false); } }
private IEnumerator TouchUp() { GUIMain.BarrierON(null); SoundMng.Instance().TryPlaySE("SEInternal/Farm/se_203", 0f, false, true, null, -1); Animator animator = base.GetComponent <Animator>(); if (null != animator && null == animator.runtimeAnimatorController) { animator.runtimeAnimatorController = FarmDataManager.FacilityAnimator; animator.enabled = true; } yield return(base.StartCoroutine(FarmObjectAnimation.PlayAnimation(base.gameObject, FacilityAnimationID.SELECT))); GUIMain.BarrierOFF(); FarmColosseum.ShowPvPTop(); yield break; }
protected override IEnumerator StartEvent() { GUIFace.CloseDigiviceChildButtonNotPlaySE(); GUIFace.CloseFacilityChildButtonNotPlaySE(); yield return(base.StartCoroutine(this.CreateHomeData())); if (!this.isSkipTutorial) { TipsLoading.Instance.StopTipsLoad(true); Loading.Invisible(); GUIMain.BarrierOFF(); } GUIManager.ExtBackKeyReady = false; RestrictionInput.isDisableBackKeySetting = true; base.EnableFarmInput(); if (this.actionFinishedLoad != null) { this.actionFinishedLoad(); this.actionFinishedLoad = null; } yield break; }
private void StartFarm() { ServerDateTime.isUpdateServerDateTime = true; FarmRoot instance = FarmRoot.Instance; instance.DigimonManager.AppaearanceDigimon(null); this.EnableFarmInput(); List <string> deckMonsterPathList = ClassSingleton <MonsterUserDataMng> .Instance.GetDeckMonsterPathList(false); AssetDataCacheMng.Instance().RegisterCacheType(deckMonsterPathList, AssetDataCacheMng.CACHE_TYPE.CHARA_PARTY, false); if (ConstValue.IS_CHAT_OPEN == 1) { ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification.StartGetHistoryIdList(); } GUIMain.BarrierOFF(); this.ShowWebWindow(); if (GUIScreenHome.homeOpenCallback != null) { GUIScreenHome.homeOpenCallback(); GUIScreenHome.homeOpenCallback = null; } }
protected void actCBQuest(bool isSuccess) { if (isSuccess) { base.SetCloseAction(delegate(int i) { GUIMain.BarrierOFF(); GUIManager.CloseAllCommonDialog(delegate { GUIMain.ShowCommonDialog(null, "CMD_QuestSelect", null); }); if (this.callbackAction != null) { this.callbackAction(); } }); this.ClosePanel(false); } else { RestrictionInput.EndLoad(); } }
private IEnumerator CheckRecoverBattle() { BattleNextBattleOption.ClearBattleMenuSettings(); if (ClassSingleton <BattleDataStore> .Instance.IsBattleRecoverable) { bool isCancel = false; Action onBattleRecover = delegate() { GUIMain.BarrierOFF(); }; Action onCancelAction = delegate() { isCancel = true; PlayerPrefs.SetString("userDungeonTicketId", string.Empty); }; ClassSingleton <BattleDataStore> .Instance.OpenBattleRecoverConfirm(onBattleRecover, onCancelAction); while (!isCancel) { yield return(null); } } yield break; }
private void consumeProductCallBackSuccess() { int numFromProductId = this.GetNumFromProductId(this._productId); if (Loading.IsShow()) { RestrictionInput.EndLoad(); } if (GUIMain.IsBarrierON()) { GUIMain.BarrierOFF(); } CMD_ModalMessage cmd_ModalMessage = (CMD_ModalMessage)GUIMain.ShowCommonDialog(delegate(int x) { if (this.actCallBackReConsume != null) { this.actCallBackReConsume(true); } if (Loading.IsShow()) { Loading.ResumeDisplay(); } if (GUIMain.IsBarrierON()) { GUIMain.BarrierON(null); } }, "CMD_ModalMessage", null); StoreUtil.StoneStoreData stoneStoreDataFromProductId = this.GetStoneStoreDataFromProductId(this._productId); if (!this.isFromStart) { cmd_ModalMessage.Title = StringMaster.GetString("ShopRestoreTitle"); cmd_ModalMessage.Info = StringMaster.GetString("ShopRestoreInfo"); } else { if (!stoneStoreDataFromProductId.packFlg) { cmd_ModalMessage.Title = StringMaster.GetString("ShopConfirmTitle"); } else { cmd_ModalMessage.Title = stoneStoreDataFromProductId.productTitle; } cmd_ModalMessage.Info = string.Format(StringMaster.GetString("ShopCompleted"), numFromProductId.ToString()); } if (this.isFromStart) { DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point += numFromProductId; GUIPlayerStatus.RefreshParams_S(false); } else { if (DataMng.Instance().RespDataUS_PlayerInfo != null) { DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point += numFromProductId; } GUIPlayerStatus.RefreshParams_S(false); } StoreUtil.StoreProductInfo storeProductInfo_ByProductId = this.GetStoreProductInfo_ByProductId(this._productId); string currency = "JPY"; if (storeProductInfo_ByProductId != null) { currency = storeProductInfo_ByProductId.currencyCode; } AdjustWrapper.Instance.TrackEvent(AdjustWrapper.EVENT_ID_SEND_PAYMENT, this.GetStorePriceFromProductId(this._productId), currency); GUICollider.EnableAllCollider("StoreUtil"); }
private void OpenPageByParam(CMDWebWindow.WebParam param) { global::Debug.Log("Tag :" + param.Tag); global::Debug.Log("URL :" + param.Url); string tag = param.Tag; switch (tag) { case "MoveGacha": if (GUIManager.CheckTopDialog("CMD_GashaTOP", null) == null) { this.ClosePanelNotEndShow(true); base.SetCloseAction(delegate(int i) { if (this.callbackAction != null) { this.callbackAction(); } GUIMain.BarrierOFF(); GUIMain.ShowCommonDialog(null, "CMD_GashaTOP", null); }); } this.ClosePanel(true); break; case "MoveQuest": if (CMD_QuestSelect.instance == null) { this.ClosePanelNotEndShow(true); RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); List <string> list = new List <string>(); list.Add("1"); list.Add("3"); list.Add("8"); ClassSingleton <QuestData> .Instance.GetWorldDungeonInfo(list, new Action <bool>(this.actCBQuest)); } else { this.ClosePanel(true); } break; case "MoveExchange": if (GUIManager.CheckTopDialog("CMD_ClearingHouseTOP", null) == null) { this.ClosePanelNotEndShow(true); base.SetCloseAction(delegate(int i) { if (this.callbackAction != null) { this.callbackAction(); } GUIMain.BarrierOFF(); GUIMain.ShowCommonDialog(null, "CMD_ClearingHouseTOP", null); }); } this.ClosePanel(true); break; case "ToggleBGM": this.ToggleBGM(false); break; case "Link": if (base.GetActionStatus() != CommonDialog.ACT_STATUS.CLOSING && base.GetActionStatus() != CommonDialog.ACT_STATUS.CLOSED) { string text = param.Url; text = this.DecodeUrl(text); if (CMDWebWindow.webViewObject != null) { CMDWebWindow.webViewObject.Close(); } this.StartWebView(ConstValue.APP_WEB_DOMAIN + text); } break; case "ExLink": Application.OpenURL(param.Url); break; case "PlayMovie": { this.isMute = false; this.ToggleBGM(true); PlayMovie component = base.GetComponent <PlayMovie>(); component.actionFinishedMovie = new Action <bool>(this.ToggleBGM); NpMovie.TouchFinish = true; NpMovie.SoundEnable = true; NpMovie.ControllerEnabled = false; string path = ConstValue.APP_ASSET_DOMAIN + this.DecodeUrl(param.Url); NpMovie.PlayStreaming(path, base.gameObject, component); break; } } }