LoadingScreenLoop() public static method

public static LoadingScreenLoop ( ) : void
return void
Esempio n. 1
0
 // load
 internal static void Load(string RouteFile, Encoding RouteEncoding)
 {
     // members
     Renderer.InitLoading();
     RouteProgress              = 0.0;
     TrainProgress              = 0.0;
     TrainProgressCurrentSum    = 0.0;
     TrainProgressCurrentWeight = 1.0;
     Cancel               = false;
     Complete             = false;
     CurrentRouteFile     = RouteFile;
     CurrentRouteEncoding = RouteEncoding;
     // thread
     Loading.LoadAsynchronously(CurrentRouteFile, Encoding.UTF8);
     RouteViewer.LoadingScreenLoop();
 }
Esempio n. 2
0
 // load
 internal static void Load(string RouteFile, Encoding RouteEncoding)
 {
     // members
     LoadingScreen.InitLoading(Program.FileSystem.GetDataFolder("In-game"), typeof(Renderer).Assembly.GetName().Version.ToString());
     RouteProgress              = 0.0;
     TrainProgress              = 0.0;
     TrainProgressCurrentSum    = 0.0;
     TrainProgressCurrentWeight = 1.0;
     Cancel               = false;
     Complete             = false;
     CurrentRouteFile     = RouteFile;
     CurrentRouteEncoding = RouteEncoding;
     // thread
     Loading.LoadAsynchronously(CurrentRouteFile, Encoding.UTF8);
     RouteViewer.LoadingScreenLoop();
 }
Esempio n. 3
0
 // load
 internal static void Load(string RouteFile, Encoding RouteEncoding, Bitmap bitmap = null)
 {
     // reset
     Game.Reset();
     Program.Renderer.Loading.InitLoading(Program.FileSystem.GetDataFolder("In-game"), typeof(NewRenderer).Assembly.GetName().Version.ToString(), Interface.CurrentOptions.LoadingLogo, Interface.CurrentOptions.LoadingProgressBar);
     if (bitmap != null)
     {
         Program.Renderer.Loading.SetLoadingBkg(Program.Renderer.TextureManager.RegisterTexture(bitmap, new TextureParameters(null, null)));
     }
     // members
     Cancel               = false;
     Complete             = false;
     CurrentRouteFile     = RouteFile;
     CurrentRouteEncoding = RouteEncoding;
     // thread
     Loading.LoadAsynchronously(CurrentRouteFile, CurrentRouteEncoding);
     RouteViewer.LoadingScreenLoop();
 }