Quantcast

Blaze added a thing

Darth Predator [11-20-16 - 11:19]
Blaze added a thing
Filename
ElvUI_SLE/modules/unitframes/offline.lua
ElvUI_SLE/modules/unitframes/units/player.lua
diff --git a/ElvUI_SLE/modules/unitframes/offline.lua b/ElvUI_SLE/modules/unitframes/offline.lua
index fe345d3..396d9e1 100644
--- a/ElvUI_SLE/modules/unitframes/offline.lua
+++ b/ElvUI_SLE/modules/unitframes/offline.lua
@@ -11,7 +11,7 @@ SUF.OfflineTextures = {

 function SUF:Construct_Offline(frame, group)
 	local db = E.db.sle.unitframes.unit[group].offline
-	local offline = frame:CreateTexture(frame:GetName().."Offline", "OVERLAY")
+	local offline = frame.RaisedElementParent.TextureParent:CreateTexture(frame:GetName().."Offline", "OVERLAY")
 	offline:SetSize(db.size, db.size)
 	offline:SetPoint("CENTER", frame, "CENTER", db.xOffset, db.yOffset)
 	offline.Group = "ElvUF_"..T.StringToUpper(group)
diff --git a/ElvUI_SLE/modules/unitframes/units/player.lua b/ElvUI_SLE/modules/unitframes/units/player.lua
index 299d83c..17a64aa 100644
--- a/ElvUI_SLE/modules/unitframes/units/player.lua
+++ b/ElvUI_SLE/modules/unitframes/units/player.lua
@@ -70,7 +70,7 @@ function SUF:UpdateRested(frame)
 end

 function SUF:InitPlayer()
-	SUF.CombatTest = CreateFrame("Frame", "SLE_CombatIconTest", UIParent)
+	SUF.CombatTest = CreateFrame("Frame", "SLE_CombatIconTest", _G["ElvUF_Player"])
 	SUF.CombatTest:Point("CENTER", _G["ElvUF_Player"].Combat)
 	SUF.CombatTest.texture = SUF.CombatTest:CreateTexture(nil, "OVERLAY")
 	SUF.CombatTest.texture:SetAllPoints()