public ControlConsole(ContentManager Content) { this.Texture = Content.Load<Texture2D>("Main"); this.overlay = Content.Load<Texture2D>("SlotBG"); name = "Mainframe"; activePage = this; temp = new CriticalStat("Temp", 60, -0.001F, new Vector2(178, 246), Content.Load<SpriteFont>("MS Quartz")); dist = new CriticalStat("Distance", 1000000, 1, Vector2.Zero, Content.Load<SpriteFont>("MS Quartz")); power = new PowerBoard(Content); vent = new VentBoard(Content); DebugMode.vBoard = vent; o2 = new O2Board(Content); DebugMode.oBoard = o2; man = new Manual(Content); term = new Terminal(Content.Load<SpriteFont>("TerminalFont"), Content.Load<Texture2D>("CompCons"), Content.Load<Texture2D>("Darkness"), o2, ">>"); allPages = new Dictionary<Rectangle, IPage>(); allPages.Add(powerRect, power); allPages.Add(ventRect, vent); allPages.Add(lmcRect, term); allPages.Add(o2Rect, o2); allPages.Add(manRect, man); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here board = new PowerBoard(Content); board2 = new VentBoard(Content); }