Ejemplo n.º 1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();
            spriteBatch.DrawString(Resources.GetFont("TitleFont"), title, new Vector2(300, 10), Color.Black);

            float y = 200;

            foreach (SlidingMenuItem item in menuItems)
            {
                spriteBatch.DrawString(Resources.GetFont("MenuFont"), item.GetText(), new Vector2(item.x, y), Color.White);
                y += 50;
            }
            DrawHelp.DrawCircle(spriteBatch, Input.mouse, 5, Color.Black, 8);
            spriteBatch.End();
        }
Ejemplo n.º 2
0
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     DrawHelp.DrawCircle(spriteBatch, position, 3, Color.White, 3);
 }