void Dan2::hide(void) { CEGUI::Window * root = CEGUI::System::getSingleton().getGUISheet(); if(root) root->removeChildWindow(_win); Orz::IInputManager::getSingleton().removeKeyListener(this); _win->hide(); }
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; }