Example #1
0
File: Dan2.cpp Project: dbabox/aomi
void Dan2::hide(void)
{
	CEGUI::Window * root = CEGUI::System::getSingleton().getGUISheet();
	if(root)
		root->removeChildWindow(_win);
	Orz::IInputManager::getSingleton().removeKeyListener(this);
	_win->hide();
}
Example #2
0
File: Dan.cpp Project: dbabox/aomi
void Dan::hide(void)
{
	Orz::IInputManager::getSingleton().removeKeyListener(this);
	CEGUI::WindowManager::getSingleton().getWindow("Dan/Bg/Text/Putin")->removeAllEvents();
	_win->hide();
	_connection.disconnect();
	CEGUI::Window * win = CEGUI::System::getSingleton().getGUISheet();
	if(win)
	{
		win->removeChildWindow(_win);
	}
	_time = -1.0;
}