This commit is contained in:
Bunny67
2018-07-17 19:18:55 +03:00
parent 644811e198
commit 9275db3e70
4 changed files with 34 additions and 3 deletions
-1
View File
@@ -14,7 +14,6 @@ local GameTooltip_Hide = GameTooltip_Hide
local GetBindingKey = GetBindingKey
local GetCurrentBindingSet = GetCurrentBindingSet
local GetMacroInfo = GetMacroInfo
local hooksecurefunc = hooksecurefunc
local IsAddOnLoaded = IsAddOnLoaded
local IsAltKeyDown = IsAltKeyDown
local IsControlKeyDown = IsControlKeyDown
+17 -1
View File
@@ -42,16 +42,32 @@ function UF:Construct_PartyFrames()
return self;
end
function UF:PartySmartVisibility()
if not self then self = this end
if GetNumRaidMembers() < 1 then
self:Show()
else
self:Hide()
end
end
function UF:Update_PartyHeader(header)
if not header.positioned then
header:ClearAllPoints()
header:SetPoint("BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 4, 195)
E:CreateMover(header, header:GetName().."Mover", L["Party Frames"], nil, nil, nil, "ALL,PARTY")
header:RegisterEvent("PARTY_MEMBERS_CHANGED")
header:RegisterEvent("RAID_ROSTER_UPDATE")
header:SetScript("OnEvent", UF["PartySmartVisibility"])
header.positioned = true
end
end
UF.PartySmartVisibility(header)
end
function UF:Update_PartyFrames(frame, db)
frame.db = db
+17
View File
@@ -42,14 +42,31 @@ function UF:Construct_RaidFrames()
return self
end
function UF:RaidSmartVisibility()
if not self then self = this end
if GetNumRaidMembers() > 1 then
self:Show()
else
self:Hide()
end
end
function UF:Update_RaidHeader(header)
if not header.positioned then
header:ClearAllPoints()
header:SetPoint("BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 4, 195)
E:CreateMover(header, header:GetName().."Mover", L["Raid Frames"], nil, nil, nil, "ALL,RAID")
header:RegisterEvent("PARTY_MEMBERS_CHANGED")
header:RegisterEvent("RAID_ROSTER_UPDATE")
header:SetScript("OnEvent", UF["RaidSmartVisibility"])
header.positioned = true
end
UF.RaidSmartVisibility(header)
end
function UF:Update_RaidFrames(frame, db)