move away from RAID_CLASS_COLORS dependency

This commit is contained in:
Brues
2026-05-28 13:06:00 -05:00
parent 1a7532195a
commit 1fd7895ca7
13 changed files with 49 additions and 56 deletions
+3 -3
View File
@@ -139,7 +139,7 @@ end
do -- dropdown
local _, class = UnitClass("player")
local color = RAID_CLASS_COLORS[class]
local color = PFUI_CLASS_COLORS[class]
local function ListEntryOnShow()
if this.parent.id == this.id then
@@ -734,7 +734,7 @@ function pfUI.api.SkinRotateButton(button)
pfUI.api.CreateBackdrop(button)
local _, class = UnitClass("player")
local color = RAID_CLASS_COLORS[class]
local color = PFUI_CLASS_COLORS[class]
local cr, cg, cb = color.r , color.g, color.b
button:SetWidth(button:GetWidth() - 18)
@@ -939,7 +939,7 @@ function pfUI.api.SkinDropDown(frame, cr, cg, cb, useSmall)
if not cr or not cg or not cb then
local _, class = UnitClass("player")
local color = RAID_CLASS_COLORS[class]
local color = PFUI_CLASS_COLORS[class]
cr, cg, cb = color.r , color.g, color.b
end