View Single Post
11-26-14, 10:19 PM   #2
Ekaterina
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 65
You're on the right track - just add that to kgpanels onload scripts. Although I'd recommend adding a reference to CUSTOM_CLASS_COLORS, just so that you don't have to re-write your scipts if you choose to start altering the class colors.

lua Code:
  1. local _, Class = UnitClass("player")
  2. local Color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[Class]
  3. self:SetBackdopBorderColor(Color.r, Color.g, Color.b)
  Reply With Quote