You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
379 B

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