UnitPositionFrame
widget type12 methodsavailable in: camelot
CreateFrame("UnitPositionFrame", …) makes one. It has every method of Frame, plus 12 of its own.
Inherits from
- UnitPositionFrame · 12
- Frame · 126
- Region · 16
- ScriptRegion · 55
- ScriptRegionResizing · 13
- AnimatableObject · 3
- Object · 5
- FrameScriptObject · 21
The number is each type's own documented methods. A UnitPositionFrame has all of them.
Methods
In the emulator: 4 implemented, 8 guessed.
| method | what it does | status |
|---|---|---|
AddUnit | Adds a unit's marker to the frame. · by wowlua(unitTokenString: string, asset: TextureAssetDisk, width: number?, height: number?, r: number?, g: number?, b: number?, a: number?, sublayer: number?, showFacing: boolean?) | guessed |
ClearUnits | Removes all unit markers from the frame. · by wowlua() | guessed |
FinalizeUnits | Finishes adding units, so the frame draws their markers. · by wowlua() | guessed |
GetMouseOverUnits | Returns the units whose markers are under the mouse. · by wowlua(): string | guessed |
GetPlayerPingScale | Returns the scale of the ping that marks the player. · by wowlua(): number | guessed |
GetUiMapID | Returns the ID of the map the frame shows units on. · by wowlua(): number | guessed |
SetPlayerPingScale | Sets the scale of the ping that marks the player. · by wowlua(scale: number) | implemented |
SetPlayerPingTexture | Sets a texture of the ping that marks the player. · by wowlua(textureType: PingTextureType, asset: FileAsset, width: number, height: number) | implemented |
SetUiMapID | Sets the map the frame shows units on. · by wowlua(mapID: number) | implemented |
SetUnitColor | Sets the color of a unit's marker. · by wowlua(unit: string, colorR: number, colorG: number, colorB: number, colorA: number) | implemented |
StartPlayerPing | Starts the ping that marks the player. · by wowlua(duration: number, fadeDuration: number) | guessed |
StopPlayerPing | Stops the ping that marks the player. · by wowlua() | guessed |
sources
Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: written by wowlua where no documentation describes the entry.