# HG changeset patch # User Flick # Date 1207179846 0 # Node ID 27dde2743f43b83b06b89caffc08405b488f9d73 # Parent 0d95ce7a9ec28e809f697c765e2825580d0cc2e6 Cleaned up and finished HideBlizzard module diff -r 0d95ce7a9ec2 -r 27dde2743f43 modules/ReAction_HideBlizzard/ReAction_HideBlizzard.lua --- a/modules/ReAction_HideBlizzard/ReAction_HideBlizzard.lua Wed Apr 02 23:31:13 2008 +0000 +++ b/modules/ReAction_HideBlizzard/ReAction_HideBlizzard.lua Wed Apr 02 23:44:06 2008 +0000 @@ -9,7 +9,6 @@ -- local imports local ReAction = ReAction local L = ReAction.L -local _G = _G -- module declaration local moduleID = "HideBlizzard" @@ -62,16 +61,7 @@ local frames = { MainMenuBar, - PetActionButton1, - PetActionButton2, - PetActionButton3, - PetActionButton4, - PetActionButton5, - PetActionButton6, - PetActionButton7, - PetActionButton8, - PetActionButton9, - PetActionButton10, + PetActionBarFrame, BonusActionBarFrame, ShapeshiftBarFrame, MultiBarLeft, @@ -87,15 +77,6 @@ function module:HideAll( force ) if not(self.db.profile.hide) or force then self.db.profile.hide = true - -- the pet bar is a child of MainMenuBar, but can't be permanently hidden because it will - -- break automatic pet bar show/hide. Need to reparent it instead. - PetActionBarFrame:SetParent(UIParent) - -- for some odd reason PetActionBarFrame has mouse input enabled even though it has no mouse - -- input handlers. Because of this it can potentially trap mouse clicks from getting through - -- to things behind it. It's not feasible to move it, either, since UIParent_ManageFramePositions() - -- will move it back to its original position whenever it's called. - PetActionBarFrame:EnableMouse(false) - for _, f in pairs(frames) do hidden[f] = hidden[f] or { parent = f:GetParent(), wasShown = f:IsShown() } f:SetParent(self.hiddenFrame) @@ -108,7 +89,6 @@ if self.db.profile.hide or force then self.db.profile.hide = false - PetActionBarFrame:SetParent(MainMenuBar) for _, f in pairs(frames) do local h = hidden[f] if h then