frozn / TipTac

WoW AddOn TipTac Reborn
GNU General Public License v3.0
118 stars 25 forks source link

[Q] How to Backdrop Border Color of the GameTooltip with 3rd party addon? #360

Open orionshock opened 2 weeks ago

orionshock commented 2 weeks ago

Describe the individual topic

I have a simple and private addon that colors the border of item tooltips red when is basically no usable by the player class. I have been going though the code and found that TipTac is using hookmagic to simply enforce it's own options. Is there a simple and direct way to set the game tooltip boarder color with out TipTac overriding it?

frozn commented 2 weeks ago

Yes, you can use the following snippet:

if (_G.TipTac) then
    _G.TipTac:SetBackdropBorderColorLocked(tip, r, g, b, a);
end
orionshock commented 1 week ago

finally figured that out - but also found out i have to load after TipTac for it to work for some reason.

frozn commented 1 week ago

Probably has to do with the hooking order, which addon sets the border at last.