Garry's Mod Wiki

Revision Difference

Panel:DrawSelections#550721

<function name="DrawSelections" parent="Panel" type="classfunc"> <description>Used to draw the magenta highlight colour of a panel object when it is selected. This should be called in the object's <page>PANEL:PaintOver</page> hook. Once this is implemented, the highlight colour will be displayed only when the object is selectable and selected. This is achieved using <page>Panel:SetSelectable</page> and <page>Panel:SetSelected</page> respectively.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ </function>