Skip to content

Commit

Permalink
try to set property
Browse files Browse the repository at this point in the history
  • Loading branch information
riverwanderer committed Sep 25, 2023
1 parent 10aedd3 commit 1180d54
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,19 +348,19 @@ public void addTo(Buildable parent) {
// config custom pref and its global property

final BooleanConfigurer VassalRandomSideCfg = new BooleanConfigurer("VassalRandomSide", "Random", Boolean.FALSE); //$NON-NLS$
final MutableProperty.Impl pVassalRandomSide = new MutableProperty.Impl("", this);
final MutableProperty.Impl pVassalRandomSide = new MutableProperty.Impl("VassalRandomSide", this);
pVassalRandomSide.addTo(gm);
prefs.addOption("Test", VassalRandomSideCfg);
VassalRandomSideCfg.addPropertyChangeListener(e -> pVassalRandomSide.setPropertyValue(VassalRandomSideCfg.getValueString()));
VassalRandomSideCfg.setValue(Boolean.FALSE);
pVassalRandomSide.setPropertyValue(VassalRandomSideCfg.getValueString());

final StringConfigurer VassalForceSideCfg = new StringConfigurer("VassalForceSide", "Force", "test3"); //$NON-NLS$
final MutableProperty.Impl pVassalForceSide = new MutableProperty.Impl("", this);
final MutableProperty.Impl pVassalForceSide = new MutableProperty.Impl("VassalForceSide", this);
pVassalForceSide.addTo(gm);
prefs.addOption("Test", VassalForceSideCfg);
VassalForceSideCfg.addPropertyChangeListener(e -> pVassalForceSide.setPropertyValue(VassalForceSideCfg.getValueString()));
VassalForceSideCfg.setValue("Test");
VassalForceSideCfg.setValue("Test6");
pVassalForceSide.setPropertyValue(VassalForceSideCfg.getValueString());

}
Expand Down

0 comments on commit 1180d54

Please sign in to comment.