From 4f1601d6d82cd8701c3bb6d2fd7cf54627bc1418 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Fri, 25 Jan 2008 16:35:07 +0000 Subject: [PATCH] * Removed some legacy party updating code that was causing taint log messages --- PerfectRaid.lua | 38 ++++---------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/PerfectRaid.lua b/PerfectRaid.lua index e4308d0..7bf8b8a 100644 --- a/PerfectRaid.lua +++ b/PerfectRaid.lua @@ -117,37 +117,12 @@ function PerfectRaid:Enable() self:RegisterEvent("UNIT_MAXFOCUS", "UNIT_MAXMANA") self:RegisterEvent("CHAT_MSG_SYSTEM") - self:UpdateRaidFrames() - self:PARTY_MEMBERS_CHANGED() -end - -function PerfectRaid:UpdateRaidFrames() - local list = self.db.profile.headers - - self.hasparty = nil - - for idx=1,40 do - local name = "PRHeader"..idx - local frame = getglobal(name) - if not frame then break end - if not list[idx] then - for i=1,frame:GetNumChildren() do - local button = frame:GetAttribute("child"..i) - button:SetAttribute("unit", nil) - button:Hide() - end - end - frame:Hide() - frame.bg:Hide() - end - - --name, title, filter, sortOrder, strict, group, order, columns, coloffset, colanchor) - for idx,entry in ipairs(list) do + -- Create our raid frames + for idx,entry in ipairs(self.db.profile.headers) do self:CreateRaidFrame(idx) end - - -- Call RAID_ROSTER_UPDATE to update subgroup, etc. - self:RAID_ROSTER_UPDATE() + + self:PARTY_MEMBERS_CHANGED() end function PerfectRaid:SavePosition(name) @@ -738,11 +713,6 @@ function PerfectRaid:RAID_ROSTER_UPDATE() end end -function PerfectRaid:PARTY_MEMBERS_CHANGED() - self.inparty = GetNumPartyMembers() > 0 - self:UpdateRaidFrames() -end - function PerfectRaid:UNIT_DISPLAYPOWER(event, unit) if not frames[unit] then return end local color = ManaBarColor[UnitPowerType(unit)] -- 1.7.9.5