WoWInterface SVN ColoredTooltips

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 23 to Rev 24
    Reverse comparison

Rev 23 → Rev 24

ColoredTooltips/ColoredTooltips.lua
61,12 → 61,21
if(UnitExists(unit) and ColoredTooltips_Config["ENABLE"] == 1) then
local r, g, b = GameTooltip_UnitColor(unit);
local changed = false;
local playerFaction = UnitFactionGroup("player")
local unitFaction = UnitFactionGroup(unit)
 
GameTooltipTextLeft1:SetTextColor(1,1,1);
if (ColoredTooltips_Config["COLOR"] == 1) then
-- Set tooltip bg to blue for players
-- Set tooltip bg to blue for players of the same faction, red for opposite faction
if(r == 1 and g == 1 and b == 1) then
r = 0;
g = 0;
if playerFaction == unitFaction then
r = 0
g = 0
else
r = 0.8;
g = 0.3;
b = 0.22;
end
end
changed = true;
end
83,7 → 92,7
end
 
if (ColoredTooltips_Config["PARTY"] == 1) then
-- set tooltip bg to a diffrent color for party members
-- set tooltip bg to a different color for party members
if (UnitInParty(unit) ) then
r = 0.8;
g = 0.4;
ColoredTooltips/ColoredTooltips.toc
1,7 → 1,7
## Interface: 80000
## Title: Colored Tooltips
## Notes: Sets tooltip background colors based on targeted unit
## Version: 1.4.0
## Version: 1.4.1
## Author: Kharthus
## SavedVariables: ColoredTooltips_Config
ColoredTooltips.xml