![]() |
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the widget set ID for the top center part of the screen.
setID = C_UIWidgetManager.GetTopCenterWidgetSetID()
Returns
- setID
- number : UiWidgetSetID - Returns
1
| ID | Location Function |
|---|---|
| 1 | C_UIWidgetManager.GetTopCenterWidgetSetID() |
| 2 | C_UIWidgetManager.GetBelowMinimapWidgetSetID() |
| 240 | C_UIWidgetManager.GetObjectiveTrackerWidgetSetID() |
| 283 | C_UIWidgetManager.GetPowerBarWidgetSetID() |
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.

