Garry's Mod Wiki

Panel:IsSelected

  boolean Panel:IsSelected()

Description

Returns if the panel object is selected (like icons in the Spawn Menu, holding ⇧ shift). This can be set in Lua using Panel:SetSelected.

Returns

1 boolean
Whether the panel object is selected or not. Always returns false if the object is not selectable. This can be modified using Panel:SetSelectable.