Esempio n. 1
0
 public override void Draw(GameTime gameTime)
 {
     background.Draw(gameTime);
     //newGameButtonBase.Draw(gameTime);
     //quitGameButtonBase.Draw(gameTime);
     cursor.Draw(gameTime);
 }
Esempio n. 2
0
 public override void Draw(GameTime gameTime)
 {
     background.Draw(gameTime);
     foreach (LocationUI locationUI in allLocations)
     {
         locationUI.ButtonBase.Draw(gameTime);
         Game.SpriteBatch.DrawString(Game.Content.Load <SpriteFont>("Fonts\\Default"), locationUI.Label, new Vector2(locationUI.ButtonBase.Position.X, locationUI.ButtonBase.Position.Y + 20), Color.White);
     }
     cursor.Draw(gameTime);
 }
Esempio n. 3
0
        public override void Draw(GameTime gameTime)
        {
            background.Draw(gameTime);
            int y = background.Position.Y + 50;

            Game.SpriteBatch.DrawString(Game.Content.Load <SpriteFont>("Fonts\\Default"), message, new Vector2(25, y), background.Color);
            foreach (KeyValuePair <string, MiScript> choice in choices)
            {
                y += 30;
                Game.SpriteBatch.DrawString(Game.Content.Load <SpriteFont>("Fonts\\Default"), choice.Key, new Vector2(100, y), background.Color);
            }
            cursor.Draw(gameTime);
        }
Esempio n. 4
0
        public override void Draw(GameTime gameTime)
        {
            tileEngine.Draw(gameTime);
            foreach (Character c in positions.Keys)
            {
                Rectangle cBounds = tileEngine.BoundingRectangle(positions[c].X, positions[c].Y);
                if (State == BattleState.CHARACTER_ATTACK && selectedAOE.ContainsKey(positions[c]))
                {
                    if (Player.Party.Contains(c))
                    {
                        Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("Town View\\GenericFriend"), cBounds, Color.Red);
                    }
                    else
                    {
                        Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("Town View\\GenericEnemy"), cBounds, Color.Red);
                    }
                }
                else if (State == BattleState.CHARACTER_ATTACK && selectedValidMoves.ContainsKey(positions[c]))
                {
                    if (Player.Party.Contains(c))
                    {
                        Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("Town View\\GenericFriend"), cBounds, Color.Yellow);
                    }
                    else
                    {
                        Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("Town View\\GenericEnemy"), cBounds, Color.Yellow);
                    }
                }
                else
                {
                    if (Player.Party.Contains(c))
                    {
                        Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("Town View\\GenericFriend"), cBounds, Color.White);
                    }
                    else
                    {
                        Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("Town View\\GenericEnemy"), cBounds, Color.White);
                    }
                }
            }
            foreach (Character c in positions.Keys)
            {
                Rectangle cBounds = tileEngine.BoundingRectangle(positions[c].X, positions[c].Y);
                Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("button"), new Rectangle(cBounds.X, cBounds.Top - 40, cBounds.Width, 20), Color.Red);
                Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("button"), new Rectangle(cBounds.X, cBounds.Top - 40, c.CurrHealth * cBounds.Width / c.MaxHealth, 20), Color.Green);
                Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("button"), new Rectangle(cBounds.X, cBounds.Top - 20, cBounds.Width, 20), Color.Brown);
                Game.SpriteBatch.Draw(Game.Content.Load <Texture2D>("button"), new Rectangle(cBounds.X, cBounds.Top - 20, c.CurrMovementPoints * cBounds.Width / c.MaxMovementPoints, 20), Color.Blue);
                Game.SpriteBatch.DrawString(
                    Game.Content.Load <SpriteFont>("Fonts\\Default"),
                    c.Name,
                    new Vector2(tileEngine.BoundingRectangle(positions[c].X, positions[c].Y).X, tileEngine.BoundingRectangle(positions[c].X, positions[c].Y).Y - 40),
                    Color.White);
            }
            switch (State)
            {
            case BattleState.CHARACTER_ATTACK:
            case BattleState.CHARACTER_MOVE:
            case BattleState.CHARACTER_SELECT:
            case BattleState.SETUP:
                cursor.Draw(gameTime);
                break;
            }

            flash.Draw(gameTime);
        }
Esempio n. 5
0
 public override void Draw(GameTime gameTime)
 {
     background.Draw(gameTime);
     Game.SpriteBatch.DrawString(Game.Content.Load <SpriteFont>("Fonts\\Default"), message, new Vector2(25, background.Position.Y + 50), background.Color);
 }
Esempio n. 6
0
 public override void Draw(GameTime gameTime)
 {
     tileEngine.Draw(gameTime);
     playerAvatar.Draw(gameTime);
 }