/
## Interface: 80000 |
## Interface: 80200 |
## Title: Colored Tooltips |
## Notes: Sets tooltip background colors based on targeted unit |
## Version: 1.4.1 |
## Version: 1.4.2 |
## Author: Kharthus |
## SavedVariables: ColoredTooltips_Config |
ColoredTooltips.xml |
local _, faction = UnitFactionGroup(unit); |
for i = 3, 5 do |
local tooltipTextLeft = _G["GameTooltipTextLeft"..i]; |
local originalText = tooltipTextLeft:GetText(); |
if (tooltipTextLeft ~= nil) then |
local originalText = tooltipTextLeft:GetText(); |
end |
if (originalText ~= nil) then |
local newText = string.gsub(originalText, "PvP", ""); |
if (newText == "") then |