draw.RoundedBoxEx

From GMod Wiki

Jump to: navigation, search
Function
Syntax draw.RoundedBoxEx( Number Bordersize, Number X, Number Y, Number Width, Number Height, Color Color, Boolean Round Top Left, Boolean Round Top Right, Boolean Round Bottom Left, Boolean Round Bottom Right )
Where is this used?
Description:
Draws a rounded box on the screen, with control over which corners are rounded.
Returns: nil
Part of Library: Draw
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Draw.RoundedBoxEx]Draw.RoundedBoxEx [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDraws a square with the bottom right and left rounded.
Used onNewerClient.png
Code
 
function GAMEMODE:HUDPaint()
     draw.RoundedBoxEx( 16, 40, 40, 50, 50, Color(255,255,255,255), false, false, true, true )
end
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox