ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Getting slotId from slotNum in Quick Slot Bar (https://www.esoui.com/forums/showthread.php?t=7230)

ivanwfr 07/20/17 02:39 PM

Getting slotId from slotNum in Quick Slot Bar
 
I am looking for a way to get the bag slotId from ZO_QuickslotRadialManager in order to access the right item.

When more than one level of the same Item is present in BAG_BACKPACK, this slotId would make the difference in the following code:

Code:

function get_slotId_itemLevel(slotId)
    local  data  = SHARED_INVENTORY.bagCache[BAG_BACKPACK][slotId]
    if(    data == nil) then return nil end
    return data.requiredLevel
end

From where I stand, I could not find a way to get this slotId from ZO_QuickslotRadialManager.

These are the functions I know of:
Code:

GetCurrentQuickslot()
GetItemName        (BAG_BACKPACK, slotId) (the BAG_BACKPACK index) 
GetSlotItemCount  ( slotIndex )          (the quick slot bar index)
GetSlotName        ( slotIndex )          (the quick slot bar index)
GetSlotTexture    ( slotIndex )          (the quick slot bar index)



All times are GMT -6. The time now is 04:08 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI