Panel.PaintOver
From GMod Wiki
(Redirected from P.PaintOver)
Event Hook | |
Hook Name | PaintOver |
Syntax | PANEL:PaintOver( ) |
Description | This is a 2D Rendering Hook. This is called every time the panel needs to be drawn. |
Returns | Boolean |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Panel.PaintOver]Panel.PaintOver [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Draw some text in the upper-left corner of the panel. |
---|---|
Used on | |
Code | function PANEL:PaintOver() draw.SimpleText("Hello!","DefaultSmall",0,0,Color(0,0,0,255)) end |
Output | Draw text Hello! at Position x0,y0 of the Panel. Without over riding the default Panel:Paint() |
Additional Notes
- This is identical to the Paint hook except it's called after children of the panel have been drawn. This allows you to draw over them, hence the name "paint over".'
- This is only called when the panel is visible.