World of Warcraft Forever API · C_UI.md, for your AI
C_UI
7 functions, 2 events, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_UI.DoesAnyDisplayHaveNotch
notchPresent = C_UI.DoesAnyDisplayHaveNotch()
True if any display attached has a notch. This does not mean the current view intersects the notch.
Returns
notchPresent | bool |
|---|
C_UI.GetTopLeftNotchSafeRegion
left, right, top, bottom = C_UI.GetTopLeftNotchSafeRegion()
Region of screen left of screen notch. Zeros if no notch.
Returns
left | number | |
|---|---|---|
right | number | |
top | number | |
bottom | number |
C_UI.GetTopRightNotchSafeRegion
left, right, top, bottom = C_UI.GetTopRightNotchSafeRegion()
Region of screen right of screen notch. Zeros if no notch.
Returns
left | number | |
|---|---|---|
right | number | |
top | number | |
bottom | number |
C_UI.GetUIParent
uiParent = C_UI.GetUIParent()
Returns
uiParent | SimpleFrame |
|---|
C_UI.GetWorldFrame
worldFrame = C_UI.GetWorldFrame()
Returns
worldFrame | SimpleFrame |
|---|
C_UI.Reload
C_UI.Reload()
C_UI.ShouldUIParentAvoidNotch
willAvoidNotch = C_UI.ShouldUIParentAvoidNotch()
UIParent will shift down to avoid notch if true. This does not mean there is a notch.
Returns
willAvoidNotch | bool |
|---|
Events
NOTCHED_DISPLAY_MODE_CHANGED
No payload.
UI_SCALE_CHANGED
No payload.