From GMod Wiki
(Redirected from P.PaintOver)
|Description||This is a 2D Rendering Hook. This is called every time the panel needs to be drawn.|
|Description||Draw some text in the upper-left corner of the panel.|
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()|
|Description||Another way of how it can be called. More commonly seen like this.|
PANEL.PaintOver = function() draw.SimpleText("Hello!","DefaultSmall",0,0,Color(0,0,0,255)) end
|Output||Same output as above example.|
- 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.