Xruptor / BagSync

BagSync tracks your characters items and displays it within tooltips.
http://www.wowinterface.com/downloads/info15351-BagSync.html
Other
32 stars 21 forks source link

Support CUSTOM_CLASS_COLORS #331

Closed XiconQoo closed 5 months ago

XiconQoo commented 5 months ago

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.

https://github.com/Xruptor/BagSync/blob/21826d06b348ebef9bb70c32b70d51e9d1a4586c/wireframe/tooltip.lua#L161-L163

        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 =)