Files
wow-weakauras/Meta/api/GetNumFactions.lua
2024-11-07 23:12:37 +01:00

5 lines
686 B
Lua

---@diagnostic disable: missing-return, lowercase-global
---@return number numFactions
---Returns the number of entries in the reputation UI. Entries in the reputation UI can be major group headers (Classic, Burning Crusade, Wrath of the Lich King, Inactive, etc.), the sub-group headers within them (Alliance Forces, Steamwheedle Cartel, Horde Expedition, Shattrath City, etc.), or individual factions (Darkmoon Faire, Orgrimmar, Honor Hold, Kirin Tor, etc.). This function returns not the total number of factions (and headers) known, but the number which should currently be visible in the UI according to the expanded/collapsed state of headers.
function GetNumFactions() end