mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update
This commit is contained in:
@@ -27,7 +27,6 @@ function UF:Construct_PartyFrames()
|
||||
if self.isChild then
|
||||
self.Health = UF:Construct_HealthBar(self, true)
|
||||
|
||||
self.RaidRoleFramesAnchor = UF:Construct_RaidRoleFrames(self)
|
||||
self.MouseGlow = UF:Construct_MouseGlow(self)
|
||||
self.TargetGlow = UF:Construct_TargetGlow(self)
|
||||
self.Name = UF:Construct_NameText(self)
|
||||
@@ -64,6 +63,7 @@ function UF:Construct_PartyFrames()
|
||||
self.AuraWatch = UF:Construct_AuraWatch(self)
|
||||
self.RaidDebuffs = UF:Construct_RaidDebuffs(self)
|
||||
self.DebuffHighlight = UF:Construct_DebuffHighlight(self)
|
||||
self.RaidRoleFramesAnchor = UF:Construct_RaidRoleFrames(self)
|
||||
self.MouseGlow = UF:Construct_MouseGlow(self)
|
||||
self.TargetGlow = UF:Construct_TargetGlow(self)
|
||||
self.RaidTargetIndicator = UF:Construct_RaidIcon(self)
|
||||
@@ -83,18 +83,6 @@ function UF:Construct_PartyFrames()
|
||||
return self
|
||||
end
|
||||
|
||||
function UF:PartySmartVisibility()
|
||||
if not self then self = this end
|
||||
if not self.db or (self.db and not self.db.enable) then return end
|
||||
|
||||
local numMembers = GetNumRaidMembers()
|
||||
if numMembers < 1 then
|
||||
self:Show()
|
||||
else
|
||||
self:Hide()
|
||||
end
|
||||
end
|
||||
|
||||
function UF:Update_PartyHeader(header, db)
|
||||
header.db = db
|
||||
|
||||
@@ -103,6 +91,7 @@ function UF:Update_PartyHeader(header, db)
|
||||
E:Point(header, "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 4, 195)
|
||||
|
||||
E:CreateMover(header, header:GetName().."Mover", L["Party Frames"], nil, nil, nil, "ALL,PARTY")
|
||||
header.positioned = true
|
||||
|
||||
header:RegisterEvent("PLAYER_LOGIN")
|
||||
header:RegisterEvent("ZONE_CHANGED_NEW_AREA")
|
||||
@@ -115,6 +104,18 @@ function UF:Update_PartyHeader(header, db)
|
||||
UF.PartySmartVisibility(header)
|
||||
end
|
||||
|
||||
function UF:PartySmartVisibility()
|
||||
if not self then self = this end
|
||||
if not self.db or (self.db and not self.db.enable) then return end
|
||||
|
||||
local numMembers = GetNumRaidMembers()
|
||||
if numMembers < 1 then
|
||||
self:Show()
|
||||
else
|
||||
self:Hide()
|
||||
end
|
||||
end
|
||||
|
||||
function UF:Update_PartyFrames(frame, db)
|
||||
frame.db = db
|
||||
|
||||
@@ -201,6 +202,8 @@ function UF:Update_PartyFrames(frame, db)
|
||||
UF:UpdateNameSettings(frame, frame.childType)
|
||||
else
|
||||
|
||||
E:Size(frame, frame.UNIT_WIDTH, frame.UNIT_HEIGHT)
|
||||
|
||||
UF:Configure_InfoPanel(frame)
|
||||
UF:Configure_HealthBar(frame)
|
||||
|
||||
|
||||
@@ -134,6 +134,8 @@ function UF:Update_RaidFrames(frame, db)
|
||||
frame.VARIABLES_SET = true
|
||||
end
|
||||
|
||||
E:Size(frame, frame.UNIT_WIDTH, frame.UNIT_HEIGHT)
|
||||
|
||||
UF:Configure_InfoPanel(frame)
|
||||
|
||||
UF:Configure_HealthBar(frame)
|
||||
|
||||
@@ -135,6 +135,8 @@ function UF:Update_Raid40Frames(frame, db)
|
||||
frame.VARIABLES_SET = true
|
||||
end
|
||||
|
||||
E:Size(frame, frame.UNIT_WIDTH, frame.UNIT_HEIGHT)
|
||||
|
||||
UF:Configure_InfoPanel(frame)
|
||||
|
||||
UF:Configure_HealthBar(frame)
|
||||
|
||||
@@ -28,9 +28,7 @@ function UF:Construct_PlayerFrame(frame)
|
||||
if CAN_HAVE_CLASSBAR then
|
||||
frame.ClassBarHolder = CreateFrame("Frame", nil, frame)
|
||||
E:Point(frame.ClassBarHolder, "BOTTOM", E.UIParent, "BOTTOM", 0, 150)
|
||||
end
|
||||
|
||||
if E.myclass == "DRUID" then
|
||||
frame.DruidAltMana = self:Construct_DruidAltMana(frame)
|
||||
frame.ClassBar = "DruidAltMana"
|
||||
end
|
||||
@@ -145,4 +143,4 @@ function UF:Update_PlayerFrame(frame, db)
|
||||
frame:UpdateAllElements("ElvUI_UpdateAllElements")
|
||||
end
|
||||
|
||||
tinsert(UF.unitstoload, "player")
|
||||
tinsert(UF.unitstoload, "player")
|
||||
|
||||
Reference in New Issue
Block a user