|
-- @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
|