A suggestion
yishuangfrank opened this issue · 12 comments
Thanks for taking over this great addon and adding so many wonderful functions!
Could you add a function that we can customize the coulor for some special mob?
I'm not really considering adding any new features to the project for now, as the original developers have returned, so I believe your feature request would be better directed towards them.
But being able to set colors to specific units would be a neat feature to have.
This WeakAura makes the nameplate glow for Spawn of G'huun. Works with Tidyplates.
This WeakAura makes the nameplate glow for Spawn of G'huun. Works with Tidyplates.
Thanks a lot.
I changed the file:TidyPlatesContinuedHub\functions\color.lua
Added some codes:
--change color according to buff
for i = 1, 40 do
local spellIDs = {select(10, UnitBuff(unit.unitid, i))}
for _, v in pairs(spellIDs) do
if v == 277242 then
return 1, 0, 1, 1
end
end
end
--change color according to name
local n = unit.name
if n == "Spawn of G'huun" then
return 1, 0, 1, 1
end
local n = unit.name
if n == "Explosive" then
return 0, 1, 1, 1
end
I've basically added this to the latest release.
I took a while because I was unsure of how to implement it into the settings panel properly, but I believe the current method should do just fine.
However, it only allows coloring of health bars based on the unit name.
I felt that coloring by buffs/debuffs wasn't necessary as you can already track any aura you want with the Aura Widget. And if further distinction between auras were to become necessary, it would be better add this coloration method to auras as well.
If lots of mobs get together at the same time,
I can't select the right nameplate according to the buff/debuff's icons.
It bothers me for a long time.
So I guess I kinda changed my mind on only coloring by unit name and decided to expand upon this feature in the latest release.
It now includes the ability to color by unit buffs as well as their health threshold, as I felt the current health threshold system was a bit limited.