mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-15 06:54:54 +02:00
fix items, map, protocls
This commit is contained in:
13
800OTClient/modules/corelib/ui/uicheckbox.lua
Normal file
13
800OTClient/modules/corelib/ui/uicheckbox.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
-- @docclass
|
||||
UICheckBox = extends(UIWidget, "UICheckBox")
|
||||
|
||||
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