Custom Nameplates

Custom Nameplates

by Toaked » Sun Sep 20, 2015 6:49 pm

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...
Toaked
Grunt
Grunt
 

Re: Custom Nameplates

by LYQ » Sun Sep 20, 2015 7:01 pm

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
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Custom Nameplates

by Toaked » Sun Sep 20, 2015 7:24 pm

SUPER appreciated. Lifesaver.
Toaked
Grunt
Grunt
 

Re: Custom Nameplates

by Toaked » Sun Sep 20, 2015 7:35 pm

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?
Toaked
Grunt
Grunt
 

Re: Custom Nameplates

by LYQ » Sun Sep 20, 2015 7:43 pm

just remove

fillPlayerDB(name)
ClearTarget()

and leave the rest of the code and it should be fine without errors
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Custom Nameplates

by Toaked » Sun Sep 20, 2015 7:47 pm

annnnnnnd you rock. Addon setup/OCD calmed... for now ;)
Toaked
Grunt
Grunt
 


Return to Addons & macros