Originally Posted by lieandswell
Just to be clear for anyone else following along: Blizzard_NamePlates re-uses a lot of the code from raid frames (CompactUnitFrame), but without the click-ableness. It attaches things it calla "UnitFrames" to the NamePlate# frames returned by C_NamePlate.GetNamePlateForUnit(namePlateUnitToken) but then disables mouse interaction so all clicks go to NamePlate#.
|
On a side note, the nameplate frame table itself has a key for the UnitFrame. The UnitFrame is a CompactUnitFrame which has all the bars, text, and frames attached.
Lua Code:
-- for example
nameplate.UnitFrame
nameplate.UnitFrame.unit
nameplate.UnitFrame.healthBar
nameplate.UnitFrame.BuffFrame