protected internal override void Draw(ref Graphics.Rect drawableArea, IGUIRenderer renderer) { Color c = this.focused ? this.BackgroundColor : Color.AddContrast(this.BackgroundColor, 0.2f); drawableArea.W = this.Width; drawableArea.H = this.Height; renderer.DrawRect(ref drawableArea, c); if (Image != null) { renderer.DrawFrame(Image, ref drawableArea, ImageColor); } }
protected internal override void Draw(ref Rect area, IGUIRenderer batch) { base.Draw(ref area, batch); if (Focused) { Color bgc = Color.AddContrast(this.BackgroundColor, 0.2f); Color fc = Color.AddContrast(this.FilledColor, 0.2f); Color bc = Color.AddContrast(this.ButtonColor, 0.2f); this.Draw(ref area, batch, bgc, fc, bc); } else { this.Draw(ref area, batch, this.BackgroundColor, this.FilledColor, this.ButtonColor); } }
protected internal override void Draw(ref Rect area, IGUIRenderer renderer) { Color c = Color.AddContrast(Control.BackgroundColor, 0.2f); this.Control.Draw(ref area, renderer, c); }