View Single Post
04/20/22, 10:40 AM   #9
remosito
AddOn Author - Click to view addons
Join Date: Dec 2019
Posts: 30
alternative...

more necromancy

(please if this is against policy just let me know.. just figured this alternative method might be useful to others.)


there is an alternative, if sharing your icon with stolen/locked/boptradeable icons is an option!


Code:
PLAYER_INVENTORY.inventories[inventoryId].slots[bagId][slotIndex].additionalIcons

this is usually nil, but if you set it to { "path to icon", } or add your path if there is already one in, then it will be automatically shown.

if there already is a stolen, locked, boptradeable icon. eso will cycle through them...quite neat

relevant built in eso code that makes it work:

Code:
    if slotData.additionalIcons ~= nil then
        for _, additionalIcon in ipairs(slotData.additionalIcons) do
            statusControl:AddIcon(additionalIcon)
        end
    end
in function ZO_UpdateStatusControlIcons(inventorySlot, slotData)

in file esoui/esoui/ingame/inventory/inventory.lua

Last edited by remosito : 04/20/22 at 01:22 PM.
  Reply With Quote