Panel.DrawOutlinedRect

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:DrawOutlinedRect( )
Description:
Draws an outlined rectangle around the panel.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.DrawOutlinedRect]Panel.DrawOutlinedRect [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreate a new Panel that has a fill and an outline
Used onNewerClient.png
Code
local PANEL = {}
 
function PANEL:Paint()
 
	surface.SetDrawColor(50,50,50,255)
	self:DrawFilledRect()
 
end
 
function PANEL:PaintOver()
 
	surface.SetDrawColor(0,0,0,255)
	self:DrawOutlinedRect()
 
end
 
vgui.Register("TestRectangle",PANEL)
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox