LoadingScreenLoop() 공개 정적인 메소드

public static LoadingScreenLoop ( ) : void
리턴 void
예제 #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();
 }
예제 #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();
 }
예제 #3
0
파일: LoadingR.cs 프로젝트: s520/OpenBVE
 // 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();
 }