diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-29 18:50:52 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-29 18:50:52 +0200 |
commit | bf8aa23758385601c2fc8f5f7e37b9b3211010cb (patch) | |
tree | 45252758ad73a8553143880518f315e4cfaae879 /src | |
parent | 9e21e3f23c68a077f95f3cf47bf70cf1e8df3542 (diff) | |
download | JRummikub-bf8aa23758385601c2fc8f5f7e37b9b3211010cb.tar JRummikub-bf8aa23758385601c2fc8f5f7e37b9b3211010cb.zip |
Implement joker number in settings control
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@302 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src')
-rw-r--r-- | src/jrummikub/control/SettingsControl.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jrummikub/control/SettingsControl.java b/src/jrummikub/control/SettingsControl.java index 17a1dbf..42d3659 100644 --- a/src/jrummikub/control/SettingsControl.java +++ b/src/jrummikub/control/SettingsControl.java @@ -51,6 +51,7 @@ public class SettingsControl { */ public void startSettings() { view.getSettingsPanel().setInitialMeldThreshold(settings.getInitialMeldThreshold()); + view.getSettingsPanel().setJokerNumber(settings.getJokerNumber()); view.getSettingsPanel().getChangeInitialMeldThresholdEvent().add(new IListener1<Integer>() { @Override @@ -60,6 +61,14 @@ public class SettingsControl { } }); + view.getSettingsPanel().getChangeJokerNumberEvent().add(new IListener1<Integer>() { + @Override + public void handle(Integer value) { + settings.setJokerNumber(value); + update(); + } + }); + addPlayerSettingsListeners(); view.showSettingsPanel(true); |