diff options
Diffstat (limited to 'src/jrummikub/view/impl/View.java')
-rw-r--r-- | src/jrummikub/view/impl/View.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java index 0f279ab..2829b1b 100644 --- a/src/jrummikub/view/impl/View.java +++ b/src/jrummikub/view/impl/View.java @@ -643,13 +643,16 @@ public class View extends JFrame implements IView { } private void doSetBottomPanel(BottomPanelType type) { - boolean showStartTurnPanel = type == BottomPanelType.START_TURN_PANEL - || type == BottomPanelType.INVALID_TURN_PANEL; - startTurnPanel.setVisible(showStartTurnPanel); + boolean showStartTurnPanel = (type == BottomPanelType.START_TURN_PANEL || type == BottomPanelType.INVALID_TURN_PANEL); startTurnPanel.setType(type); - winPanel.setVisible(type == BottomPanelType.WIN_PANEL); + startTurnPanel.setVisible(showStartTurnPanel); + + boolean showWinPanel = (type == BottomPanelType.WIN_PANEL || type == BottomPanelType.NETWORK_WIN_PANEL); + winPanel.setType(type); + winPanel.setVisible(showWinPanel); + playerPanel.setVisible((!showStartTurnPanel) - && type != BottomPanelType.WIN_PANEL && type != null); + && (!showWinPanel) && type != null); if (type == BottomPanelType.START_GAME_PANEL) { table.setStoneSets(Collections.<Pair<StoneSet, Position>> emptyList()); |