Esempio n. 1
0
 public void LoadLibraries()
 {
     foreach (var file in Resources.LibraryFiles)
     {
         ResourceManager.LoadResourceFile(DataResolve(file));
     }
     foreach (var file in NavmapIcons.Libraries())
     {
         ResourceManager.LoadResourceFile(DataResolve(file));
     }
 }
Esempio n. 2
0
 public void LoadLibraries()
 {
     foreach (var file in Resources.LibraryFiles)
     {
         ResourceManager.LoadResourceFile(FileSystem.Resolve(file));
     }
 }
Esempio n. 3
0
        void OnLoadComplete()
        {
            systemMap.CreateContext(this);
            fontMan.LoadFontsFromGameData(GameData);
            camera      = new DebugCamera(new Rectangle(0, 0, Width, Height));
            camera.Zoom = 5000;
            camera.UpdateProjection();
            var renderer = new SystemRenderer(camera, GameData, Resources, this);

            world   = new GameWorld(renderer);
            systems = GameData.ListSystems().OrderBy(x => x).ToArray();
            Resources.ClearTextures();
            string navPrettyMap;

            if ((navPrettyMap = GameData.VFS.Resolve(GameData.Ini.Freelancer.DataPath + "INTERFACE/NEURONET/NAVMAP/NEWNAVMAP/nav_prettymap.3db", false)) !=
                null)
            {
                Resources.LoadResourceFile(navPrettyMap);
            }
            universeBackgroundTex = (Resources.FindTexture("fancymap.tga") as Texture2D);
            if (universeBackgroundTex != null)
            {
                universeBackgroundRegistered = ImGuiHelper.RegisterTexture(universeBackgroundTex);
            }
            else
            {
                universeBackgroundRegistered = -1;
            }
            curSystem      = GameData.GetSystem(systems[0]);
            systemInfocard = GameData.GetInfocard(curSystem.Infocard, fontMan);
            GameData.LoadAllSystem(curSystem);
            world.LoadSystem(curSystem, Resources, false);
            systemMap.SetObjects(curSystem);
        }
        void OnLoadComplete()
        {
            fontMan.LoadFontsFromGameData(GameData);
            camera      = new DebugCamera(new Viewport(0, 0, Width, Height));
            camera.Zoom = 5000;
            camera.UpdateProjection();
            var renderer = new SystemRenderer(camera, GameData, Resources, this);

            world   = new GameWorld(renderer);
            systems = GameData.ListSystems().OrderBy(x => x).ToArray();
            Resources.ClearTextures();
            Resources.LoadResourceFile(GameData.ResolveDataPath("INTERFACE/NEURONET/NAVMAP/NEWNAVMAP/nav_prettymap.3db"));
            universeBackgroundTex = (Resources.FindTexture("fancymap.tga") as Texture2D);
            if (universeBackgroundTex != null)
            {
                universeBackgroundRegistered = ImGuiHelper.RegisterTexture(universeBackgroundTex);
            }
            else
            {
                universeBackgroundRegistered = -1;
            }
            curSystem      = GameData.GetSystem(systems[0]);
            systemInfocard = GameData.GetInfocard(curSystem.Infocard, fontMan);
            GameData.LoadAllSystem(curSystem);
            world.LoadSystem(curSystem, Resources);
        }