/// <summary> /// Creates a simple splashscreen displaying a title for a given amount of time /// </summary> /// <param name="title">A title to display</param> /// <param name="displayFor">The number of milliseconds to display it for</param> /// <param name="screenToFollow">The screen that will show after the splash</param> public SimpleSplashScreen(string title, float displayFor, ScreenBase screenToFollow, string soundToPlay) { _title = title; _displayFor = displayFor; TransitionOnTime = TimeSpan.FromSeconds(0.5f); TransitionOffTime = TimeSpan.FromSeconds(0.5f); _screenToFollow = screenToFollow; _soundToPlay = soundToPlay; }
public ImageSplashScreen(string image, float displayFor, ScreenBase screenToFollow, string soundToPlay) : base(String.Empty, displayFor, screenToFollow, soundToPlay) { _image = image; _screenRectangle = new Rectangle(0, 0, 800, 480); }