/** * Called when the user selects the "View->Game Options" menu item. */ private void showOptions() { if (client.getGame().getPhase() == IGame.Phase.PHASE_LOUNGE) { getGameOptionsDialog().setEditable(true); } else { getGameOptionsDialog().setEditable(false); } // Display the game options dialog. getGameOptionsDialog().update(client.getGame().getOptions()); getGameOptionsDialog().setVisible(true); }
clientgui.getGameOptionsDialog().setEditable(true);
false); god.update(g.getOptions()); god.setEditable(true); god.setVisible(true); for (IBasicOption opt : god.getOptions()) {
private void menuOptionsMMActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_menuOptionsActionPerformed GameOptionsDialog god = new GameOptionsDialog(getFrame(), getCampaign().getGameOptions(), false); god.refreshOptions(); god.setEditable(true); god.setVisible(true); if (!god.wasCancelled()) { getCampaign().setGameOptions(god.getOptions()); setCampaignOptionsFromGameOptions(); refreshCalendar(); } }// GEN-LAST:event_menuOptionsActionPerformed