mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Ignore/Unignore options in right click menus
Added both Ignore and Unignore options in the right click menu for the Game Window (which also added it for the Battle list), and in the right click menu for the console (chat window).
This commit is contained in:
@@ -411,6 +411,12 @@ function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
if (not Player:hasVip(creatureName)) then
|
||||
menu:addOption(tr('Add to VIP list'), function() g_game.addVip(creatureName) end)
|
||||
end
|
||||
|
||||
if modules.game_console.isIgnored(creatureName) then
|
||||
menu:addOption(tr('Unignore') .. ' ' .. creatureName, function() modules.game_console.removeIgnoredPlayer(creatureName) end)
|
||||
else
|
||||
menu:addOption(tr('Ignore') .. ' ' .. creatureName, function() modules.game_console.addIgnoredPlayer(creatureName) end)
|
||||
end
|
||||
|
||||
local localPlayerShield = localPlayer:getShield()
|
||||
local creatureShield = creatureThing:getShield()
|
||||
|
Reference in New Issue
Block a user