void GameCoordinator::onSetCancel() { // Ready Button CEGUI::PushButton* readyButton = static_cast<CEGUI::PushButton*>(CEGUI::System::getSingleton().getGUISheet()->getChildRecursive( "Game/Control/Set/ReadyButton")); if (readyButton) readyButton->setEnabled(false); }
void GameCoordinator::onSetReady() { cout << "asdf" << endl; // Ready Button CEGUI::PushButton* readyButton = static_cast<CEGUI::PushButton*>(CEGUI::System::getSingleton().getGUISheet()->getChildRecursive( "Game/Control/Set/ReadyButton")); cout << "asdf2" << endl; if (readyButton) readyButton->setEnabled(true); cout << "asdf3" << endl; }