public void Show()
 {
     ConfirmationPopupContent.InputParameters parameters2 = new ConfirmationPopupContent.InputParameters();
     parameters2.TitleText           = _.L(ConfigLoca.UI_PROMPT_QUIT, null, false);
     parameters2.DescriptionText     = _.L(ConfigLoca.UI_PROMPT_QUIT_DESCRIPTION, null, false);
     parameters2.LeftButtonText      = _.L(ConfigLoca.UI_BUTTON_NO, null, false);
     parameters2.RightButtonText     = _.L(ConfigLoca.UI_BUTTON_YES, null, false);
     parameters2.RightButtonCallback = new System.Action(this.onQuitConfirmationYes);
     parameters2.DisableCloseButton  = true;
     parameters2.SkipPauseGame       = !GameLogic.Binder.TimeSystem.paused();
     ConfirmationPopupContent.InputParameters parameter = parameters2;
     PlayerView.Binder.MenuSystem.transitionToMenu(MenuType.TechPopupMenu, MenuContentType.ConfirmationPopupContent, parameter, 0f, false, true);
 }
 public void onOkButtonClicked()
 {
     if (!PlayerView.Binder.MenuSystem.InTransition)
     {
         Player player = GameLogic.Binder.GameState.Player;
         if (player.SocialData.HeroNamingCount > 1)
         {
             this.onCustomCloseButtonClicked();
         }
         else if (player.SocialData.HeroNamingCount == 1)
         {
             ConfirmationPopupContent.InputParameters parameters;
             ConfirmationPopupContent.InputParameters parameters2;
             if (ConfigDevice.IsAndroid())
             {
                 parameters2                                = new ConfirmationPopupContent.InputParameters();
                 parameters2.TitleText                      = _.L(ConfigLoca.HERONAMING_TITLE, null, false);
                 parameters2.DescriptionText                = this.m_customName;
                 parameters2.LeftButtonText                 = _.L(ConfigLoca.UI_PROMPT_CANCEL, null, false);
                 parameters2.RightButtonText                = _.L(ConfigLoca.UI_PROMPT_CONFIRM, null, false);
                 parameters2.RightButtonCallback            = new System.Action(this.completeRenaming);
                 parameters2.NavigateBackEqualsToLeftButton = true;
                 parameters = parameters2;
             }
             else
             {
                 parameters2                    = new ConfirmationPopupContent.InputParameters();
                 parameters2.TitleText          = _.L(ConfigLoca.HERONAMING_TITLE, null, false);
                 parameters2.DescriptionText    = this.m_customName;
                 parameters2.LeftButtonText     = _.L(ConfigLoca.UI_PROMPT_CONFIRM, null, false);
                 parameters2.RightButtonText    = _.L(ConfigLoca.UI_PROMPT_CANCEL, null, false);
                 parameters2.LeftButtonCallback = new System.Action(this.completeRenaming);
                 parameters = parameters2;
             }
             PlayerView.Binder.MenuSystem.transitionToMenu(MenuType.ThinPopupMenu, MenuContentType.ConfirmationPopupContent, parameters, 0f, false, true);
         }
         else
         {
             this.completeRenaming();
         }
     }
 }