Commit 8853643a authored by Simpy's avatar Simpy 🐹

move the build func up

parent 5951977d
......@@ -395,6 +395,14 @@ function FCT:ToggleFrame(frame)
end
end
function FCT:Build(frame, RaisedElement)
local raised = CreateFrame('Frame', frame:GetDebugName()..'RaisedElvFCT', frame)
raised:SetFrameLevel(RaisedElement:GetFrameLevel() + 50)
raised:SetAllPoints()
return { owner = frame, parent = raised }
end
function FCT:UpdateColors()
for k, v in pairs(FCT.db.colors) do
k = tonumber(k)
......@@ -480,14 +488,6 @@ function FCT:Initialize()
E.Libs.EP:RegisterPlugin(addon, FCT.Options)
end
function FCT:Build(frame, RaisedElement)
local raised = CreateFrame('Frame', frame:GetDebugName()..'RaisedElvFCT', frame)
raised:SetFrameLevel(RaisedElement:GetFrameLevel() + 50)
raised:SetAllPoints()
return { owner = frame, parent = raised }
end
hooksecurefunc(E, 'Initialize', FCT.Initialize)
hooksecurefunc(NP, 'UpdatePlate', FCT.ToggleFrame)
hooksecurefunc(UF, 'Configure_HealthBar', FCT.ToggleFrame)
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