DCheckBox/OnChange

From Garry's Mod
Revision as of 21:20, 11 September 2014 by Shendow (Talk | contribs)
Jump to: navigation, search
 DCheckBox:OnChange( )

Contents

DescriptionPanelFunc

Called when the "checked" state is changed.

Arguments

boolean bVal

Whether the CheckBox is checked or not.

Examples

Example

function DCheckBox:OnChange(bVal)
   if (bVal) then
      print("Checked!")
   else
      print("Unchecked!")
   end
end


Personal tools
Navigation