public void setTranslationPhrases(List<String> translationPhrases) {
   _btnSave.setText(translationPhrases.get(0));
   _btnSave.setTooltipText(translationPhrases.get(1));
   _btnSaveAs.setText(translationPhrases.get(2));
   _btnSaveAs.setTooltipText(translationPhrases.get(3));
   _btnEditSettings.setText(translationPhrases.get(4));
   _btnEditSettings.setTooltipText(translationPhrases.get(5));
   _btnExitGame.setText(translationPhrases.get(6));
   _btnExitGame.setTooltipText(translationPhrases.get(7));
   _btnResumeGame.setText(translationPhrases.get(8));
   _btnResumeGame.setTooltipText(translationPhrases.get(9));
 }
  public InGamePauseView() {
    super("InGamePauseView");

    _window = new BWindow(BuiSystem.getStyle(), new AbsoluteLayout());
    _window.setStyleClass("pausebackground");
    _window.setSize(display.getWidth(), display.getHeight());

    int buttonCount = 5;
    int buttonWidth = _window.getWidth() / 3;
    int buttonHeight = 32;
    int buttonSpacing = (int) (buttonHeight * 0.5);
    int totalButtonHeight = (buttonCount * buttonHeight) + ((buttonCount - 1) * buttonSpacing);
    int startPosY = totalButtonHeight + (_window.getHeight() - totalButtonHeight) / 2;
    int stepY = buttonHeight + buttonSpacing;
    int posX = (_window.getWidth() - buttonWidth) / 2;
    int buttonIndex = 0;

    _btnSave = new BButton("");
    _btnSave.setPreferredSize(buttonWidth, buttonHeight);
    _btnSave.setEnabled(false);
    _btnSave.addListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            _inGamePauseListener.savePressed();
          }
        });
    _window.add(_btnSave, new Point(posX, startPosY - (stepY * buttonIndex++)));

    _btnSaveAs = new BButton("");
    _btnSaveAs.setPreferredSize(buttonWidth, buttonHeight);
    _btnSaveAs.setEnabled(false);
    _btnSaveAs.addListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            _inGamePauseListener.saveAsPressed();
          }
        });
    _window.add(_btnSaveAs, new Point(posX, startPosY - (stepY * buttonIndex++)));

    _btnEditSettings = new BButton("");
    _btnEditSettings.setPreferredSize(buttonWidth, buttonHeight);
    _btnEditSettings.addListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            _inGamePauseListener.editSettingsPressed();
          }
        });
    _window.add(_btnEditSettings, new Point(posX, startPosY - (stepY * buttonIndex++)));

    _btnExitGame = new BButton("");
    _btnExitGame.setPreferredSize(buttonWidth, buttonHeight);
    _btnExitGame.addListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            _inGamePauseListener.exitGamePressed();
          }
        });
    _window.add(_btnExitGame, new Point(posX, startPosY - (stepY * buttonIndex++)));

    _btnResumeGame = new BButton("");
    _btnResumeGame.setPreferredSize(buttonWidth, buttonHeight);
    _btnResumeGame.addListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            _inGamePauseListener.resumeGamePressed();
          }
        });
    _window.add(_btnResumeGame, new Point(posX, startPosY - (stepY * buttonIndex++)));

    _window.center();
  }