C_UIWidgetManager .GetAllWidgetsBySetID
Jump to navigation
Jump to search
Returns all widgets for a widget set ID.
widgets = C_UIWidgetManager.GetAllWidgetsBySetID(setID)
Arguments
- setID
- number : UiWidgetSetID
ID | Location Function |
---|---|
1 | C_UIWidgetManager.GetTopCenterWidgetSetID() |
2 | C_UIWidgetManager.GetBelowMinimapWidgetSetID() |
240 | C_UIWidgetManager.GetObjectiveTrackerWidgetSetID() |
283 | C_UIWidgetManager.GetPowerBarWidgetSetID() |
Returns
- widgets
- UIWidgetInfo[]
Field | Type | Description |
---|---|---|
widgetID | number | UiWidget.db2 |
widgetSetID | number | UiWidgetSetID |
widgetType | Enum.UIWidgetVisualizationType | |
unitToken | string? | UnitId; Added in 9.0.1 |
Example
Prints all UI widget IDs for the top center part of the screen, e.g. on Warsong Gulch:
local topCenter = C_UIWidgetManager.GetTopCenterWidgetSetID()
local widgets = C_UIWidgetManager.GetAllWidgetsBySetID(topCenter)
for _, w in pairs(widgets) do
print(w.widgetType, w.widgetID)
end
> 0, 6 -- IconAndText, VisID 3: Icon And Text: No Texture Kit > 3, 2 -- DoubleStatusBar, VisID 1197: PvP - CTF - Double Status Bar > 14, 1640 -- DoubleStateIconRow, VisID 1201: PvP - CTF - Flag Status
Patch changes
Patch 8.0.1 (2018-07-17): Added.