KgPanels script help needed
I have this code working, and it does all the dog tags listed.
OnLoad:
self:RegisterEvent("PLAYER_TARGET_CHANGED")
OnEvent:
LibStub("LibDogTag-3.0"):AddFontString(self.text, kgPanels, [[[thickoutline][( [IsPlayer ? Name:ClassColor ! IsPet ? Name:ClassColor ! IsEnemy ? Name:HostileColor ! PvP ? Name:HostileColor ! Name:ClassColor] )] ]], "Unit", { unit = "target"})
Problem is when I don't have a target, I get the word Target in the kgpanel.
Any help is greatly appreciated.
|