Garry's Mod Wiki

DLabel:OnToggled

  DLabel:OnToggled( boolean toggleState )

Description

Called when the toggle state of the label is changed by DLabel:Toggle.

In order to use toggle functionality, you must first call DLabel:SetIsToggle with true, as it is disabled by default.

Arguments

1 boolean toggleState
The new toggle state.