Esempio n. 1
0
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            Game1.Player.Spellbar.Draw(spriteBatch);
            Game1.Player.Inventory.DrawPotions(spriteBatch);
            gui.Draw(spriteBatch);
            characterMenu.Draw(spriteBatch);

            //mouse
            float mouseScale = 2;

            spriteBatch.Draw(texture: mouseTex, position: -Camera.ScreenOffset + mousePos + mouseOrig * mouseScale, sourceRectangle: null, color: Color.White,
                             rotation: 0, origin: mouseOrig, scale: mouseScale, effects: SpriteEffects.None, layerDepth: Layers.AlwaysOnTop);
        }
Esempio n. 2
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);
            spriteBatch.Begin();


            //spriteBatch.DrawString(Segoe14, "Dick Butt", new Vector2(0, 0), Color.Black);
            // TODO: Add your drawing code here
            Texture2D DefaultTexture2D = Content.Load <Texture2D>("TextBoxDefault");

            newTextBox = new TextBox(DefaultTexture2D, Segoe14, "Test", "Test");
            newTextBox.Draw(spriteBatch, new Rectangle(0, 500, 1600, 400), new Vector2(55, 565), new Vector2(65, 645));
            testConv.draw(spriteBatch);
            newTextBox.Draw(spriteBatch);

            //HerbMap.Draw(spriteBatch, LandTextures);
            //mapController.Draw(spriteBatch, LandTextures);
            foreach (Character c in PlayerCharacters)
            {
                c.Draw(spriteBatch);
            }

            //situationController.Draw(spriteBatch, conversationController, characterController, mapController, LandTextures);
            //if (IsDisplayingMoveRange)
            //{
            //    Movement.Draw(spriteBatch, mapController.Maps.ElementAt(mapController.CurrentMap), Blue, Yellow);
            //}
            //Movement.Draw(spriteBatch, mapController.Maps.ElementAt(mapController.CurrentMap), Blue, Yellow);
            //characterController.Draw(spriteBatch);
            //conversationController.Draw(spriteBatch, graphics.GraphicsDevice);
            spriteBatch.DrawString(this.Content.Load <SpriteFont>("segoe"), "X: " + /*(int)(MouseLocation.X / Constants.MapSquareSize) Mouse.GetState().X + " Y: " + /*(int)(MouseLocation.Y / Constants.MapSquareSize)*/ MouseLocation.Y, new Vector2(0, 0), Color.White);

            //spriteBatch.Draw(this.Content.Load<Texture2D>("Wheel"), new Vector2(128, 128), Color.White);


            /*spriteBatch.Draw(this.Content.Load<Texture2D>("top32"), new Vector2(100, 100), Color.White);
             * spriteBatch.DrawString(this.Content.Load<SpriteFont>("Segoe14"), "Attack", new Vector2(110, 108), Color.White);
             * spriteBatch.Draw(this.Content.Load<Texture2D>("mid32"), new Vector2(100, 132), Color.White);
             * spriteBatch.DrawString(this.Content.Load<SpriteFont>("Segoe14"), "Move", new Vector2(110, 140), Color.White);
             * spriteBatch.Draw(this.Content.Load<Texture2D>("mid32"), new Vector2(100, 164), Color.White);
             * spriteBatch.DrawString(this.Content.Load<SpriteFont>("Segoe14"), "Items", new Vector2(110, 172), Color.White);
             * spriteBatch.Draw(this.Content.Load<Texture2D>("mid32"), new Vector2(100, 196), Color.White);
             * spriteBatch.Draw(this.Content.Load<Texture2D>("bot32"), new Vector2(100, 228), Color.White);
             */
            CharacterMenu.Draw(spriteBatch, characterController.AllCharacters);


            spriteBatch.End();
            base.Draw(gameTime);
        }