Garry's Mod Wiki
Description
A checkbox panel similar to DCheckBox and DImageButton with customizable checked state image.
Uses the Material panel internally. Can't have a label.
Will error if no material was set.
Parent
Derives methods, etc not listed on this page from Button.
Implements
Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.
Methods
boolean ImageCheckBox:GetChecked()
Returns the checked state of the ImageCheckBox
Sets the checked state of the checkbox.
Checked state can be obtained by ImageCheckBox. State.
ImageCheckBox:SetChecked( boolean bOn )
Sets the checked state of the checkbox.
Checked state can be obtained via ImageCheckBox:GetChecked
ImageCheckBox:SetMaterial( string mat )
Sets the material that will be visible when the ImageCheckBox is checked.
Internally calls Material:SetMaterial.
Will error if no material was set.
Example
Example of ImageCheckBox usage.
Output: 

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...