Garry's Mod Wiki

Revision Difference

Panel:IsSelected#550813

<function name="IsSelected" parent="Panel" type="classfunc"> <description>Returns if the panel object is selected (like icons in the Spawn Menu, holding <key>Shift</key>). This can be set in Lua using <page>Panel:SetSelected</page>.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <rets> <ret name="" type="boolean">Whether the panel object is selected or not. Always returns false if the object is not selectable. This can be modified using <page>Panel:SetSelectable</page>.</ret> </rets> </function>