• how to draw a rect that doesn't disappear
    4 replies, posted
there is my code, hook.Add("HUDPaint","DrawMyHud",function ( ) surface.SetDrawColor( 255, 255, 255, 255 ) surface.DrawRect( 25, 25, 100, 100 ) end) the question is when i press ESC , the rect i drawed will disappear, how can i draw a rect that doesn't disappear? thank you
HUDPaint isn't called when the (default) escape menu is open.
[QUOTE=swordjjjkkk;50976049]there is my code, hook.Add("HUDPaint","DrawMyHud",function ( ) surface.SetDrawColor( 255, 255, 255, 255 ) surface.DrawRect( 25, 25, 100, 100 ) end) the question is when i press ESC , the rect i drawed will disappear, how can i draw a rect that doesn't disappear? thank you[/QUOTE] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PostRenderVGUI]GM:PostRenderVGUI[/url] or [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PostDrawHUD]GM:PostDrawHUD[/url] or [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/DrawOverlay]GM:DrawOverlay[/url]
[QUOTE=Kevlon;50976140][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PostRenderVGUI]GM:PostRenderVGUI[/url] or [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PostDrawHUD]GM:PostDrawHUD[/url] or [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/DrawOverlay]GM:DrawOverlay[/url][/QUOTE] you can't just give a monkey a paper & pencil and expect them to know how to write....
thank you very much
Sorry, you need to Log In to post a reply to this thread.