Hello everyone, I'm looking for either Addon or another workaround that would display on Party Members Nameplates their according Number - in a fashion similar to that Addon https://wow.curseforge.com/projects/arena-nameplate-numbers
Latest relevant thread on the topic I found
( https://us.battle.net/forums/en/wow/topic/20751725036?page=2 ) have theorized on possibility of this but no soultion was brought outside of arena.
Please help.
Okay, I have fiddled around original snippet (introduced in a thread above) and http://wowwiki.wikia.com/wiki/World_of_Warcraft_API
I didn't find in said API 'CompactUnitFrame' function and it's parameters but could kinda gamble on it since it's use was pretty self-explanatory there...
Here's the simplest of implementations I derived (in case you too are interested in this):
/run local U=UnitIsUnit hooksecurefunc("CompactUnitFrame_UpdateName",function(F)if F.unit:find("nameplate")then for i=1,5 do if U(F.unit,"party"..i)then F.name:SetText(i)F.name:SetTextColor(1,1,0)break end end end end)
Tested in Proving Grounds (lol), here's what it looks like there https://imgur.com/a/pUDUt5s
edit:
just checked and it doesn't wotk in Dungeon Finder autosearch function xd
works in arena
works in proving grounds
doesnt work in dungeon finder
normal parties(?) - don't have anyone to run tests with xD
for DF possible causes:
1. Event (CompactUnitFrame_UpdateName) doesnt happen (doesnt seem logical but everything is possible)
2. Zone change resets UI (unlike zone change with arena) and if you load script after zone change it wont work since you were in party from the beginning and no update event occured (seems more likely to be a cause)
So for DF we need another event that
1) is defined as class with .name property (to address it with setText method) or frame or whatever
2) is called after zone change when entering dungeon as party
also must note that as in original snippet tidyplates and alike must be disabled
I didn't find in said API 'CompactUnitFrame' function and it's parameters but could kinda gamble on it since it's use was pretty self-explanatory there...
Here's the simplest of implementations I derived (in case you too are interested in this):
/run local U=UnitIsUnit hooksecurefunc("CompactUnitFrame_UpdateName",function(F)if F.unit:find("nameplate")then for i=1,5 do if U(F.unit,"party"..i)then F.name:SetText(i)F.name:SetTextColor(1,1,0)break end end end end)
Tested in Proving Grounds (lol), here's what it looks like there https://imgur.com/a/pUDUt5s
edit:
just checked and it doesn't wotk in Dungeon Finder autosearch function xd
works in arena
works in proving grounds
doesnt work in dungeon finder
normal parties(?) - don't have anyone to run tests with xD
for DF possible causes:
1. Event (CompactUnitFrame_UpdateName) doesnt happen (doesnt seem logical but everything is possible)
2. Zone change resets UI (unlike zone change with arena) and if you load script after zone change it wont work since you were in party from the beginning and no update event occured (seems more likely to be a cause)
So for DF we need another event that
1) is defined as class with .name property (to address it with setText method) or frame or whatever
2) is called after zone change when entering dungeon as party
also must note that as in original snippet tidyplates and alike must be disabled
1 Like