Gamemode.HUDPaintBackground

From GMod Wiki

Revision as of 21:45, 2 February 2011 by Donkie (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameHUDPaintBackground
SyntaxGM:HUDPaintBackground( )
DescriptionUsed to draw things on your screen.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.HUDPaintBackground]Gamemode.HUDPaintBackground [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDraw a box in the upper left hand corner of the screen.
Used onNewerClient.png
Code
function DrawBox()
	draw.RoundedBox( 10, 0, 0, 100, 100, Color(0, 0, 0, 180) );
end
hook.Add("HUDPaintBackground", "DrawBox", DrawBox);
 
OutputDraws a box in the upper left hand corner of the screen.


Additional Notes

Works the same as HUDPaint with the difference that this Hook gets called before HUDPaint

See Also

Draw

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox