public override void FadeIn() { SetButtonsVisibility(false); Sound.SoundPlayer.ItemFadeIn(); lvl.FadeIn(); sb.FadeIn(); hb.FadeIn(); op.FadeIn(); st.FadeIn(); ex.FadeIn(); cr.position.X = Main.WindowWidth; intr.position.X = -intr.size.X; SetButtonsVisibility(true); for (int i = 0; i < intr.size.X; 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); } base.FadeIn(); }
public override void FadeIn() { SetButtonsVisibility(false); Sound.SoundPlayer.ItemFadeIn(); bnew.FadeIn(); bload.FadeIn(); back.FadeIn(); SetButtonsVisibility(true); while (true) { if (!back.IsFading) { break; } System.Threading.Thread.Sleep(1); } base.FadeIn(); }