-
-
Notifications
You must be signed in to change notification settings - Fork 8
IconCheck
Jaliborc edited this page Jul 16, 2012
·
6 revisions
IconCheck is a class which inherits from CheckButton and provides checkbuttons with illustrative icons.
Name | Description |
---|---|
SetIcon (icon) | Sets the texture file to be displayed by the widget. |
GetIcon () | Returns the current texture file being displayed by the widget. |
myButton = SushiIconCheck()
myButton:SetIcon('Interface/Addons/MyAddon/NorrisPic.tga')
myButton:SetLabel('Chuck Norris')
myButton:SetCall('OnClick', function(myButton, checked)
if checked then
print("You cannot enable Chuck Norris, Chuck Norris never disables.")
else
print("You cannot disable Chuck Norris, Chuck Norris disables you.")
end
end)
This is the Sushi-3.1 wiki. Wiki Home