Beispiel #1
0
 private void Potion_Start_Click(object sender, EventArgs e) //Potion
 {
     if (p15_rb.Checked == true)
     {
         sP = 3;
         mP = 15;
     }
     if (p10_rb.Checked == true)
     {
         sP = 3;
         mP = 10;
     }
     if (p8_rb.Checked == true)
     {
         sP = 3;
         mP = 8;
     }
     if (p5_rb.Checked == true)
     {
         sP = 3;
         mP = 5;
     }
     if (TestP_rb.Checked == true) //Test
     {
         sP = 5;
         mP = 0;
     }
     Timer_Potion.Start();
     Potion_Start.Visible = false;
     Potion_panel.Enabled = false;
 }
Beispiel #2
0
 private void Potion_Pause_Click(object sender, EventArgs e) //Potion
 {
     if (PTS == 1)
     {
         Timer_Potion.Start();
         Potion_Start.Visible = false;
         Potion_panel.Enabled = false;
     }
     if (PTS == 0)
     {
         Timer_Potion.Stop();
         PTS = 1;
         Potion_Start.Visible = true;
         Potion_panel.Enabled = true;
     }
 }