I've been trying to set a script to change the colour of the panel borders to class colours when I log onto any character (any class). Whenever I first login, the border colour has reset itself to the borders normal colour of white. The script I currently have that is headed in the right direction (sort of, I suppose) is this below.
Lua Code:
local _,class = UnitClass("player")
self:SetBackdropBorderColor(RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b)
Am I missing something or just being silly like usual?