public SpaceGameplay(FreelancerGame g, GameSession session) : base(g) { FLLog.Info("Game", "Entering system " + session.PlayerSystem); g.ResourceManager.ClearTextures(); //Do before loading things this.session = session; font = Game.Fonts.GetSystemFont("Agency FB"); #if false pyw = new DebugGraph(); pyw.AddLine(Color4.Red, 240, -1, 1); pyw.AddLine(Color4.Green, 240, -1, 1); pyw.AddLine(Color4.Blue, 240, -1, 1); pyw.X = 850; pyw.Y = 10; pyw.Width = 170; pyw.Height = 124; #endif sys = g.GameData.GetSystem(session.PlayerSystem); loader = new LoadingScreen(g, g.GameData.LoadSystemResources(sys)); }
public SpaceGameplay(FreelancerGame g, GameSession session) : base(g) { FLLog.Info("Game", "Entering system " + session.PlayerSystem); g.ResourceManager.ClearTextures(); //Do before loading things this.session = session; #if false pyw = new DebugGraph(); pyw.AddLine(Color4.Red, 240, -1, 1); pyw.AddLine(Color4.Green, 240, -1, 1); pyw.AddLine(Color4.Blue, 240, -1, 1); pyw.X = 850; pyw.Y = 10; pyw.Width = 170; pyw.Height = 124; #endif sys = g.GameData.GetSystem(session.PlayerSystem); loader = new LoadingScreen(g, g.GameData.LoadSystemResources(sys)); ui = new UiContext(g); ui.GameApi = uiApi = new LuaAPI(this); widget = ui.CreateAll("hud.xml"); }