mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00

* If you use the cooldown during the ping delay time it wouldn't init the cooldown again.
13 lines
239 B
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
|