Made this real quick to use all of my hundreds of fish items. There aren't really any safety checks, so it needs to be used responsibly (use it on fish!)
Lua Code:
local function AddContextMenuOption(rowControl)
local bagId = rowControl.bagId
local slotIndex = rowControl.slotIndex
AddMenuItem("Use All", function()
local delay = 0
for i = 1, rowControl.stackCount do
zo_callLater(function() CallSecureProtected("UseItem", bagId, slotIndex) end, delay)
delay = delay + 2000
end
end, MENU_ADD_OPTION_LABEL)
ShowMenu(self)
end
local function AddContextMenuOptionSoon(rowControl)
zo_callLater(function() AddContextMenuOption(rowControl) end, 50)
end
ZO_PreHook("ZO_InventorySlot_ShowContextMenu", AddContextMenuOptionSoon)
If anyone wants to make something of this, go for it.
edit: one nice change would be disabling the "Fish acquired." center screen announcement!