mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Refactor for documentation
This commit is contained in:
13
modules/corelib/ui/uicheckbox.lua
Normal file
13
modules/corelib/ui/uicheckbox.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
-- @docclass
|
||||
UICheckBox = extends(UIWidget)
|
||||
|
||||
function UICheckBox.create()
|
||||
local checkbox = UICheckBox.internalCreate()
|
||||
checkbox:setFocusable(false)
|
||||
checkbox:setTextAlign(AlignLeft)
|
||||
return checkbox
|
||||
end
|
||||
|
||||
function UICheckBox:onClick()
|
||||
self:setChecked(not self:isChecked())
|
||||
end
|
Reference in New Issue
Block a user