tibia-client/modules/game/map.lua

17 lines
379 B
Lua
Raw Normal View History

2012-01-09 19:06:16 +01:00
function UIMap:onMousePress(mousePos, mouseButton)
local tile = self:getTile(mousePos)
if not tile then return false end
if not Options.classicControl then
if mouseButton == MouseRightButton then
Game.createThingMenu(mousePos, tile:getTopLookThing(), tile:getTopUseThing(), tile:getTopCreature())
return true
end
end
return false
end