Код:
local _, class = UnitClass("player");
if class == "WARRIOR" then
self:SetBackdropBorderColor(0.95, 0.23, 0.23, 0.50)
elseif class == "PRIEST" then
self:SetBackdropBorderColor(1, 0.96, 0.98, 0.50)
elseif class == "MAGE" then
self:SetBackdropBorderColor(0.00, 1, 1, 0.50)
elseif class == "DRUID" then
self:SetBackdropBorderColor(1, 0.49, 0.04, 0.50)
elseif class == "PALADIN" then
self:SetBackdropBorderColor(0.92, 0.22, 0.46, 0.50)
elseif class == "HUNTER" then
self:SetBackdropBorderColor(0.33, 0.86, 0.00, 0.50)
elseif class == "ROGUE" then
self:SetBackdropBorderColor(1, 0.94, 0.16, 0.50)
elseif class == "SHAMAN" then
self:SetBackdropBorderColor(0.13, 0.42, 1, 0.50)
elseif class == "WARLOCK" then
self:SetBackdropBorderColor(0.36, 0.18, 1, 0.50)
elseif class == "DEATHKNIGHT" then
self:SetBackdropBorderColor(0.77, 0.12, 0.23, 0.50)
end