fixed issue preventing party/raid frames from being able to preview
Steven Jackson [07-19-15 - 21:12]
fixed issue preventing party/raid frames from being able to preview
diff --git a/SVUI_UnitFrames/groups.lua b/SVUI_UnitFrames/groups.lua
index 22d7fcb..1344519 100644
--- a/SVUI_UnitFrames/groups.lua
+++ b/SVUI_UnitFrames/groups.lua
@@ -331,7 +331,9 @@ UpdateTemplates["party"] = function(self)
local visibility = Update5ManVisibility("party")
local db = SV.db.UnitFrames.party
local groupFrame = self:GetParent()
- RegisterStateDriver(groupFrame, "visibility", visibility)
+ if not self.isForced then
+ RegisterStateDriver(groupFrame, "visibility", visibility)
+ end
if not groupFrame.positioned then
groupFrame:ClearAllPoints()
@@ -438,7 +440,9 @@ UpdateTemplates["raid"] = function(self)
local visibility = Update5ManVisibility("raid")
local db = SV.db.UnitFrames.raid
local groupFrame = self:GetParent()
- RegisterStateDriver(groupFrame, "visibility", visibility)
+ if not self.isForced then
+ RegisterStateDriver(groupFrame, "visibility", visibility)
+ end
if not groupFrame.positioned then
groupFrame:ClearAllPoints()
@@ -962,6 +966,7 @@ local GroupMediaUpdate = function(self)
end
local GroupSetVisibility = function(self)
+ --print(self.isForced)
if not self.isForced then
local token = self.___groupkey
local db = SV.db.UnitFrames[token]
@@ -1201,4 +1206,5 @@ function MOD:SetGroupFrame(token, forceUpdate)
groupFrame:Hide()
return
end
+ --print('SetGroupFrame')
end
diff --git a/SVUI_UnitFrames/view.lua b/SVUI_UnitFrames/view.lua
index b7f5f96..bc082b2 100644
--- a/SVUI_UnitFrames/view.lua
+++ b/SVUI_UnitFrames/view.lua
@@ -157,8 +157,8 @@ end
local function TransferVisibility(frame)
for i = 1, select("#", frame:GetChildren()) do
local child = select(i,frame:GetChildren())
- child.forceShowAuras = frame.forceShowAuras
- child.forceShowHighlights = frame.forceShowHighlights
+ child.forceShowAuras = frame.forceShowAuras
+ child.forceShowHighlights = frame.forceShowHighlights
end
end
@@ -183,6 +183,7 @@ function MOD:ViewGroupFrames(headerFrame, setForced, setAuraForced, setHighlight
end
end
RegisterStateDriver(headerFrame, "visibility", "show")
+ --print('Now Showing')
else
for func, fenv in pairs(_PRIVATE_FUNCTIONS)do
setfenv(func, fenv)
@@ -191,6 +192,7 @@ function MOD:ViewGroupFrames(headerFrame, setForced, setAuraForced, setHighlight
local db = SV.db.UnitFrames[raidToken]
RegisterStateDriver(headerFrame, "visibility", db.visibility)
+ --print('Now: '..db.visibility)
local eventScript = headerFrame:GetScript("OnEvent")
if eventScript then
eventScript(headerFrame, "PLAYER_ENTERING_WORLD")