Garry's Mod Wiki

Panel:SetSelected

  Panel:SetSelected( boolean selected = false )

Description

Sets the selected state of a selectable panel object. This functionality is set with Panel:SetSelectable and checked with Panel:IsSelectable.

Arguments

1 boolean selected = false
Whether the object should be selected or deselected. Panel:IsSelected can be used to determine the selected state of the object.