mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
21 lines
756 B
Lua
21 lines
756 B
Lua
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
|
local UF = E:GetModule("UnitFrames");
|
|
|
|
function UF:Construct_CombatIndicator(frame)
|
|
local combat = frame.RaisedElementParent.TextureParent:CreateTexture(nil, "OVERLAY")
|
|
combat:SetWidth(19)
|
|
combat:SetHeight(19)
|
|
combat:SetPoint("CENTER", frame.Health, "CENTER", 0, 6)
|
|
combat:SetVertexColor(0.69, 0.31, 0.31)
|
|
|
|
return combat
|
|
end
|
|
|
|
function UF:Configure_CombatIndicator(frame)
|
|
if frame.db.combatIcon and not frame:IsElementEnabled("CombatIndicator") then
|
|
frame:EnableElement("CombatIndicator")
|
|
elseif not frame.db.combatIcon and frame:IsElementEnabled("CombatIndicator") then
|
|
frame:DisableElement("CombatIndicator")
|
|
frame.CombatIndicator:Hide()
|
|
end
|
|
end |