v0.13.7

UnitPositionFrame

widget type12 methodsavailable in: camelot

CreateFrame("UnitPositionFrame", …) makes one. It has every method of Frame, plus 12 of its own.

Inherits from

  1. UnitPositionFrame · 12
  2. Frame · 126
  3. Region · 16
  4. ScriptRegion · 55
  5. ScriptRegionResizing · 13
  6. AnimatableObject · 3
  7. Object · 5
  8. 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.

methodwhat it doesstatus
AddUnitAdds 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
ClearUnitsRemoves all unit markers from the frame. · by wowlua
()
guessed
FinalizeUnitsFinishes adding units, so the frame draws their markers. · by wowlua
()
guessed
GetMouseOverUnitsReturns the units whose markers are under the mouse. · by wowlua
(): string
guessed
GetPlayerPingScaleReturns the scale of the ping that marks the player. · by wowlua
(): number
guessed
GetUiMapIDReturns the ID of the map the frame shows units on. · by wowlua
(): number
guessed
SetPlayerPingScaleSets the scale of the ping that marks the player. · by wowlua
(scale: number)
implemented
SetPlayerPingTextureSets a texture of the ping that marks the player. · by wowlua
(textureType: PingTextureType, asset: FileAsset, width: number, height: number)
implemented
SetUiMapIDSets the map the frame shows units on. · by wowlua
(mapID: number)
implemented
SetUnitColorSets the color of a unit's marker. · by wowlua
(unit: string, colorR: number, colorG: number, colorB: number, colorA: number)
implemented
StartPlayerPingStarts the ping that marks the player. · by wowlua
(duration: number, fadeDuration: number)
guessed
StopPlayerPingStops 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.