Mercurial > wow > reaction
changeset 31:27dde2743f43
Cleaned up and finished HideBlizzard module
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Wed, 02 Apr 2008 23:44:06 +0000 |
parents | 0d95ce7a9ec2 |
children | 821b2b7edff1 |
files | modules/ReAction_HideBlizzard/ReAction_HideBlizzard.lua |
diffstat | 1 files changed, 1 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- 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