Revision Difference
GM:HUDPaint#529792
<function name="HUDPaint" parent="GM" type="hook">
<ishook>yes</ishook>
<description>
Called whenever the HUD should be drawn. Called right before <page>GM:HUDDrawScoreBoard</page> and after <page>GM:HUDPaintBackground</page>.
⤶
Not called when the Camera SWEP is equipped. See also <page>GM:DrawOverlay</page>.
Called whenever the HUD should be drawn.
⤶
Called right before <page>GM:HUDDrawScoreBoard</page> and after <page>GM:HUDPaintBackground</page>.
⤶
Not called when the Camera SWEP is equipped, or when the main menu is visible. <page>GM:PostDrawHUD</page> does not have this behavior.⤶
⤶
See also <page>GM:DrawOverlay</page>.⤶
<note>Gets called only when r_drawvgui and <page text="CHudGMod">GM:HUDShouldDraw</page> are enabled and the game is not paused</note>
<rendercontext hook="true" type="2D"></rendercontext>
</description>
<realm>Client</realm>
<predicted>No</predicted>
</function>
<example>
<description>Draws a transparent black box in the top left corner of the screen.</description>
<code>
hook.Add( "HUDPaint", "HUDPaint_DrawABox", function()
surface.SetDrawColor( 0, 0, 0, 128 )
surface.DrawRect( 50, 50, 128, 128 )
end )
</code>
</example>