Game Development Reference
In-Depth Information
get { return _splashInterval; }
set { _splashInterval = value; }
}
public Image SplashImage
{
get { return _splashImage; }
set { _splashImage = value; }
}
public string WindowTitle
{
get { return _windowTitle; }
set { _windowTitle = value; }
}
public bool BlackBorder
{
get { return _blackBorder; }
set { _blackBorder = value; }
}
public string VersionText
{
get { return _versionText; }
set { _versionText = value; }
}
public void Launch()
{
(new SplashDialog(this)).ShowDialog();
}
}
It is now time to jump into the meat of our framework, the splash dialog form
itself.
The VersionText property enables the user to set the version of the application to
display in the top-right corner of the splash dialog, and the dimensions of the text
box are dynamically calculated based on the width of the version string specified.
The dialog constructor takes an instance of the settings and launcher class and
configures the appropriate settings for the splash screen.
Search Nedrilad ::




Custom Search