public QuantityDisplayBar(Vector2 DIMS, int BORDER, Color COLOR) { border = BORDER; color = COLOR; bar = new Basic2d("2d\\Misc\\solid", new Vector2(0, 0), new Vector2(DIMS.X - border * 2, DIMS.Y - border * 2)); barBKG = new Basic2d("2d\\Misc\\shade", new Vector2(0, 0), new Vector2(DIMS.X, DIMS.Y)); }
/// <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. Globals.content = this.Content; Globals.spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here Globals.keyboard = new McKeyboard(); Globals.mouse = new McMouseControl(); cursor = new Basic2d("2d\\Misc\\CursorArrow", new Vector2(0, 0), new Vector2(28, 28)); gamePlay = new GamePlay(); }