Game.useOnCreature lua api

This commit is contained in:
Eduardo Bart
2012-01-17 20:28:55 -02:00
parent 0b08552bbc
commit cc5b36b1cb
7 changed files with 18 additions and 4 deletions

View File

@@ -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()