Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-07-08, 05:43 AM   #1
oXid_FoX
A Deviate Faerie Dragon
 
oXid_FoX's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 18
Unhappy hide party frame when player join in combat

hello everybody !

I wrote a small addon to hide the party frame.
the whole code:
Code:
function oxPartyFrameHider_OnEvent(this, event)
	if GetNumPartyMembers() > 0 then
		HidePartyFrame()
	end

end

local frame = CreateFrame("Frame","oxPartyFrameHider",UIParent)
frame:SetScript("OnEvent", oxPartyFrameHider_OnEvent)
frame:RegisterEvent("PARTY_MEMBERS_CHANGED")
pretty simple, isn't it ?

but... there is a "bug": when a player join the party when we are in combat, the party frame appears...
the only solution I've found: the PARTY_MEMBERS_CHANGED event must be fired one more time (basically, it means a player must leave/join the party).

how could I fix that ?
thanks for your help, and sorry for my poor english...
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » hide party frame when player join in combat


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off