Garry's Mod Wiki

Garry's Mod Wiki

  Panel:DrawOutlinedRect()

Description

Draws a hollow rectangle the size of the panel object this method is called on, with a border width of 1 px. The border 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.DrawOutlinedRect.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...