summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jrummikub/control/SettingsControl.java9
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);