GetActiveWeaponPairInfo
ESO Lua API function — used by 62 of the 3,030 addons we indexed (combined 17,643,511 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetActiveWeaponPairInfo()Returns: activeWeaponPair, bool locked
Real usage — from Action Duration Reminder
if self.background then
local texture = GetSlotTexture(slotNum,2-GetActiveWeaponPairInfo())
if texture and texture:len()>0 then self.background:SetTexture(texture)Short 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 |
| LibCombat | 5,017,654 |
| AlphaGear 2 (Builds, Gear, Skills, Banking) | 848,683 |
| Greymind Quick Slot Bar | 710,122 |
| Wykkyd Outfitter | 632,442 |
| Assist Rapid Riding | 629,563 |