Skip to content

Commit

Permalink
try adding to an actual page
Browse files Browse the repository at this point in the history
  • Loading branch information
riverwanderer committed Sep 25, 2023
1 parent 6e6e894 commit 0770d4d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions vassal-app/src/main/java/VASSAL/build/module/GlobalOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -913,18 +913,21 @@ public List<String> getPropertyNames() {
final Prefs prefs = gm.getPrefs();

// PlayerRoster control features - see Definition of Sides ref manual for usage
final BooleanConfigurer VassalRandomSideCfg = new BooleanConfigurer("VassalRandomSide", "", Boolean.FALSE); //$NON-NLS$
final BooleanConfigurer VassalRandomSideCfg = new BooleanConfigurer("VassalRandomSide", "Random", Boolean.FALSE); //$NON-NLS$
prefs.addOption("Test", VassalRandomSideCfg);

final StringConfigurer VassalForceSideCfg = new StringConfigurer("VassalForceSide", "", ""); //$NON-NLS$
final StringConfigurer VassalForceSideCfg = new StringConfigurer("VassalForceSide", "", "Force"); //$NON-NLS$
prefs.addOption("Test", VassalForceSideCfg);

// Initialise values that are intended to be transient within a module
prefs.setValue("VassalRandomSide", Boolean.FALSE);
prefs.setValue("VassalForceSide", "");

// Add reserved preference names
l.add("VassalRandomSide");
l.add("VassalForceSide");
l.add(VassalRandomSideCfg.getKey());
l.add(VassalForceSideCfg.getKey());
// l.add("VassalRandomSide");
// l.add("VassalForceSide");

return l;
}
Expand Down

0 comments on commit 0770d4d

Please sign in to comment.