mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Limit team editing to each player
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -194,6 +194,7 @@ public class PlayerPanel extends FPanel {
|
|||||||
txtPlayerName.setEnabled(mayEdit);
|
txtPlayerName.setEnabled(mayEdit);
|
||||||
txtPlayerName.setText(type == LobbySlotType.OPEN ? StringUtils.EMPTY : playerName);
|
txtPlayerName.setText(type == LobbySlotType.OPEN ? StringUtils.EMPTY : playerName);
|
||||||
nameRandomiser.setEnabled(mayEdit);
|
nameRandomiser.setEnabled(mayEdit);
|
||||||
|
teamComboBox.setEnabled(mayEdit);
|
||||||
deckLabel.setVisible(mayEdit);
|
deckLabel.setVisible(mayEdit);
|
||||||
deckBtn.setVisible(mayEdit);
|
deckBtn.setVisible(mayEdit);
|
||||||
chkReady.setVisible(type == LobbySlotType.LOCAL || type == LobbySlotType.REMOTE);
|
chkReady.setVisible(type == LobbySlotType.LOCAL || type == LobbySlotType.REMOTE);
|
||||||
|
|||||||
Reference in New Issue
Block a user