mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Game.useOnCreature lua api
This commit is contained in:
@@ -18,12 +18,15 @@ function UIPopupMenu:display(pos)
|
||||
end
|
||||
|
||||
displayUI(self, {x = pos.x, y = pos.y})
|
||||
self:bindRectToParent()
|
||||
self:grabMouse()
|
||||
self:grabKeyboard()
|
||||
table.insert(displayedMenuList, self)
|
||||
end
|
||||
|
||||
function UIPopupMenu:onGeometryChange()
|
||||
self:bindRectToParent()
|
||||
end
|
||||
|
||||
function UIPopupMenu:addOption(optionName, optionCallback)
|
||||
local optionWidget = createWidget(self:getStyleName() .. 'Button', self)
|
||||
local lastOptionWidget = self:getLastChild()
|
||||
|
Reference in New Issue
Block a user