Пример #1
0
        private void Menu_Button_Click(object sender, EventArgs e)
        {
            GameMenu YeniOyun = new GameMenu();

            this.Dispose();
            Renk_Timer.Enabled = false;
            YeniOyun.Show();

            if (GameMenu.Oyun_Turu_Erisim_String == "Player vs Player")
            {
                GameMode1.GameMode1_Hide = true;
            }
            if (GameMenu.Oyun_Turu_Erisim_String == "Dolores Umbridge")
            {
                GameMode2.GameMode2_Hide = true;
            }
            if (GameMenu.Oyun_Turu_Erisim_String == "Lord Voldemort")
            {
                GameMode3.GameMode3_Hide = true;
            }
        }
Пример #2
0
 private void Renk_Timer_Tick(object sender, EventArgs e)
 {
     Game_Loading_Bar.ForeColor = Tavan.BackColor = Sag_Yan.BackColor = Taban.BackColor = Sol_Yan.BackColor = Color.FromArgb(Rengarenk.Next(0, 256), Rengarenk.Next(0, 256), Rengarenk.Next(0, 256));
     if (Game_Loading_Bar.Value != 100)
     {
         if (Game_Loading_Bar.Value <= 96)
         {
             Game_Loading_Bar.Value += 4;
         }
         else
         {
             Game_Loading_Bar.Value = 100;
         }
     }
     else if (Game_Loading_Bar.Value == 100)
     {
         GameMenu YeniOyun = new GameMenu();
         //Buraya Dispose Yerine Hide Dedik Cunku Ana Ekran Bu !!!
         this.Hide();
         Renk_Timer.Enabled = false;
         YeniOyun.Show();
     }
 }