diff --git a/AddOnSkins/Embed/Skada.lua b/AddOnSkins/Embed/Skada.lua index 73687896..18218b73 100644 --- a/AddOnSkins/Embed/Skada.lua +++ b/AddOnSkins/Embed/Skada.lua @@ -36,7 +36,7 @@ function ES:SkadaWindow(window, width, height, point, relativeFrame, relativePoi window.bargroup:SetFrameLevel(relativeFrame:GetFrameLevel()) window.bargroup:SetBackdrop(nil) if window.bargroup.backdrop then - S:SetTemplate(window.bargroup.backdrop, AS:CheckOption('EmbedBackdropTransparent') and 'Transparent') + AS:SetTemplate(window.bargroup.backdrop, AS:CheckOption('EmbedBackdropTransparent') and 'Transparent') if AS:CheckOption('EmbedBackdrop') then window.bargroup.backdrop:Show() else diff --git a/AddOnSkins/Skins/AddOns/Skada.lua b/AddOnSkins/Skins/AddOns/Skada.lua index 6dd45c47..e48813f5 100644 --- a/AddOnSkins/Skins/AddOns/Skada.lua +++ b/AddOnSkins/Skins/AddOns/Skada.lua @@ -1,4 +1,5 @@ local AS, L, S, R = unpack(AddOnSkins) +local ES = AS.EmbedSystem function R:Skada() local SkadaDisplayBar = Skada.displays['bar'] @@ -53,17 +54,17 @@ function R:Skada() hooksecurefunc(Skada, 'CreateWindow', function() if AS:CheckEmbed('Skada') then - AS:Embed_Skada() + ES:Skada() end end) hooksecurefunc(Skada, 'DeleteWindow', function() if AS:CheckEmbed('Skada') then - AS:Embed_Skada() + ES:Skada() end end) hooksecurefunc(Skada, 'UpdateDisplay', function() if AS:CheckEmbed('Skada') and not InCombatLockdown() then - AS:Embed_Skada() + ES:Skada() end end) end