Implemented initial meld threshold in settings control
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@296 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
09aa507e3b
commit
89e59b2f2c
1 changed files with 16 additions and 2 deletions
|
@ -50,6 +50,22 @@ public class SettingsControl {
|
|||
* Start the operation of the settings control
|
||||
*/
|
||||
public void startSettings() {
|
||||
view.getSettingsPanel().setInitialMeldThreshold(settings.getInitialMeldThreshold());
|
||||
|
||||
view.getSettingsPanel().getChangeInitialMeldThresholdEvent().add(new IListener1<Integer>() {
|
||||
@Override
|
||||
public void handle(Integer value) {
|
||||
settings.setInitialMeldThreshold(value);
|
||||
update();
|
||||
}
|
||||
});
|
||||
|
||||
addPlayerSettingsListeners();
|
||||
|
||||
view.showSettingsPanel(true);
|
||||
}
|
||||
|
||||
private void addPlayerSettingsListeners() {
|
||||
view.getSettingsPanel().getStartGameEvent().add(new IListener() {
|
||||
@Override
|
||||
public void handle() {
|
||||
|
@ -83,8 +99,6 @@ public class SettingsControl {
|
|||
setPlayerName(i, name);
|
||||
}
|
||||
});
|
||||
|
||||
view.showSettingsPanel(true);
|
||||
}
|
||||
|
||||
private void addPlayer() {
|
||||
|
|
Reference in a new issue