class AnniveEventLauncher extends L2UIGFxScript;

var private bool bInEvent;

static function AnniveEventLauncher Inst()
{
	return AnniveEventLauncher(GetScript("AnniveEventLauncher"));
}

event OnRegisterEvent()
{
	RegisterEvent(EV_GamingStateEnter);
}

event OnLoad()
{
	SetContainerHUD(WINDOWTYPE_NOBG_NODRAG, 0);
	AddState("GAMINGSTATE");
	NotUseESC();
	SetHUD();
	SetHavingFocus(false);
}

event OnEvent(int eID, string param)
{
	Show();
}

function _Show()
{
	bInEvent = true;
	Show();
}

private function Show()
{
	if(GetGameStateName() != "GAMINGSTATE")
	{
		return;
	}
	if(! bInEvent)
	{
		return;
	}
	if(IsPlayerOnWorldRaidServer())
	{
		return;
	}
	ShowWindow(getCurrentWindowName(string(self)));
}

