//------------------------------------------------------------------------------------------------------------------------
//
// 제목          : 스케일 폼, 올림피아드 경기 점수 보드, 타이머
//

//      레드마인 : http://wallis-devsub/redmine/issues/5317
//------------------------------------------------------------------------------------------------------------------------
class OlympiadScoreBoardHUD extends L2UIGFxScript;

function OnRegisterEvent()
{	

	RegisterGFxEvent( EV_OlympiadMatchInfo); // 11022

	RegisterEvent( EV_StateChanged);
}

function OnLoad()
{	
	AddState("GAMINGSTATE");

	SetContainerHUD(WINDOWTYPE_NONE, 0);    
	SetDefaultShow(true);	
	SetHavingFocus( false );	
	setHUD();
}

function OnFlashLoaded()
{		
	IgnoreUIEvent(true);
	SetAnchor("", EAnchorPointType.ANCHORPOINT_TopCenter, EAnchorPointType.ANCHORPOINT_TopCenter, 0 , 0);	
}


function onEvent ( int id, string param) 
{	
	switch ( id ) 
	{
		// 스테이트 변경 시 open 해 둬야 as 설정이 됨.
		case EV_StateChanged : 
		//	Debug("EV_StateChanged : " @ param);
			if( param == "ARENABATTLESTATE" || param == "ARENAOBSERVERSTATE" ) ShowWindow ( getCurrentWindowName(string(Self)) );
			else hideWindow ( getCurrentWindowName(string(Self)) );
		break;
	}
}
defaultproperties
{
}
