Limit team editing to each player

Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
Jamin W. Collins
2018-02-13 18:30:58 -07:00
parent 711342829b
commit fbf0f98c3a

View File

@@ -194,6 +194,7 @@ public class PlayerPanel extends FPanel {
txtPlayerName.setEnabled(mayEdit);
txtPlayerName.setText(type == LobbySlotType.OPEN ? StringUtils.EMPTY : playerName);
nameRandomiser.setEnabled(mayEdit);
teamComboBox.setEnabled(mayEdit);
deckLabel.setVisible(mayEdit);
deckBtn.setVisible(mayEdit);
chkReady.setVisible(type == LobbySlotType.LOCAL || type == LobbySlotType.REMOTE);