public QuantityDisplay(Vector2 DIMS, int BOARDED, Color COLOR) { boarder = BOARDED; color = COLOR; bar = new Basic2d("2d\\solid", new Vector2(0, 0), new Vector2(DIMS.X - boarder * 2, DIMS.Y - boarder * 2)); barBKG = new Basic2d("2d\\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; //cargar todo lo de global Globals.spriteBatch = new SpriteBatch(GraphicsDevice); gamePlay = new GamePlay(); Globals.keyboard = new McKeyboard(); Globals.mouse = new McMouseControl(); cursor = new Basic2d("cursor3", new Vector2(0, 0), new Vector2(25, 25)); // TODO: use this.Content to load your game content here }