Пример #1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            foreach (var s in UISpriteList)
            {
                SpriteMap.DrawSprite(spriteBatch, s.Sprite, s.X * 10, s.Y * 10, Color.White, s.Scale);
            }
            Rectangle focusedButtonRect = Buttons[FocusedButton].Location;

            SpriteMap.DrawSprite(spriteBatch, "pound", focusedButtonRect.X - 30, focusedButtonRect.Y, "cyan3", 2);
            SpriteMap.DrawSprite(spriteBatch, "pound", focusedButtonRect.X + focusedButtonRect.Width + 10, focusedButtonRect.Y, "cyan3", 2);
        }
Пример #2
0
 public void Draw(SpriteBatch spriteBatch)
 {
     foreach (var s in List)
     {
         SpriteMap.DrawSprite(spriteBatch, s.Sprite, s.X * 10, s.Y * 10, new Color(s.R, s.G, s.B), s.Scale);
     }
 }