C_NamePlate.GetNamePlates

From Wowpedia
Jump to: navigation, search

C_NamePlate provides two functions to return tables describing currently-visible name plates:

  • GetNamePlates() returns a table containing one subtable for each of nameplate1 to nameplateN; or an empty table if there are no visible nameplates.
  • GetNamePlateForUnit() returns a table for a single unitId; or nil if the given unit has no visible nameplate.
{ {nameplate1}, {nameplate2}, ... } = GetNamePlates(isSecure)
{nameplate1} = GetNamePlateForUnit(unitId, isSecure)

Arguments

isSecure 
Boolean
unitId 
String - Unit described by its UnitId

Returns

Each nameplate, beginning with nameplate1 if it exists, is described by a struct.

Details

  • Despite each nameplate being a kind of Button extended by "BaseNamePlateUnitFrameTemplate", the tables returned by these functions are not the actual UIObjects.

Patch changes

External links

References

 
  1. ^ 2016-07-19, Blizzard_NamePlates.lua, version 7.0.3.22267, near line 89, archived at Townlong-Yak