private bool OnStageEndRsp(StageEndRsp rsp)
 {
     this._stageEndRsp = rsp;
     if (rsp.get_retcode() == null)
     {
         if (this._levelSuccess)
         {
             LevelScoreManager instance = Singleton <LevelScoreManager> .Instance;
             if (rsp.get_stage_idSpecified())
             {
             }
             this._leftPanelAnimationManager.AddAnimation(base.view.transform.Find("Title").GetComponent <MonoAnimationinSequence>(), null);
             this.SetupRewardPanel(this._stageEndRsp);
             this.ShowRewardPanel();
         }
     }
     else
     {
         GeneralDialogContext dialogContext = new GeneralDialogContext {
             type  = GeneralDialogContext.ButtonType.SingleButton,
             title = LocalizationGeneralLogic.GetText("Menu_Title_Tips", new object[0]),
             desc  = LocalizationGeneralLogic.GetNetworkErrCodeOutput(rsp.get_retcode(), new object[0])
         };
         Singleton <MainUIManager> .Instance.ShowDialog(dialogContext, UIType.Any);
     }
     return(false);
 }
Exemple #2
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);
         }
     }
 }