Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/tiptop.lua b/tiptop.lua
- index 02862ee..c9c5a80 100644
- --- a/tiptop.lua
- +++ b/tiptop.lua
- @@ -7,7 +7,7 @@ local ttName, TipTop = ...
- local evfr = CreateFrame("Frame")
- local tt = GameTooltip
- local ttSBar = GameTooltipStatusBar
- -local ttSBarBG = CreateFrame("Frame", nil, ttSBar)
- +local ttSBarBG = CreateFrame("Frame", nil, ttSBar, BackdropTemplateMixin and "BackdropTemplate")
- local ttHealth = ttSBar:CreateFontString("ttHealth", "OVERLAY")
- ttHealth:SetPoint("CENTER")
- local raidIcon = ttSBar:CreateTexture(nil, "OVERLAY")
- @@ -514,7 +514,7 @@ local function PlayerLogin()
- end
- --set the default style to ours
- - ttStyle = GAME_TOOLTIP_BACKDROP_STYLE_DEFAULT
- + ttStyle = TOOLTIP_BACKDROP_STYLE_DEFAULT
- --totally ugly chunk of code to ensure tooltip style and colors are consistent
- ttStyle.backdropColor.GetRGB = ColorMixin.GetRGBA;
- @@ -530,10 +530,10 @@ local function PlayerLogin()
- tt:SetBackdropColor(db.bgColor.r, db.bgColor.g, db.bgColor.b, db.alpha)
- end
- end)
- - hooksecurefunc("GameTooltip_SetBackdropStyle", function(self)
- + hooksecurefunc("SharedTooltip_SetBackdropStyle", function(self)
- SetBorderColor(self, db.borderColor.r, db.borderColor.g, db.borderColor.b, db.borderColor.a)
- end)
- - WorldMapTooltip:HookScript("OnShow", function(self)
- + GameTooltip:HookScript("OnShow", function(self)
- SetBorderColor(self, db.borderColor.r, db.borderColor.g, db.borderColor.b, db.borderColor.a)
- end)
- QuestScrollFrame.StoryTooltip:HookScript("OnShow", function(self)
- @@ -541,7 +541,7 @@ local function PlayerLogin()
- SetBorderColor(self, db.borderColor.r, db.borderColor.g, db.borderColor.b, db.borderColor.a)
- self:SetBackdropColor(db.bgColor.r, db.bgColor.g, db.bgColor.b, db.alpha)
- end)
- - QuestScrollFrame.WarCampaignTooltip:HookScript("OnShow", function(self)
- + QuestScrollFrame.CampaignTooltip:HookScript("OnShow", function(self)
- self:SetBackdrop(ttStyle)
- SetBorderColor(self, db.borderColor.r, db.borderColor.g, db.borderColor.b, db.borderColor.a)
- self:SetBackdropColor(db.bgColor.r, db.bgColor.g, db.bgColor.b, db.alpha)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement