From bf8aa23758385601c2fc8f5f7e37b9b3211010cb Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Sun, 29 May 2011 18:50:52 +0200 Subject: Implement joker number in settings control git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@302 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/SettingsControl.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/jrummikub') 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() { @Override @@ -60,6 +61,14 @@ public class SettingsControl { } }); + view.getSettingsPanel().getChangeJokerNumberEvent().add(new IListener1() { + @Override + public void handle(Integer value) { + settings.setJokerNumber(value); + update(); + } + }); + addPlayerSettingsListeners(); view.showSettingsPanel(true); -- cgit v1.2.3