GetSlotName
ESO Lua API function — used by 30 of the 3,030 addons we indexed (combined 12,100,199 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetSlotName(luaindex actionSlotIndex, [HotBarCategory|#HotBarCategory]:nilable hotbarCategory)Returns: string name
Real usage — from Action Duration Reminder
local currentId = GetSlotBoundId(oldestAction.slotNum)
local currentAbility = models.newAbility(currentId,models.patchAbilityName(GetSlotName(oldestAction.slotNum)),'')
if oldestAction:matchesAbility(currentAbility) thenShort excerpt from the shipping addon Action Duration Reminder — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Action Duration Reminder | 6,522,011 |
| Azurah - Interface Enhanced | 1,462,318 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| Greymind Quick Slot Bar | 710,122 |
| Wykkyd Outfitter | 632,442 |
| Assist Rapid Riding | 629,563 |