Skip to content
Jaliborc edited this page Jul 16, 2012 · 6 revisions

IconCheck is a class which inherits from CheckButton and provides checkbuttons with illustrative icons.

Methods

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.

Example

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)

Sushi-3.1 🍣

Documentation
Class Reference
Best Practices

Feedback
Post an issue

Clone this wiki locally