Page 1 of 1
Custom Nameplates
Posted:
Sun Sep 20, 2015 6:49 pm
by Toaked
So I love the look of the CustomNamePlates addon, but it quickly targets each and every player when on? I guess I wouldnt mind but it makes a sound and is just too annoying to tolerate.
Anyone know why? or a better nameplate addon? default is just so ugly...
Re: Custom Nameplates
Posted:
Sun Sep 20, 2015 7:01 pm
by LYQ
that's the ClassIcon addition of customNameplates
find the lines containing
fillPlayerDB(name)
ClearTarget()
and delete/comment them out to disable
but that will disable the ClassIcon addition - at least for players which are not in the DB already
In my own modification of the nameplates I used another way to get the classIcons - but hell idk when I'm going to release my UI
Re: Custom Nameplates
Posted:
Sun Sep 20, 2015 7:24 pm
by Toaked
SUPER appreciated. Lifesaver.
Re: Custom Nameplates
Posted:
Sun Sep 20, 2015 7:35 pm
by Toaked
So I tried to delete just this:
local function fillPlayerDB(name)
if Targets[name] == nil then
TargetByName(name, true);
table.insert(Targets, name);
Targets[name] = "ok"
if UnitIsPlayer("target") then
local class = UnitClass("target");
table.insert(Players, name)
Players[name] = {["class"] = class};
end
end
end
and when I remove all that, in game most nameplates show up default, some glitchy, and some correctly. any ideas?
Re: Custom Nameplates
Posted:
Sun Sep 20, 2015 7:43 pm
by LYQ
just remove
fillPlayerDB(name)
ClearTarget()
and leave the rest of the code and it should be fine without errors
Re: Custom Nameplates
Posted:
Sun Sep 20, 2015 7:47 pm
by Toaked
annnnnnnd you rock. Addon setup/OCD calmed... for now