View Single Post
10-05-16, 02:23 AM   #13
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
There is a so called nameplate base frame. They must adjust the scale of the nameplate base frame for bosses. But it should be easily detectable on UNIT_ADDED.

I already offset the worldframe scale. Otherwise the size of all my nameplates would be off.

https://github.com/zorker/rothui/blo.../core.lua#L688
Lua Code:
  1. --CreateNamePlateStyle
  2. local function CreateNamePlateStyle(self)
  3.   --...
  4.   cfg.scale = 1*GetCVar("uiScale") --nameplates are not part of uiparent!
  5.   --...
  6. end

Nameplates shuffle units constantly. There is no specific nameplate for player or bosses. Any nameplate may be used for any unit.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-05-16 at 02:29 AM.
  Reply With Quote