Garry's Mod Wiki

Panel:ToggleSelection

  Panel:ToggleSelection()

Description

Toggles the selected state of a selectable panel object. This functionality is set with Panel:SetSelectable and checked with Panel:IsSelectable. To check whether the object is selected or not, Panel:IsSelected is used.