v0.13.8

C_UI

namespaceavailable in: camelot

Status in wowlua

7 functions: 1 implemented, 2 recorded, 4 guessed. 2 events, 1 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
DoesAnyDisplayHaveNotchTrue if any display attached has a notch. This does not mean the current view intersects the notch.
(): boolean
recorded
GetTopLeftNotchSafeRegionRegion of screen left of screen notch. Zeros if no notch.
(): (number, number, number, number)
guessed
GetTopRightNotchSafeRegionRegion of screen right of screen notch. Zeros if no notch.
(): (number, number, number, number)
guessed
GetUIParentReturns UIParent, the frame the default UI is built on. · by wowlua
(): Frame
guessed
GetWorldFrameReturns WorldFrame, the frame the game world is drawn in. · by wowlua
(): Frame
guessed
ReloadReloads the User Interface.
()
implemented
ShouldUIParentAvoidNotchUIParent 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

eventpayloadfired by the emulator
NOTCHED_DISPLAY_MODE_CHANGEDno payloadnot implemented
UI_SCALE_CHANGEDno payloadimplemented

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.