class GMFindTreeWndSkill extends UICommonAPI;

var WindowHandle Me;
var string m_WindowName;
var EditBoxHandle m_ebIconType;
var EditBoxHandle m_ebGroupType;
var int ItemID;

event OnLoad()
{
	SetClosingOnESC();
	Me = GetWindowHandle(m_WindowName);
	m_ebIconType = GetEditBoxHandle(m_WindowName $ ".ebIconType");
	m_ebGroupType = GetEditBoxHandle(m_WindowName $ ".ebGroupType");	
}

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

private function HandleShowHideUISkillToolWnd()
{
	local WindowHandle uiSkillToolWndHandle;

	uiSkillToolWndHandle = GetWindowHandle("UISkillToolWnd");
	if(uiSkillToolWndHandle.IsShowWindow())
	{
		uiSkillToolWndHandle.HideWindow();		
	}
	else
	{
		uiSkillToolWndHandle.ShowWindow();
		uiSkillToolWndHandle.SetFocus();
	}	
}

defaultproperties
{
	m_WindowName="GMFindTreeWndSkill"
}
