This commit is contained in:
Crum
2019-01-13 19:59:06 -06:00
parent e8821e3b88
commit bae862f02f
4 changed files with 21 additions and 16 deletions
+16 -13
View File
@@ -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)
+2
View File
@@ -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