Hiding 'End Turn' button

This commit is contained in:
magenoxx 2012-06-28 00:53:59 +04:00
parent 004aa20d08
commit 25bdce4b67
3 changed files with 17 additions and 7 deletions

View file

@ -176,4 +176,12 @@ public class HelperPanel extends JPanel {
textArea.setText(message);
}
}
public void setYourTurn(boolean yourTurn) {
if (yourTurn) {
btnEndTurn.setVisible(true);
} else {
btnEndTurn.setVisible(false);
}
}
}