Exemple #1
0
 public void HandleStageEndRspForRetry(StageEndRsp rsp)
 {
     if (MiscData.Config.BasicConfig.FeatureOnRetrySendLevelEndReq)
     {
         GeneralConfirmDialogContext context;
         this.ClearLevelEndReqInfo();
         if (rsp.get_retcode() == null)
         {
             context = new GeneralConfirmDialogContext {
                 type = GeneralConfirmDialogContext.ButtonType.SingleButton,
                 desc = LocalizationGeneralLogic.GetText("Menu_Desc_SuccRetrySendLevelEndReq", new object[0])
             };
             Singleton <MainUIManager> .Instance.ShowDialog(context, UIType.Any);
         }
         else
         {
             string networkErrCodeOutput = LocalizationGeneralLogic.GetNetworkErrCodeOutput(rsp.get_retcode(), new object[0]);
             context = new GeneralConfirmDialogContext {
                 type = GeneralConfirmDialogContext.ButtonType.SingleButton
             };
             object[] replaceParams = new object[] { networkErrCodeOutput };
             context.desc = LocalizationGeneralLogic.GetText("Menu_Desc_FailRetrySendLevelEndReq", replaceParams);
             Singleton <MainUIManager> .Instance.ShowDialog(context, UIType.Any);
         }
     }
 }
        private void CreateNuclearActivityTips()
        {
            GeneralConfirmDialogContext dialogContext = new GeneralConfirmDialogContext {
                type           = GeneralConfirmDialogContext.ButtonType.SingleButton,
                desc           = LocalizationGeneralLogic.GetText("Menu_NuclearOpen", new object[0]),
                buttonCallBack = delegate(bool confirmed) {
                    if (confirmed)
                    {
                        this.JumpToNuclearActivity();
                    }
                }
            };

            Singleton <MainUIManager> .Instance.ShowDialog(dialogContext, UIType.Any);
        }
Exemple #3
0
 private bool OnRechargeSuccNotify(RechargeFinishNotify rsp)
 {
     if (this._loadingWheelDialogContext != null)
     {
         this._loadingWheelDialogContext.Finish();
         this._loadingWheelDialogContext = null;
     }
     if ((rsp.get_retcode() == null) || ((rsp.get_retcode() == 2) && !string.IsNullOrEmpty(this.GetReceipt())))
     {
         RechargeDataItem storeItemByProductID = this.GetStoreItemByProductID(rsp.get_product_name());
         string           str = (storeItemByProductID == null) ? string.Empty : storeItemByProductID.productName;
         int num = (int)(rsp.get_pay_hcoin() + rsp.get_free_hcoin());
         GeneralConfirmDialogContext dialogContext = new GeneralConfirmDialogContext {
             type = GeneralConfirmDialogContext.ButtonType.SingleButton
         };
         object[] replaceParams = new object[] { str, num };
         dialogContext.desc = LocalizationGeneralLogic.GetText("IAPTransitionSuccess", replaceParams);
         if (< > f__am$cache8 == null)
         {