View Single Post
11-05-18, 07:59 AM   #6
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 133
Originally Posted by seyan777 View Post
I am on my newest journey to modify the Blizzard's default nameplate.

Currently the project includes:
  • Custom aura frame
  • Health percentage text
  • Texture update
  • So on

Afaik, the nameplate modification has been partially(?) blocked in instances like dungeon or raid.

Is there any documentation that lists such things? or Is it basically every single modification that is blocked?
I suppose you can grab the nameplates using either of the following:

C_NamePlate.GetNamePlateForUnit
C_NamePlate.GetNamePlates



Then determine if a nameplate is friendly using either of the following:

isFriend = UnitIsFriend("unit","otherunit");
UnitIsEnemy("unit","otherunit")



Then determine if you are in an instance.

inInstance, instanceType = IsInInstance()
There are several other ways to determine this.


That way you can know when or when not to touch the Friendly Nameplates. I'm not entirely sure there is a direct way to determine if a nameplate is friendly unless it has a tag I'm not aware of. (For Example nameplateObject.IsFriendly) Another way to determine if you can use a nameplate or not is checking to see if that particular one is locked.

There is a function that Blizzard uses called CanAccessObject(object). It will return true if you can access an object without taint or if it's locked for whatever reason. You can use this to check if a nameplate object is locked for any reason.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }

Last edited by Xruptor : 11-05-18 at 08:01 AM.
  Reply With Quote