This commit is contained in:
Bunny67
2018-07-14 15:59:34 +03:00
parent 6eaa28b2af
commit bf38105e4a
5 changed files with 30 additions and 12 deletions
+19 -3
View File
@@ -93,9 +93,9 @@ function TT:GameTooltip_SetDefaultAnchor(tt, parent)
end
function TT:SetStyle(tt)
E:SetTemplate(this, "Transparent", nil, true)
local r, g, b = this:GetBackdropColor()
this:SetBackdropColor(r, g, b, self.db.colorAlpha)
E:SetTemplate(tt, "Transparent", nil, true)
local r, g, b = tt:GetBackdropColor()
tt:SetBackdropColor(r, g, b, self.db.colorAlpha)
end
function TT:RemoveTrashLines(tt)
@@ -245,6 +245,22 @@ function TT:SetItemRef(link)
end
end
function TT:CheckBackdropColor()
if not this:IsShown() then return end
local r, g, b = this:GetBackdropColor()
if r and g and b then
r = E:Round(r, 1)
g = E:Round(g, 1)
b = E:Round(b, 1)
local red, green, blue = unpack(E.media.backdropfadecolor)
if r ~= red or g ~= green or b ~= blue then
this:SetBackdropColor(red, green, blue, self.db.colorAlpha)
this:SetBackdropBorderColor(unpack(E.media.bordercolor))
end
end
end
function TT:SetTooltipFonts()
local font = E.LSM:Fetch("font", E.db.tooltip.font)
local fontOutline = E.db.tooltip.fontOutline