C_NamePlateManager
namespaceavailable in: camelotStatus in wowlua
4 functions: 0 implemented, 1 recorded, 3 guessed. 7 events, 3 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
GetNamePlateHitTestInsets | Returns the values used to adjust the hit testing area for nameplates.(type: NamePlateType): (number, number, number, number) | guessed |
IsNamePlateUnitBehindCamera | Returns whether the unit to which the nameplate is attached is behind the player's camera.(unitToken: UnitTokenNamePlate): boolean | recorded |
SetNamePlateHitTestInsets | Provide values to adjust the hit testing area for nameplates. Positive values will decrease the hit test area, negative values will increase it. Note that all hit testing is clamped to the bounds of the nameplate and can not be moved outside it.(type: NamePlateType, left: number, right: number, top: number, bottom: number) | guessed |
SetNamePlateSimplified | Set whether the nameplate attached to a unit is considered simplified, which can change the way it's displayed.(unitToken: UnitTokenNamePlate, isSimplified: boolean) | guessed |
Events
| event | payload | fired by the emulator |
|---|---|---|
FORBIDDEN_NAME_PLATE_CREATED | namePlateFrame: NamePlateFrame | not implemented |
FORBIDDEN_NAME_PLATE_UNIT_ADDED | unitToken: string | not implemented |
FORBIDDEN_NAME_PLATE_UNIT_REMOVED | unitToken: string | not implemented |
NAME_PLATE_CREATED | namePlateFrame: NamePlateFrame | implemented |
NAME_PLATE_UNIT_ADDED | unitToken: string | implemented |
NAME_PLATE_UNIT_BEHIND_CAMERA_CHANGED | unitTarget: string, isBehindCamera: boolean | not implemented |
NAME_PLATE_UNIT_REMOVED | unitToken: string | implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("FORBIDDEN_NAME_PLATE_CREATED").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (NamePlateManager system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.