BagSync

BagSync

3M Downloads

Support CUSTOM_CLASS_COLORS

XiconQoo opened this issue ยท 0 comments

commented

Hey,

I have a feature request to support CUSTOM_CLASS_COLORS from https://github.com/phanx-wow/ClassColors (depricated) and https://github.com/XiconQoo/WeWantBlueShamans (made for Classic Era). The code below should do that just fine.

if bypass or ( doChk and RAID_CLASS_COLORS[unitObj.data.class] ) then
return RAID_CLASS_COLORS[unitObj.data.class]
end

        local classColor = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[unitObj.data.class] or RAID_CLASS_COLORS[unitObj.data.class]
        if bypass or ( doChk and classColor ) then
                return classColor
        end

Thanks =)