public QuantityDisplayBar(Vector2 DIMS, int BOARDER, Color COLOR)
        {
            boarder = BOARDER;
            color   = COLOR;

            bar    = new Basic2d("UI/solid", new Vector2(0, 0), new Vector2(DIMS.X - boarder * 2, DIMS.Y - boarder * 2));
            barBKG = new Basic2d("UI/shade", new Vector2(0, 0), new Vector2(DIMS.X, DIMS.Y));
        }
Exemple #2
0
        /// <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

            cursor = new Basic2d("Input_ico/CursorArrow", new Vector2(0, 0), new Vector2(28, 28));

            Globals.keyboard = new Keyboardinput();
            Globals.mouse    = new MouseControl();

            world = new World();
        }