View Single Post
09-07-14, 01:35 AM   #13
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
For a quick solution you can remove the target part and it will just color player and focus.
Lua Code:
  1. ["target"] = {
  2.         ["name"] = "TargetFrame",
  3.         ["back"] = "TargetFrame",
  4.         ["x-offset"] = -104,
  5.         ["y-offset"] = 60,
  6.         ["x-offset2"] = 6,
  7.         ["y-offset2"] = -22,
  8.     },
For a longer solution replace the 'SetVertexColor' line with
Lua Code:
  1. if(not UnitIsPlayer(unit)) then
  2.                     uf['unitClassColorBack']:SetVertexColor(0, 0, 0, 0)
  3.                 else
  4.                     uf['unitClassColorBack']:SetVertexColor(col['r'], col['g'], col['b'],1)
  5.                 end
NPC are mostly warriors or mages. Thats a generic value for them
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote