Пример #1
0
        public override void FadeOut()
        {
            Sound.SoundPlayer.ItemFadeOut();
            lvl.FadeOut();
            sb.FadeOut();
            hb.FadeOut();
            op.FadeOut();
            st.FadeOut();
            ex.FadeOut();

            intr.position = new Vector2(0, Main.WindowHeight - intr.size.Y);
            cr.position   = new Vector2(Main.WindowWidth - cr.size.X, Main.WindowHeight - cr.size.Y);

            for (int i = (int)intr.size.X; i >= 0; i--)
            {
                intr.position.X = i - intr.size.X;
                cr.position.X   = Main.WindowWidth - i;
                System.Threading.Thread.Sleep(3);
            }

            while (true)
            {
                if (!ex.IsFading)
                {
                    break;
                }
                System.Threading.Thread.Sleep(1);
            }
        }
Пример #2
0
 public override void FadeOut()
 {
     Sound.SoundPlayer.ItemFadeOut();
     bnew.FadeOut();
     bload.FadeOut();
     back.FadeOut();
     while (true)
     {
         if (!back.IsFading)
         {
             break;
         }
         System.Threading.Thread.Sleep(1);
     }
 }