mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-15 06:54:54 +02:00
Resolve "Merge the best from 7.40 branch"
This commit is contained in:
12
SabrehavenOTClient/modules/corelib/ui/uibutton.lua
Normal file
12
SabrehavenOTClient/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