From 74fbbb6154d2b2481fa2f61c962888b16d115d8f Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Wed, 12 Aug 2026 14:33:05 -0500 Subject: [PATCH] Use PFUI_CLASS_COLORS in loothistory --- modules/loothistory.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/loothistory.lua b/modules/loothistory.lua index dc76ab2a..ace3faf6 100644 --- a/modules/loothistory.lua +++ b/modules/loothistory.lua @@ -16,12 +16,6 @@ pfUI:RegisterModule("loothistory", function () local WINMARK = "Interface\\Buttons\\UI-CheckBox-Check" local QUESTIONMARK = "Interface\\Icons\\INV_Misc_QuestionMark" - local function ClassColor(class) - local c = class and RAID_CLASS_COLORS[class] - if c then return c.r, c.g, c.b end - return 1, 1, 1 - end - -- Paint an item row's icon/name/quality from a loaded Item mixin. local function RenderItemVisual(f, item) local r, g, b = 1, 1, 1 @@ -277,7 +271,7 @@ pfUI:RegisterModule("loothistory", function () if wroll and wroll > 0 then f.winroll:SetText(wroll) else f.winroll:SetText("") end f.winroll:Show() f.winname:SetText(wname or UNKNOWN) - f.winname:SetTextColor(ClassColor(wclass)) + f.winname:SetTextColor(PFUI_CLASS_COLORS[wclass]:GetRGB()) f.winname:Show() else -- nobody won: everyone passed @@ -298,7 +292,7 @@ pfUI:RegisterModule("loothistory", function () local function RenderPlayerFrame(pf, name, class, rollType, roll, isWinner) pf.name:SetText(name or UNKNOWN) - pf.name:SetTextColor(ClassColor(class)) + pf.name:SetTextColor(PFUI_CLASS_COLORS[class]:GetRGB()) pf.rollicon:SetTexture(ROLL_TEX[rollType] or ROLL_TEX[ROLL_PASS]) if roll and roll > 0 then pf.rolltext:SetText(roll) else pf.rolltext:SetText("") end