API:StaticPopup Visible

returns tha name of Popup frame (not really sure it's a frame)
AcceptGroup();
== Parameters ==
=== Arguments ===
don't sure what is should be, but one of them if "PARTY_INVITE"
=== Returns ===
name of Popup (think it's frame with request)
== Example code ==
 local invitepopup = StaticPopup_Visible("PARTY_INVITE")
	if invitepopup == "StaticPopup1" then
		StaticPopup_OnClick(StaticPopup1, 1);
	end;
	if invitepopup == "StaticPopup2" then
		StaticPopup_OnClick(StaticPopup2, 1);
	end;
	if invitepopup == "StaticPopup3" then
		StaticPopup_OnClick(StaticPopup3, 1);
	end;
	if invitepopup == "StaticPopup4" then
		StaticPopup_OnClick(StaticPopup4, 1);
	end;
this example will accept party request, but not directly - it's like if you press "ok" in request frame
== Related Functions ==
* StaticPopup_OnClick
Category:Functions