WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Change color of text - Blizzard Raid frame. (https://www.wowinterface.com/forums/showthread.php?t=58642)

keid 03-18-21 06:11 PM

Change color of text - Blizzard Raid frame.
 
Hello,
By this simple addon:

Code:

RAID_CLASS_COLORS['PRIEST']["r"] = 0
RAID_CLASS_COLORS['PRIEST']["g"] = 0
RAID_CLASS_COLORS['PRIEST']["b"] = 0
RAID_CLASS_COLORS['PRIEST']["colorStr"] = "000000"

I can set all priest as black in my raid frames.
How can I change only priests name to Red?

Seerah 03-18-21 06:27 PM

It would depend on what, if any, addon your are using.

keid 03-19-21 03:54 AM

Im using blizzard raid frames.

L3n1n 03-26-21 03:39 PM

Quote:

Originally Posted by keid (Post 338658)
Im using blizzard raid frames.

This solution:

Code:

hooksecurefunc("CompactUnitFrame_UpdateName", function(frame)
        local playerName = GetUnitName(frame.unit, true)

        if playerName then
                _, class = UnitClass(frame.unit)
                if class == "PRIEST" then
                        frame.name:SetVertexColor(0, 0, 0)
                end
        end
end)


keid 04-11-21 02:06 PM

thank you :)


All times are GMT -6. The time now is 04:03 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI