You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
820 B
21 lines
820 B
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
|
|
local SUF = SLE.UnitFrames
|
|
|
|
SUF.OfflineTextures = {
|
|
["ALERT"] = [[Interface\DialogFrame\UI-Dialog-Icon-AlertNew]],
|
|
["ARTHAS"] = [[Interface\LFGFRAME\UI-LFR-PORTRAIT]],
|
|
["SKULL"] = [[Interface\LootFrame\LootPanel-Icon]],
|
|
["PASS"] = [[Interface\PaperDollInfoFrame\UI-GearManager-LeaveItem-Transparent]],
|
|
["NOTREADY"] = [[Interface\RAIDFRAME\ReadyCheck-NotReady]],
|
|
}
|
|
|
|
function SUF:Construct_Offline(frame, group)
|
|
local db = E.db.sle.unitframes.unit[group].offline
|
|
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)
|
|
offline:Hide()
|
|
|
|
return offline
|
|
end
|