WowAddons

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

notchPresentbool

C_UI.GetTopLeftNotchSafeRegion

left, right, top, bottom = C_UI.GetTopLeftNotchSafeRegion()

Region of screen left of screen notch. Zeros if no notch.

Returns

leftnumber
rightnumber
topnumber
bottomnumber

C_UI.GetTopRightNotchSafeRegion

left, right, top, bottom = C_UI.GetTopRightNotchSafeRegion()

Region of screen right of screen notch. Zeros if no notch.

Returns

leftnumber
rightnumber
topnumber
bottomnumber

C_UI.GetUIParent

uiParent = C_UI.GetUIParent()

Returns

uiParentSimpleFrame

C_UI.GetWorldFrame

worldFrame = C_UI.GetWorldFrame()

Returns

worldFrameSimpleFrame

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

willAvoidNotchbool

Events

NOTCHED_DISPLAY_MODE_CHANGED

No payload.

UI_SCALE_CHANGED

No payload.

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows