mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
* use only mouse left release in checkboxes * remvoe duplicated code in radiogroup * implement player trade
13 lines
271 B
Lua
13 lines
271 B
Lua
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
|