Permalink
Browse files

Bugfixes

Fixed issue that was causing the pet bar ui to show up
FIxed issue that was causing an error when switching profiles
  • Loading branch information...
Tuller committed Sep 3, 2012
1 parent 2634b26 commit c2b844b983ae2d994819f8da70c58e98419a9fb5
Showing with 15 additions and 12 deletions.
  1. +8 −5 Dominos.lua
  2. +7 −7 frame.lua
View
@@ -302,12 +302,15 @@ function Dominos:HideBlizzard()
ReputationWatchBar:SetParent(UIHider)
- StanceBarFrame:UnregisterAllEvents()
- StanceBarFrame:Hide()
- StanceBarFrame:SetParent(UIHider)
+ _G['StanceBarFrame']:UnregisterAllEvents()
+ _G['StanceBarFrame']:Hide()
+ _G['StanceBarFrame']:SetParent(UIHider)
- PossessBarFrame:Hide()
- PossessBarFrame:SetParent(UIHider)
+ _G['PossessBarFrame']:Hide()
+ _G['PossessBarFrame']:SetParent(UIHider)
+
+ _G['PetActionBarFrame']:Hide()
+ _G['PetActionBarFrame']:SetParent(UIHider)
end
View
@@ -35,10 +35,10 @@ do
self:SetFrameRef('FrameToUnregister', frame)
self:Execute([[
local frameToUnregister = self:GetFrameRef('FrameToUnregister')
- for i = 1, #myFrames do
- local frame = myFrames[i]
+ for i, frame in pairs(myFrames) do
if frame == frameToUnregister then
- table.remove(myFrames, frame)
+ table.remove(myFrames, i)
+ break
end
end
]])
@@ -47,16 +47,16 @@ do
PerspectiveController:SetAttribute('_onstate-overrideui', [[
local enabled = newstate == 'enabled'
- for i = 1, #myFrames do
- myFrames[i]:SetAttribute('state-overrideui', enabled)
+ for i, frame in pairs(myFrames) do
+ frame:SetAttribute('state-overrideui', enabled)
end
]])
PerspectiveController:SetAttribute('_onstate-petbattleui', [[
local enabled = newstate == 'enabled'
- for i = 1, #myFrames do
- myFrames[i]:SetAttribute('state-petbattleui', enabled)
+ for i, frame in pairs(myFrames) do
+ frame:SetAttribute('state-petbattleui', enabled)
end
]])
end

0 comments on commit c2b844b

Please sign in to comment.