public override void Draw(Microsoft.Xna.Framework.GameTime gameTime) { base.Draw(gameTime); if (this.initialized) { spriteBatch.Begin(); for (byte i = 0; i < collisions.Count; i++) { Rectangle rect = collisions[i]; TileBehavior b = TileBehavior.GetBehavior(i); spriteBatch.Draw(pixel, rect, b.Color); const int font = 2; FontRenderer.Instance.Draw(spriteBatch, b.Identifier, font, (int)(rect.X + 16 / 2 - Math.Floor(FontRenderer.Instance.Width(b.Identifier, font) / 2f)), rect.Y + 14); if (i == this.SelectedId) { SelectionUtil.DrawRectangle(spriteBatch, Color.Red, new Rectangle(rect.X, rect.Y, rect.Width - 1, rect.Height - 1)); } } spriteBatch.End(); } }