Quantcast
WoWInterface - View Single Post - Simplespellsteal addon. Need Help to update for 9.0.1.
View Single Post
10-20-20, 04:00 AM   #2
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 962
The license is all rights reserved so here is a diff for the official version. good luck
Diff Code:
  1. --- a/SimpleSpellsteal.lua
  2. +++ b/SimpleSpellsteal.lua
  3. @@ -176,8 +176,7 @@ function SS_handleEvent(self, event, ...)
  4.         elseif (event == "PLAYER_DEAD") then
  5.                 SSFrameUpdate()
  6.         elseif (event == "COMBAT_LOG_EVENT_UNFILTERED")  then
  7. -               local cEvent, _, sourceGUID, sourceName, _,_, destGUID, destName = select(2, ...)
  8. -               local spellID = select(15,...)
  9. +               local timestamp, cEvent, _, sourceGUID, sourceName, _, _, destGUID, destName, _, _, _, _, _, spellID = CombatLogGetCurrentEventInfo()
  10.  
  11.                 if (cEvent == "SPELL_STOLEN" and sourceGUID == UnitGUID("player")) then
  12.  
  13. @@ -219,7 +218,7 @@ function SSFrameCreate()
  14.         local backdrop = {bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", edgeSize = 3, left=2, right=2, top=2, bottom=2}
  15.  
  16.         if not SSFrame then
  17. -               SSFrame = CreateFrame("Frame", "SSFrame", UIParent)
  18. +               SSFrame = CreateFrame("Frame", "SSFrame", UIParent, BackdropTemplateMixin and "BackdropTemplate")
  19.                 SSFrame:SetClampedToScreen(true)
  20.                 SSFrame:SetFrameStrata("HIGH")
  21.                 SSFrame:SetBackdrop(backdrop)
  22. @@ -275,7 +274,7 @@ function SSFrameCreate()
  23.                 SSFrametitle:SetPoint("TOPLEFT", 0, -4)
  24.  
  25.  
  26. -               SSFrameList = CreateFrame("Frame", "SSFrameList", SSFrame)
  27. +               SSFrameList = CreateFrame("Frame", "SSFrameList", SSFrame, BackdropTemplateMixin and "BackdropTemplate")
  28.                 SSFrameList:SetFrameStrata("HIGH")
  29. :
  Reply With Quote