G.VGUIRect

From GMod Wiki

Jump to: navigation, search
Function
Syntax VGUIRect( Number x Number y Number w Number h )
Where is this used?
Description:
Creates a DShape rectangle.
Returns: DShape
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.VGUIRect]G.VGUIRect [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionDraw a rectangle.
Used onNewerClient.png
Code
local rect = VGUIRect( 10, 10, 100, 50 )
rect:SetParent( frame )
rect:SetColor( color_black )
Output
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox