/** * This method changes all of the GUI components depending on whether the player is connected to a * server, because different functionality is needed when we're connected from when we're not. */ public void toggleGUIStates(boolean gameRunning) { serverSettings.flipButtonStates(gameRunning); chatPanel.setConnected(gameRunning); dungeonPanelOverlay.toggleGameStarted(gameRunning); dungeonPanel.setVisible(gameRunning); }