diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-21 19:16:16 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-21 19:16:16 +0200 |
commit | 5d0d5932971c456b85b142f9e483f0226dfefc2b (patch) | |
tree | 809b9b02de61fc92f8abd54b1651765f4d6b2547 /src/jrummikub/view/impl/View.java | |
parent | d09041304bee53b86c3ddd098a6ff39db85889f3 (diff) | |
download | JRummikub-5d0d5932971c456b85b142f9e483f0226dfefc2b.tar JRummikub-5d0d5932971c456b85b142f9e483f0226dfefc2b.zip |
Make starting new rounds on network mode work
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@553 72836036-5685-4462-b002-a69064685172
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()); |