View Single Post
09-21-15, 12:04 AM   #3
Lesteryoung
A Black Drake
Join Date: Aug 2015
Posts: 81
Like this?

Code:
local function eventHandler(self, event, ...)
        if UnitIsPlayer("target") then
              local if then c = RAID_CLASS_COLORS[select(2, UnitClass("target"))] end
                TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.b)
        end
        if UnitIsPlayer("focus") then
              local if then c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))] end
                FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.b)
        end
end
  Reply With Quote