Skip to content

Commit

Permalink
Test 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shestak committed Jan 16, 2012
1 parent 8b0a559 commit 3370b4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion ShestakUI/Core/API.lua
Expand Up @@ -176,11 +176,15 @@ end
----------------------------------------------------------------------------------------
-- Kill object function
----------------------------------------------------------------------------------------
local HiddenFrame = CreateFrame("Frame")
HiddenFrame:Hide()
local function Kill(object)
if object.UnregisterAllEvents then
object:UnregisterAllEvents()
object:SetParent(T.HiddenFrame)
else
object.Show = T.dummy
end
object.Show = T.dummy
object:Hide()
end

Expand Down
8 changes: 4 additions & 4 deletions ShestakUI/Modules/Blizzard/Kill.lua
Expand Up @@ -17,9 +17,7 @@ Kill:SetScript("OnEvent", function(self, event, addon)
InterfaceOptionsFrameCategoriesButton11:SetAlpha(0)

local function KillRaidFrame()
CompactRaidFrameManager:UnregisterAllEvents()
if not InCombatLockdown() then CompactRaidFrameManager:Hide() end

CompactRaidFrameManager:Kill()
local shown = CompactRaidFrameManager_GetSetting("IsShown")
if shown and shown ~= "0" then
CompactRaidFrameManager_SetSetting("IsShown", "0")
Expand All @@ -29,6 +27,8 @@ Kill:SetScript("OnEvent", function(self, event, addon)
hooksecurefunc("CompactRaidFrameManager_UpdateShown", function()
KillRaidFrame()
end)
CompactRaidFrameManager:HookScript("OnShow", KillRaidFrame)
CompactRaidFrameContainer:UnregisterAllEvents()

KillRaidFrame()

Expand All @@ -52,7 +52,7 @@ Kill:SetScript("OnEvent", function(self, event, addon)
_G[name.."HealthBar"]:UnregisterAllEvents()
_G[name.."ManaBar"]:UnregisterAllEvents()
end

if CompactPartyFrame then
KillPartyFrame()
elseif CompactPartyFrame_Generate then
Expand Down

0 comments on commit 3370b4f

Please sign in to comment.