tibia-client/modules/corelib/ui/uibutton.lua

13 lines
239 B
Lua

-- @docclass
UIButton = extends(UIWidget)
function UIButton.create()
local button = UIButton.internalCreate()
button:setFocusable(false)
return button
end
function UIButton:onMouseRelease(pos, button)
return self:isPressed()
end