class CollectionSystemWndSubPopupProgress extends UICommonAPI;

var WindowHandle Me;
var string m_WindowName;
var L2Util util;
var RichListCtrlHandle richList;
var TextBoxHandle aText0;
var TextBoxHandle aText1;
var TextBoxHandle aText2;
var TextBoxHandle bText0;
var TextBoxHandle bText1;
var array<CollectionSystemWndProgressComponent> collectionSystemWndProgressComponents;

function MakeRecord ()
{
}

event OnClickButton (string strID)
{
	switch (strID)
	{
		case "":
			break;
	}
}

function Initialize ()
{
	m_WindowName = getCurrentWindowName(string(self));
	Me = GetWindowHandle(m_WindowName);
	util = L2Util(GetScript("L2Util"));
}

function OnRegisterEvent ()
{
	RegisterEvent(EV_GamingStateEnter);
	RegisterEvent(EV_Restart);
}

function OnLoad ()
{
	Initialize();
}

function OnEvent (int Event_ID, string param)
{
	switch (Event_ID)
	{
		case EV_GamingStateEnter:
			if ( ChkSerVer() )
			{
				HandleGameInit();
			}
			break;
		case EV_Restart:
			if ( ChkSerVer() )
			{
				
			}
		break;
	}
}

function OnShow ()
{
}

function OnHide ()
{
}

function HandleGameInit ()
{
	if ( GetGameStateName() != "GAMINGSTATE" )
	{
		return;
	}
}

function string Int2Str2 (int i)
{
	if ( i < 10 )
	{
		return "0" $ string(i);
	}
	return string(i);
}

function bool GetStringIDFromBtnName (string btnName, string someString, out string strID)
{
	if ( !CheckBtnName(btnName,someString) )
	{
		return False;
	}
	strID = Mid(btnName,Len(someString));
	return True;
}

function bool CheckBtnName (string btnName, string someString)
{
	return Left(btnName,Len(someString)) == someString;
}

function bool ChkSerVer ()
{
	return getInstanceUIData().getIsLiveServer();
}

