public override void Render(GraphicsDevice device, Renderer Renderer, int X, int Y) { Renderer.RenderFrame(device, this.X, this.Y, this.Width, this.Height); Renderer.RenderSmallText(device, this.X + 5, this.Y, this.Title, Color.White); Renderer.RenderCloseButton(device, this.X + this.Width - 16, this.Y, this.CloseHot); base.Render(device, Renderer, Margin.X + X, Margin.Y + Y); }
public override void Render(GraphicsDevice device, Renderer Renderer, int X, int Y) { this.Height = this.Margin.Y + this.Margin.Height + (int)(this.TextDisplay.RenderText.Lines.Count * this.TextDisplay.LineHeight); Renderer.Slice9 slice = new Renderer.Slice9(0, 80, 48, 48, 5, 5, 5, 5); Renderer.RenderFrame(device, this.X, this.Y, this.Width, this.Height, slice); foreach (Control c in this.Controls) { c.Render(device, Renderer, this.X + X + this.Margin.X, this.Y + Y + this.Margin.Y); } }