mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49:21 +02:00
Tiny topmenu fix
This commit is contained in:
parent
ce411ec871
commit
8bd1293be7
@ -27,7 +27,7 @@ local function addButton(id, description, icon, callback, panel, toggle, front)
|
|||||||
button:setTooltip(description)
|
button:setTooltip(description)
|
||||||
button:setIcon(resolvepath(icon, 3))
|
button:setIcon(resolvepath(icon, 3))
|
||||||
button.onMouseRelease = function(widget, mousePos, mouseButton)
|
button.onMouseRelease = function(widget, mousePos, mouseButton)
|
||||||
if widget:containsPoint(mousePos) and mouseButton ~= MouseMiddleButton then
|
if widget:containsPoint(mousePos) and mouseButton ~= MouseMidButton then
|
||||||
callback()
|
callback()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user