Advertisement
Guest User

TipTop\tiptop.diff

a guest
Oct 18th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.08 KB | None | 0 0
  1. diff --git a/tiptop.lua b/tiptop.lua
  2. index 02862ee..c9c5a80 100644
  3. --- a/tiptop.lua
  4. +++ b/tiptop.lua
  5. @@ -7,7 +7,7 @@ local ttName, TipTop = ...
  6.  local evfr = CreateFrame("Frame")
  7.  local tt = GameTooltip
  8.  local ttSBar = GameTooltipStatusBar
  9. -local ttSBarBG = CreateFrame("Frame", nil, ttSBar)
  10. +local ttSBarBG = CreateFrame("Frame", nil, ttSBar, BackdropTemplateMixin and "BackdropTemplate")
  11.  local ttHealth = ttSBar:CreateFontString("ttHealth", "OVERLAY")
  12.     ttHealth:SetPoint("CENTER")
  13.  local raidIcon = ttSBar:CreateTexture(nil, "OVERLAY")
  14. @@ -514,7 +514,7 @@ local function PlayerLogin()
  15.     end
  16.    
  17.     --set the default style to ours
  18. -   ttStyle = GAME_TOOLTIP_BACKDROP_STYLE_DEFAULT
  19. +   ttStyle = TOOLTIP_BACKDROP_STYLE_DEFAULT
  20.    
  21.     --totally ugly chunk of code to ensure tooltip style and colors are consistent
  22.     ttStyle.backdropColor.GetRGB = ColorMixin.GetRGBA;
  23. @@ -530,10 +530,10 @@ local function PlayerLogin()
  24.             tt:SetBackdropColor(db.bgColor.r, db.bgColor.g, db.bgColor.b, db.alpha)
  25.         end
  26.     end)
  27. -   hooksecurefunc("GameTooltip_SetBackdropStyle", function(self)
  28. +   hooksecurefunc("SharedTooltip_SetBackdropStyle", function(self)
  29.         SetBorderColor(self, db.borderColor.r, db.borderColor.g, db.borderColor.b, db.borderColor.a)
  30.     end)
  31. -   WorldMapTooltip:HookScript("OnShow", function(self)
  32. +   GameTooltip:HookScript("OnShow", function(self)
  33.         SetBorderColor(self, db.borderColor.r, db.borderColor.g, db.borderColor.b, db.borderColor.a)
  34.     end)
  35.     QuestScrollFrame.StoryTooltip:HookScript("OnShow", function(self)
  36. @@ -541,7 +541,7 @@ local function PlayerLogin()
  37.         SetBorderColor(self, db.borderColor.r, db.borderColor.g, db.borderColor.b, db.borderColor.a)
  38.         self:SetBackdropColor(db.bgColor.r, db.bgColor.g, db.bgColor.b, db.alpha)
  39.     end)
  40. -   QuestScrollFrame.WarCampaignTooltip:HookScript("OnShow", function(self)
  41. +   QuestScrollFrame.CampaignTooltip:HookScript("OnShow", function(self)
  42.         self:SetBackdrop(ttStyle)
  43.         SetBorderColor(self, db.borderColor.r, db.borderColor.g, db.borderColor.b, db.borderColor.a)
  44.         self:SetBackdropColor(db.bgColor.r, db.bgColor.g, db.bgColor.b, db.alpha)
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement