Panel:DrawFilledRect
Panel:DrawFilledRect()
Description
Draws a coloured rectangle to fill the panel object this method is called on. The colour is set using surface.SetDrawColor. This should only be called within the object's PANEL:Paint or PANEL:PaintOver hooks, as a shortcut for surface.DrawRect.
This is a rendering function that requires a 2d rendering context.
This means that it will only work in 2d Rendering Hooks.
Page views: 11,346
Updated: Last Month
Updated: Last Month