Exemplo n.º 1
0
 public void ShowMatchStatus(string status, Color color)
 {
     TipLabel.Hide();
     CountdownPanel.Show();
     StatusLabel.Text    = status;
     StatusLabel.Color   = color;
     countdownTitle.Text = "";
     countdownFraction.Hide();
     countdownLabel.Hide();
 }
Exemplo n.º 2
0
 public void SetCountdownVisibility(bool visible)
 {
     if (visible)
     {
         CountdownPanel.Show();
         countdownTitle.Text = "Match starts in";
         countdownFraction.Show();
         countdownLabel.Show();
     }
     else
     {
         CountdownPanel.Hide();
         GameStarted = true;
     }
 }
Exemplo n.º 3
0
    public void ShowMatchResult(int ownWins, int oppWins)
    {
        TipLabel.Hide();
        CountdownPanel.Show();

        if (ownWins > oppWins)
        {
            StatusLabel.Text  = string.Format("You win {0} - {1}", ownWins, oppWins);
            StatusLabel.Color = new Color32(0, 255, 0, 255);
        }
        else
        {
            StatusLabel.Text  = string.Format("You lose {0} - {1}", ownWins, oppWins);
            StatusLabel.Color = new Color32(255, 0, 0, 255);
        }
        countdownTitle.Text = "";
        countdownFraction.Hide();
        countdownLabel.Hide();

        BackButton.Click += new MouseEventHandler(BackButton_Click);
        BackButton.Show();
    }