mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 23:15:54 +02:00
Version 0.95 BETA
This commit is contained in:
12
modules/corelib/ui/uibutton.lua
Normal file
12
modules/corelib/ui/uibutton.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
-- @docclass
|
||||
UIButton = extends(UIWidget, "UIButton")
|
||||
|
||||
function UIButton.create()
|
||||
local button = UIButton.internalCreate()
|
||||
button:setFocusable(false)
|
||||
return button
|
||||
end
|
||||
|
||||
function UIButton:onMouseRelease(pos, button)
|
||||
return self:isPressed()
|
||||
end
|
Reference in New Issue
Block a user