mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
remove temp folder structure
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local UF = E:GetModule("UnitFrames");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
|
||||
--WoW API / Variables
|
||||
|
||||
function UF:Construct_RestingIndicator(frame)
|
||||
local resting = frame.RaisedElementParent.TextureParent:CreateTexture(nil, "OVERLAY")
|
||||
resting:SetWidth(22)
|
||||
resting:SetHeight(22)
|
||||
|
||||
return resting
|
||||
end
|
||||
|
||||
function UF:Configure_RestingIndicator(frame)
|
||||
if not frame.VARIABLES_SET then return end
|
||||
local rIcon = frame.RestingIndicator
|
||||
local db = frame.db
|
||||
if db.restIcon then
|
||||
if not frame:IsElementEnabled("RestingIndicator") then
|
||||
frame:EnableElement("RestingIndicator")
|
||||
end
|
||||
|
||||
rIcon:ClearAllPoints()
|
||||
if frame.ORIENTATION == "RIGHT" then
|
||||
rIcon:SetPoint("CENTER", frame.Health, "TOPLEFT", -3, 6)
|
||||
else
|
||||
if frame.USE_PORTRAIT and not frame.USE_PORTRAIT_OVERLAY then
|
||||
rIcon:SetPoint("CENTER", frame.Portrait, "TOPLEFT", -3, 6)
|
||||
else
|
||||
rIcon:SetPoint("CENTER", frame.Health, "TOPLEFT", -3, 6)
|
||||
end
|
||||
end
|
||||
elseif frame:IsElementEnabled("RestingIndicator") then
|
||||
frame:DisableElement("RestingIndicator")
|
||||
rIcon:Hide()
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user