示例#1
0
 public void ShowBusy(bool b)
 {
     if (b)
     {
         Readypanel.BackColor = Color.Red;
         ReadyLabel.Text      = "Busy";
     }
     else
     {
         Readypanel.BackColor = Color.Lime;
         ReadyLabel.Text      = "Ready";
     }
     Readypanel.Refresh();
     ReadyLabel.Refresh();
 }
示例#2
0
    void Activate()
    {
        panel.Click += new MouseEventHandler(panel_Click);

        if (Weapon == null)
        {
            UnlockLabel.Hide();
            WeaponButton.Hide();
            ReadyLabel.Show();
            colorTween.Play();
        }
        else
        {
            UnlockLabel.Hide();
            WeaponButton.Show();
            ReadyLabel.Hide();
        }
    }
示例#3
0
    void Deactivate()
    {
        int lvl = 2;

        switch (WeaponType)
        {
        case WeaponType.Melee:
            lvl = 2;
            break;

        case WeaponType.Ranged:
            lvl = 3;
            break;

        case WeaponType.Mortar:
            lvl = 4;
            break;
        }
        UnlockLabel.Text = "Unlock in level " + lvl;
        UnlockLabel.Show();
        WeaponButton.Hide();
        ReadyLabel.Hide();
    }