Garry's Mod Wiki

PANEL:PaintOver

  boolean PANEL:PaintOver( number width, number height )

Description

Called whenever the panel and all its children were drawn, return true to override the default drawing.

This is useful to draw content over the panel without having to overwrite it's PANEL:Paint hook, for example as an indicator that a panel is selected in PropSelect

Arguments

1 number width
The panels current width.
2 number height
The panels current height.

Returns

1 boolean
Should we disable default PaintOver rendering? This is useful in case with Derma panels that use Derma hooks.