public void Draw(SpriteBatch spriteBatch) { spriteBatch.Draw(this.Background, this.Position, null, Color.White, 0f, Vector2.Zero, this.Dimensions, SpriteEffects.None, 0f); PrimitiveShapes.DrawRectangle(spriteBatch, this.rectangle, this.BorderColor, this.BorderWidth); this.TextNode?.Draw(spriteBatch); }
private void DrawBorder(SpriteBatch spriteBatch) { PrimitiveShapes.DrawRectangle(spriteBatch, this.rectangle, this.BorderColor, this.BorderWidth); }