It sounds simple to me but I don't know if it's doable.
As the ML in our raid I need some way to avoid error when "Binds when equipped" Items drop in our raid.
Is there a way to change the color of the "bind ..." part of the tooltip. Something like blue for BoE.
--ITEM_BIND_ON_EQUIP = "Binds when equipped"; -- Item will be bound when equipped
local ITEM_BIND_ON_EQUIP = ITEM_BIND_ON_EQUIP
local function changeBoE(tip, ...)
if tip:GetItem() then
for i = 1, tip:NumLines() do
local line = _G[ tip:GetName().."TextLeft"..i]
if line and line:GetText():find(ITEM_BIND_ON_EQUIP) then
line:SetVertexColor(r, g, b[, alpha]) --Change Here
end
end
end
return tip, ...
end
GameTooltip:HookScript("OnTooltipSetItem", changeBoE)
You'll need to change the rbgA values, but that should do it
As the ML in our raid I need some way to avoid error when "Binds when equipped" Items drop in our raid.
Is there a way to change the color of the "bind ..." part of the tooltip. Something like blue for BoE.
True, this was done in a rush ..
However in my defence, once you learn how to modify a something to do something useful, you tend to find more things to make it useful :)
Working addon if anyone needs it :
http://www.guilde-donjon.com/sarb/Addons/BindColor.zip