Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
                }
            }
        }
Пример #3
0
        protected void ShowUsernameMenu(bool Show = true)
        {
            if (Show)
            {
                UsernameLabel.Show();
                UsernameBox.Show();
                UsernameContinue.Show();
            }

            else
            {
                UsernameLabel.Hide();
                UsernameBox.Hide();
                UsernameContinue.Hide();
            }
        }
Пример #4
0
        protected void ShowMenu(bool Show = true)
        {
            if (Show)
            {
                SingleplayerButton.Show();
                MultiplayerButton.Show();
                HighscoresButton.Show();
            }

            else
            {
                SingleplayerButton.Hide();
                MultiplayerButton.Hide();
                HighscoresButton.Hide();
            }
        }
Пример #5
0
        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();
            }
        }