2012-06-26 00:13:30 +02:00
|
|
|
-- @docclass
|
2014-06-06 18:10:14 +02:00
|
|
|
UIButton = extends(UIWidget, "UIButton")
|
2012-01-04 11:26:58 +01:00
|
|
|
|
|
|
|
function UIButton.create()
|
|
|
|
local button = UIButton.internalCreate()
|
|
|
|
button:setFocusable(false)
|
|
|
|
return button
|
2013-01-31 04:09:56 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
function UIButton:onMouseRelease(pos, button)
|
2013-01-31 08:31:21 +01:00
|
|
|
return self:isPressed()
|
2013-01-31 04:09:56 +01:00
|
|
|
end
|