mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
change loadUI/UI.display lua API
This commit is contained in:
@@ -11,7 +11,7 @@ function UIItem.onMouseRelease(self, mousePos, mouseButton)
|
||||
local menuFile = self:getStyle()['popup menu']
|
||||
if not menuFile then return end
|
||||
|
||||
local popupMenu = UI.loadAndDisplay(menuFile)
|
||||
local popupMenu = UI.display(menuFile)
|
||||
if not popupMenu then return end
|
||||
|
||||
popupMenu:moveTo(mousePos)
|
||||
|
||||
Reference in New Issue
Block a user