mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00
14 lines
271 B
Lua
14 lines
271 B
Lua
-- @docclass
|
|
UIButton = extends(UIWidget)
|
|
|
|
function UIButton.create()
|
|
local button = UIButton.internalCreate()
|
|
button:setFocusable(false)
|
|
return button
|
|
end
|
|
|
|
function UIButton:onMouseRelease(pos, button)
|
|
if self:isPressed() then return true end
|
|
return false
|
|
end
|