|
|
|
@ -31,7 +31,7 @@ function Game.processMouseAction(menuPosition, mouseButton, autoWalk, lookThing,
|
|
|
|
|
print "open"
|
|
|
|
|
elseif useThing:isMultiUse() then
|
|
|
|
|
Game.setSelectedThing(useThing)
|
|
|
|
|
-- todo change cursor
|
|
|
|
|
setTargetCursor()
|
|
|
|
|
else
|
|
|
|
|
Game.use(useThing)
|
|
|
|
|
end
|
|
|
|
@ -44,7 +44,7 @@ function Game.processMouseAction(menuPosition, mouseButton, autoWalk, lookThing,
|
|
|
|
|
if mouseButton == MouseLeftButton and selectedThing then
|
|
|
|
|
Game.useWith(Game.getSelectedThing(), multiUseThing)
|
|
|
|
|
Game.setSelectedThing(nil)
|
|
|
|
|
-- restore cursor
|
|
|
|
|
restoreCursor()
|
|
|
|
|
return true
|
|
|
|
|
elseif multiUseThing and keyboardModifiers == KeyboardNoModifier and mouseButton == MouseRightButton then
|
|
|
|
|
if multiUseThing:asCreature() then
|
|
|
|
@ -53,7 +53,7 @@ function Game.processMouseAction(menuPosition, mouseButton, autoWalk, lookThing,
|
|
|
|
|
print "open"
|
|
|
|
|
elseif multiUseThing:isMultiUse() then
|
|
|
|
|
Game.setSelectedThing(multiUseThing)
|
|
|
|
|
-- todo change cursor
|
|
|
|
|
setTargetCursor()
|
|
|
|
|
else
|
|
|
|
|
Game.use(useThing)
|
|
|
|
|
end
|
|
|
|
@ -88,7 +88,7 @@ function Game.createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
|
|
|
|
menu:addOption('Open', function() print('open') end)
|
|
|
|
|
else
|
|
|
|
|
if useThing:isMultiUse() then
|
|
|
|
|
-- todo change cursor
|
|
|
|
|
setTargetCursor()
|
|
|
|
|
menu:addOption('Use with ...', function() Game.setSelectedThing(useThing) end)
|
|
|
|
|
else
|
|
|
|
|
menu:addOption('Use', function() Game.use(useThing) end)
|
|
|
|
|