fixed doSeeHandSize
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@523 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
b0a89642b7
commit
f304f20cbc
2 changed files with 4 additions and 4 deletions
|
@ -356,7 +356,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel {
|
|||
.setText(Integer.toString(gameSettings.getJokerNumber()));
|
||||
timeLabel.setText(gameSettings.getTotalTime() + " Sekunden");
|
||||
noLimitsLabel.setText(gameSettings.isNoLimits() ? "An" : "Aus");
|
||||
seeHandSizeLabel.setText(gameSettings.doSeeHandSize() ? "An" : "Aus");
|
||||
seeHandSizeLabel.setText(gameSettings.getSeeHandSize() ? "An" : "Aus");
|
||||
|
||||
colorLabelPanel.removeAll();
|
||||
|
||||
|
@ -384,7 +384,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel {
|
|||
jokerNumberSpinner.setValue(gameSettings.getJokerNumber());
|
||||
timeSpinner.setValue(gameSettings.getTotalTime());
|
||||
noLimitsBox.setSelected(gameSettings.isNoLimits());
|
||||
seeHandSizeBox.setSelected(gameSettings.doSeeHandSize());
|
||||
seeHandSizeBox.setSelected(gameSettings.getSeeHandSize());
|
||||
}
|
||||
|
||||
private void updatePlayerSettingsPanel(int i, PlayerSettings settings,
|
||||
|
|
|
@ -334,7 +334,7 @@ class SidePanel extends JPanel implements ISidePanel {
|
|||
GridBagConstraints c = new GridBagConstraints();
|
||||
c.gridx = 0;
|
||||
c.gridy = 0;
|
||||
c.gridheight = gameSettings.doSeeHandSize() ? 3 : 2;
|
||||
c.gridheight = gameSettings.getSeeHandSize() ? 3 : 2;
|
||||
c.weighty = 1;
|
||||
c.insets = new Insets(4, 4, 4, 4);
|
||||
playerColor = new JLabel(ImageUtil.createColorIcon(
|
||||
|
@ -376,7 +376,7 @@ class SidePanel extends JPanel implements ISidePanel {
|
|||
playerStatus = new JLabel(status);
|
||||
add(playerStatus, c);
|
||||
|
||||
if (gameSettings.doSeeHandSize()) {
|
||||
if (gameSettings.getSeeHandSize()) {
|
||||
JLabel handSizeLabel = new JLabel("Handsteine: ");
|
||||
JLabel handSizeInfo = new JLabel("" + player.getHand().getSize());
|
||||
c.gridy = 2;
|
||||
|
|
Reference in a new issue