mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
icons enum, fix animated msg, fix trade with on menu
This commit is contained in:
@@ -10,6 +10,7 @@ function Game.createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
-- Open or Use, depending if thing is a container
|
||||
if useThing then
|
||||
if useThing:isContainer() then
|
||||
-- check for open in new window
|
||||
menu:addOption('Open', function() print('open') end)
|
||||
else
|
||||
if useThing:isMultiUse() then
|
||||
@@ -22,12 +23,15 @@ function Game.createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
if useThing:isRotateable() then
|
||||
menu:addOption('Rotate', function() Game.rotate(useThing) end)
|
||||
end
|
||||
|
||||
if not useThing:isNotMoveable() and useThing:isPickupable() then
|
||||
menu:addSeparator()
|
||||
menu:addOption('Trade with ...', function() print('trade with') end)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
if lookThing and not lookThing:asCreature() and not lookThing:isNotMoveable() and lookThing:isPickupable() then
|
||||
menu:addSeparator()
|
||||
menu:addOption('Trade with ...', function() print('trade with') end)
|
||||
end
|
||||
|
||||
-- check for move up
|
||||
|
||||
if creatureThing then
|
||||
menu:addSeparator()
|
||||
|
Reference in New Issue
Block a user