protected void ShowHighscores(bool Show = true) { if (Show) { if (TopScoresList.RowCount > 0) { TopScoresLabel.Show(); TopScoresList.Show(); TopScoresBackButton.Show(); } else { NoDataFailure.Show(); TopScoresBackButton.Show(); } } else { NoDataFailure.Hide(); TopScoresLabel.Hide(); TopScoresList.Hide(); TopScoresBackButton.Hide(); } }
protected void ShowGame(bool Show = true) { if (Show) { if (LocalSizeBox != null) { LocalSizeBox.Show(); } if (RemoteSizeBox != null) { RemoteSizeBox.Show(); } if (ReturnToMenuButton != null) { ReturnToMenuButton.Show(); } } else { if (LocalSizeBox != null) { LocalSizeBox.Hide(); } if (RemoteSizeBox != null) { RemoteSizeBox.Hide(); } if (ReturnToMenuButton != null) { ReturnToMenuButton.Hide(); } } }
protected void ShowUsernameMenu(bool Show = true) { if (Show) { UsernameLabel.Show(); UsernameBox.Show(); UsernameContinue.Show(); } else { UsernameLabel.Hide(); UsernameBox.Hide(); UsernameContinue.Hide(); } }
protected void ShowMenu(bool Show = true) { if (Show) { SingleplayerButton.Show(); MultiplayerButton.Show(); HighscoresButton.Show(); } else { SingleplayerButton.Hide(); MultiplayerButton.Hide(); HighscoresButton.Hide(); } }
protected void ShowNetworkedSessionMenu(bool Show = true) { if (Show) { ServerSelectorLabel.Show(); ServerSelector.Show(); CustomServerLabel.Show(); CustomServerAddress.Show(); CustomServerPort.Show(); SessionConnect.Show(); BackButton.Show(); } else { ServerSelectorLabel.Hide(); ServerSelector.Hide(); CustomServerLabel.Hide(); CustomServerAddress.Hide(); CustomServerPort.Hide(); SessionConnect.Hide(); BackButton.Hide(); } }