Commit 22fb8156 authored by Simpy's avatar Simpy 🐹

ignore header size on DT tooltip; here you go mera <3

parent 7dc4f1ad
......@@ -20,6 +20,13 @@ function DT:Initialize()
self.tooltip = CreateFrame("GameTooltip", "DatatextTooltip", E.UIParent, "GameTooltipTemplate")
TT:HookScript(self.tooltip, 'OnShow', 'SetStyle')
-- Ignore header font size on DatatextTooltip
local font = E.Libs.LSM:Fetch("font", TT.db.font)
local fontOutline = TT.db.fontOutline
local textSize = TT.db.textFontSize
_G.DatatextTooltipTextLeft1:FontTemplate(font, textSize, fontOutline)
_G.DatatextTooltipTextRight1:FontTemplate(font, textSize, fontOutline)
self:RegisterLDB()
LDB.RegisterCallback(E, "LibDataBroker_DataObjectCreated", DT.SetupObjectLDB)
......
......@@ -763,6 +763,12 @@ function TT:SetTooltipFonts()
end
end
-- Ignore header font size on DatatextTooltip
if _G.DatatextTooltip then
_G.DatatextTooltipTextLeft1:FontTemplate(font, textSize, fontOutline)
_G.DatatextTooltipTextRight1:FontTemplate(font, textSize, fontOutline)
end
--These show when you compare items ("Currently Equipped", name of item, item level)
--Since they appear at the top of the tooltip, we set it to use the header font size.
_G.ShoppingTooltip1TextLeft1:FontTemplate(font, headerSize, fontOutline)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment