mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
test range
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<Script file="PvPIndicator.lua"/>
|
||||
<Script file="RaidIcon.lua"/>
|
||||
<Script file="RaidRoleIcons.lua"/>
|
||||
<Script file="Range.lua"/>
|
||||
<Script file="RestingIndicator.lua"/>
|
||||
<Script file="FrameGlow.lua"/>
|
||||
</Ui>
|
||||
@@ -0,0 +1,24 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local UF = E:GetModule("UnitFrames");
|
||||
|
||||
function UF:Construct_Range()
|
||||
local Range = {insideAlpha = 1, outsideAlpha = E.db.unitframe.OORAlpha}
|
||||
Range.Override = UF.UpdateRange
|
||||
|
||||
return Range
|
||||
end
|
||||
|
||||
function UF:Configure_Range(frame)
|
||||
local range = frame.Range
|
||||
if frame.db.rangeCheck then
|
||||
if not frame:IsElementEnabled('Range') then
|
||||
frame:EnableElement('Range')
|
||||
end
|
||||
|
||||
range.outsideAlpha = E.db.unitframe.OORAlpha
|
||||
else
|
||||
if frame:IsElementEnabled('Range') then
|
||||
frame:DisableElement('Range')
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -31,6 +31,7 @@ function UF:Construct_PartyFrames()
|
||||
self.RaidTargetIndicator = UF:Construct_RaidIcon(self)
|
||||
|
||||
self.GPS = UF:Construct_GPS(self)
|
||||
self.Range = UF:Construct_Range(self)
|
||||
self.unitframeType = "party"
|
||||
|
||||
UF:Update_StatusBars()
|
||||
@@ -116,6 +117,8 @@ function UF:Update_PartyFrames(frame, db)
|
||||
|
||||
UF:Configure_RaidRoleIcons(frame)
|
||||
|
||||
UF:Configure_Range(frame)
|
||||
|
||||
frame:UpdateAllElements("ElvUI_UpdateAllElements")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user