Verified Commit 9e3b3e19 authored by Repooc's avatar Repooc
Browse files

fix #465

parent 9747195e
......@@ -47,7 +47,7 @@ V["sle"] = {
["points"] = {},
},
shadows = {
enable = true, -- TODO: Still need to implement this
enable = true,
},
},
["unitframe"] = {
......
......@@ -12,7 +12,7 @@ function SUF:Construct_ArenaFrame()
end
function SUF:ArrangeArena()
local enableState = E.db.unitframe.units.arena.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.arena.enable
for i = 1, 5 do
local frame = _G["ElvUF_Arena"..i]
......
......@@ -12,7 +12,7 @@ function SUF:Construct_BossFrame()
end
function SUF:ArrangeBoss()
local enableState = E.db.unitframe.units.boss.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.boss.enable
for i = 1, 5 do
local frame = _G["ElvUF_Boss"..i]
......
......@@ -12,7 +12,7 @@ function SUF:Construct_PartyFrame()
end
function SUF:ArrangeParty()
local enableState = E.db.unitframe.units.party.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.party.enable
local header = _G['ElvUF_Party']
for i = 1, header:GetNumChildren() do
......
......@@ -12,7 +12,7 @@ function SUF:Construct_RaidFrame()
end
function SUF:ArrangeRaid()
local enableState = E.db.unitframe.units.raid.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.raid.enable
local header = _G['ElvUF_Raid']
for i = 1, header:GetNumChildren() do
......
......@@ -12,7 +12,7 @@ function SUF:Construct_Raid40Frame()
end
function SUF:ArrangeRaid40()
local enableState = E.db.unitframe.units.raid40.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.raid40.enable
local header = _G['ElvUF_Raid40']
for i = 1, header:GetNumChildren() do
......
......@@ -12,7 +12,7 @@ function SUF:Construct_FocusFrame()
end
function SUF:ArrangeFocus()
local enableState = E.db.unitframe.units.focus.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.focus.enable
local frame = _G["ElvUF_Focus"]
local db = E.db.sle.shadows.unitframes[frame.unit]
......
......@@ -12,7 +12,7 @@ function SUF:Construct_FocusTargetFrame()
end
function SUF:ArrangeFocusTarget()
local enableState = E.db.unitframe.units.focustarget.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.focustarget.enable
local frame = _G["ElvUF_FocusTarget"]
local db = E.db.sle.shadows.unitframes[frame.unit]
......
......@@ -12,7 +12,7 @@ function SUF:Construct_PetFrame()
end
function SUF:ArrangePet()
local enableState = E.db.unitframe.units.pet.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.pet.enable
local frame = _G["ElvUF_Pet"]
local db = E.db.sle.shadows.unitframes[frame.unit]
......
......@@ -12,7 +12,7 @@ function SUF:Construct_PetTargetFrame()
end
function SUF:ArrangePetTarget()
local enableState = E.db.unitframe.units.pettarget.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.pettarget.enable
local frame = _G["ElvUF_PetTarget"]
local db = E.db.sle.shadows.unitframes[frame.unit]
......
......@@ -12,7 +12,7 @@ function SUF:Construct_PlayerFrame()
end
function SUF:ArrangePlayer()
local enableState = E.db.unitframe.units.player.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.player.enable
local frame = _G["ElvUF_Player"]
local db = E.db.sle.shadows.unitframes.player
......
......@@ -12,7 +12,7 @@ function SUF:Construct_TargetFrame()
end
function SUF:ArrangeTarget()
local enableState = E.db.unitframe.units.target.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.target.enable
local frame = _G["ElvUF_Target"]
local db = E.db.sle.shadows.unitframes[frame.unit]
......
......@@ -12,7 +12,7 @@ function SUF:Construct_TargetTargetFrame()
end
function SUF:ArrangeTargetTarget()
local enableState = E.db.unitframe.units.targettarget.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.targettarget.enable
local frame = _G["ElvUF_TargetTarget"]
local db = E.db.sle.shadows.unitframes[frame.unit]
......
......@@ -12,7 +12,7 @@ function SUF:Construct_TargetTargetTargetFrame()
end
function SUF:ArrangeTargetTargetTarget()
local enableState = E.db.unitframe.units.targettargettarget.enable
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units.targettargettarget.enable
local frame = _G["ElvUF_TargetTargetTarget"]
local db = E.db.sle.shadows.unitframes[frame.unit]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment