Skip to content

Commit

Permalink
should fix skada issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Repooc committed May 7, 2023
1 parent 5da4ce2 commit 0c656c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AddOnSkins/Embed/Skada.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions AddOnSkins/Skins/AddOns/Skada.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local AS, L, S, R = unpack(AddOnSkins)
local ES = AS.EmbedSystem

function R:Skada()
local SkadaDisplayBar = Skada.displays['bar']
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0c656c8

Please sign in to comment.