Пример #1
0
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);
}
Пример #2
0
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;
}