class WorldSiegeLauncherWnd extends UICommonAPI;

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

event OnClickButton(string btnName)
{
	switch(btnName)
	{
		case "WorldSiegeLauncher_btn":
			if(class'WorldSiegeRankingWnd'.static.Inst().m_hOwnerWnd.IsShowWindow())
			{
				class'WorldSiegeRankingWnd'.static.Inst().m_hOwnerWnd.HideWindow();				
			}
			else
			{
				class'WorldSiegeRankingWnd'.static.Inst().m_hOwnerWnd.ShowWindow();
			}
			break;
		case "WorldSiegeLauncher2_btn":
			if(class'WorldSiegeBoardWnd'.static.Inst().m_hOwnerWnd.IsShowWindow())
			{
				class'WorldSiegeBoardWnd'.static.Inst().m_hOwnerWnd.HideWindow();				
			}
			else
			{
				class'WorldSiegeBoardWnd'.static.Inst().m_hOwnerWnd.ShowWindow();
			}
			break;
	}
}
