GetStatisticsCategoryList

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 3.0.2 / 1.15.0

Returns the list of statistic categories.

 categories = GetStatisticsCategoryList()

Returns

categories
table - list of all the categories

Example

The snippet below prints info about the category IDs.

local categories = GetStatisticsCategoryList()
for i, id in next(categories) do
    local key, parent = GetCategoryInfo(id)
    print("The key %d has the parent %d", key, parent)
end

Patch changes

Wrath-Logo-Small.png Patch 3.0.2 (2008-10-14): Added.