Quantcast

5.3.0 redo

Steven Jackson [12-02-14 - 02:46]
5.3.0 redo
Filename
Interface/AddOns/SVUI/packages/actionbar/SVBar.lua
diff --git a/Interface/AddOns/SVUI/packages/actionbar/SVBar.lua b/Interface/AddOns/SVUI/packages/actionbar/SVBar.lua
index eae075c..5f8518e 100644
--- a/Interface/AddOns/SVUI/packages/actionbar/SVBar.lua
+++ b/Interface/AddOns/SVUI/packages/actionbar/SVBar.lua
@@ -73,7 +73,7 @@ LOCAL FUNCTIONS
 local LibAB = LibStub("LibActionButton-1.0");

 local function NewActionBar(barName)
-	local bar = CreateFrame("Frame", barName, SV.Screen, "SecureHandlerStateTemplate")
+	local bar = CreateFrame("Frame", barName, UIParent, "SecureHandlerStateTemplate")
 	bar.buttons = {}
 	bar.conditions = ""
 	bar.config = {
@@ -1357,7 +1357,7 @@ CreateMicroBar = function(self)
 	local spacing =  SV.db.SVBar.Micro.buttonspacing or 1;
 	local barWidth = (buttonSize + spacing) * 13;
 	local barHeight = (buttonSize + 6);
-	local microBar = NewFrame('Frame','SVUI_MicroBar',SV.Screen)
+	local microBar = NewFrame('Frame', 'SVUI_MicroBar', UIParent)
 	microBar:Size(barWidth, barHeight)
 	microBar:SetFrameStrata("HIGH")
 	microBar:SetFrameLevel(0)
@@ -1426,7 +1426,7 @@ end

 local CreateExtraBar = function(self)
 	local specialBarSize = ExtraActionBarFrame:GetSize()
-	local specialBar = CreateFrame("Frame", "SVUI_SpecialAbility", SV.Screen)
+	local specialBar = CreateFrame("Frame", "SVUI_SpecialAbility", UIParent)
 	specialBar:Point("BOTTOM", SV.Screen, "BOTTOM", 0, (275 + specialBarSize))
 	specialBar:Size(specialBarSize)
 	ExtraActionBarFrame:SetParent(specialBar)