Game Development Reference
In-Depth Information
private void InterruptSplash()
{
if (_splashScreen.Interruptable)
{
if (_splashScreen.LoadingJobs == null ||
_splashScreen.LoadingJobs.Count <= 0)
{
if (_splashScreen.Fading)
FadeInTimer.Stop();
DisplayTimer.Stop();
if (_splashScreen.Fading)
FadeOutTimer.Start();
else
this.Close();
}
}
}
The last modification that must be performed is near the end of the job processing
method. The following code shows where the change must be done.
public void ProcessJobs()
{
Application.DoEvents();
if (_splashScreen.LoadingJobs != null &&
_splashScreen.LoadingJobs.Count > 0)
{
...
this.StatusText = “Finished”;
if (_splashScreen.Fading)
FadeOutTimer.Start();
else
this.Close();
}
}
Search Nedrilad ::




Custom Search