Thread Tools Display Modes
10-29-18, 08:55 PM   #1
seyan777
An Aku'mai Servant
Join Date: Feb 2017
Posts: 35
Up to which point is nameplate modification allowed?

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?
  Reply With Quote
10-29-18, 09:04 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Any code that touches any part of friendly nameplates and any chat bubbles is blocked in instances. Enemy nameplates are not affected.
  Reply With Quote
10-29-18, 09:43 PM   #3
seyan777
An Aku'mai Servant
Join Date: Feb 2017
Posts: 35
Originally Posted by Kanegasi View Post
Any code that touches any part of friendly nameplates and any chat bubbles is blocked in instances. Enemy nameplates are not affected.
Oh, is it friendly nameplates only?

That's actually a good new for me as my project is mainly focused on enemy nameplates

Thanks for the clarification, Kanegasi!

One more question tho!

In case if I have both, friendly and enemy nameplates, enabled, would the client handle itself to avoid any taints? Or should I perform unit check to see if the assigned unit is friendly or not?

Last edited by seyan777 : 10-29-18 at 09:48 PM.
  Reply With Quote
10-30-18, 12:43 PM   #4
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
The game handles that for you. If you show both friendly and enemy nameplates in a dungeon and you've modified the nameplates, the enemy nameplates will have the modifications, the friendly will not. Both will be modified outside of dungeons tho'.
  Reply With Quote
10-30-18, 02:51 PM   #5
seyan777
An Aku'mai Servant
Join Date: Feb 2017
Posts: 35
Originally Posted by p3lim View Post
The game handles that for you. If you show both friendly and enemy nameplates in a dungeon and you've modified the nameplates, the enemy nameplates will have the modifications, the friendly will not. Both will be modified outside of dungeons tho'.
That's great!

Thanks for the clarification !!
  Reply With Quote
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

WoWInterface » Developer Discussions » General Authoring Discussion » Up to which point is nameplate modification allowed?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off