Quantcast

* More robust party hiding

James Whitehead II [01-30-08 - 08:34]
* More robust party hiding
Filename
PerfectRaid_Config.lua
diff --git a/PerfectRaid_Config.lua b/PerfectRaid_Config.lua
index eb598e4..8127553 100644
--- a/PerfectRaid_Config.lua
+++ b/PerfectRaid_Config.lua
@@ -120,8 +120,7 @@ function Config:PartyVisibility()
 		self.hidingparty = true
 		for i=1,4 do
 			local f = getglobal("PartyMemberFrame"..i)
-			f:UnregisterEvent("RAID_ROSTER_UPDATE")
-			f:UnregisterEvent("PARTY_MEMBERS_CHANGED")
+			f:UnregisterAllEvents()
 		end
 		if PartyMemberBackground and SHOW_PARTY_BACKGROUND == "1" then
 			PartyMemberBackground:Hide()
@@ -131,8 +130,24 @@ function Config:PartyVisibility()
 		self.hidingparty = false
 		for i=1,4 do
 			local f = getglobal("PartyMemberFrame"..i)
-			f:RegisterEvent("RAID_ROSTER_UPDATE")
-			f:RegisterEvent("PARTY_MEMBERS_CHANGED")
+			f:RegisterEvent("PLAYER_ENTERING_WORLD");
+			f:RegisterEvent("PARTY_MEMBERS_CHANGED");
+			f:RegisterEvent("PARTY_LEADER_CHANGED");
+			f:RegisterEvent("PARTY_MEMBER_ENABLE");
+			f:RegisterEvent("PARTY_MEMBER_DISABLE");
+			f:RegisterEvent("PARTY_LOOT_METHOD_CHANGED");
+			f:RegisterEvent("MUTELIST_UPDATE");
+			f:RegisterEvent("IGNORELIST_UPDATE");
+			f:RegisterEvent("UNIT_FACTION");
+			f:RegisterEvent("UNIT_AURA");
+			f:RegisterEvent("UNIT_PET");
+			f:RegisterEvent("VOICE_START");
+			f:RegisterEvent("VOICE_STOP");
+			f:RegisterEvent("VARIABLES_LOADED");
+			f:RegisterEvent("VOICE_STATUS_UPDATE");
+			f:RegisterEvent("READY_CHECK");
+			f:RegisterEvent("READY_CHECK_CONFIRM");
+			f:RegisterEvent("READY_CHECK_FINISHED");
 		end
 		if PartyMemberBackground and SHOW_PARTY_BACKGROUND == "1" then
 			PartyMemberBackground:Show()