nameplates: add option for friendly text class color

This commit is contained in:
Cameron Weaver (Clutch)
2023-03-12 20:06:38 +01:00
committed by shagu
parent 44bce4e3e9
commit 31b8f11dc0
11 changed files with 15 additions and 0 deletions
+5
View File
@@ -634,6 +634,11 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
plate.cache.r, plate.cache.g, plate.cache.b = r, g, b
end
if r + g + b ~= plate.cache.namecolor and unittype == "FRIENDLY_PLAYER" and C.nameplates["friendclassnamec"] == "1" and class and RAID_CLASS_COLORS[class] then
plate.name:SetTextColor(r, g, b, a)
plate.cache.namecolor = r + g + b
end
-- update combopoints
for i=1, 5 do plate.combopoints[i]:Hide() end
if target and C.nameplates.cpdisplay == "1" then