C_UI
namespaceavailable in: camelotStatus in wowlua
7 functions: 1 implemented, 2 recorded, 4 guessed. 2 events, 1 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
DoesAnyDisplayHaveNotch | True if any display attached has a notch. This does not mean the current view intersects the notch.(): boolean | recorded |
GetTopLeftNotchSafeRegion | Region of screen left of screen notch. Zeros if no notch.(): (number, number, number, number) | guessed |
GetTopRightNotchSafeRegion | Region of screen right of screen notch. Zeros if no notch.(): (number, number, number, number) | guessed |
GetUIParent | Returns UIParent, the frame the default UI is built on. · by wowlua(): Frame | guessed |
GetWorldFrame | Returns WorldFrame, the frame the game world is drawn in. · by wowlua(): Frame | guessed |
Reload | Reloads the User Interface.() | implemented |
ShouldUIParentAvoidNotch | UIParent will shift down to avoid notch if true. This does not mean there is a notch.(): boolean | recorded |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
NOTCHED_DISPLAY_MODE_CHANGED | no payload | not implemented |
UI_SCALE_CHANGED | no payload | implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("NOTCHED_DISPLAY_MODE_CHANGED").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (UI system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.