More minor changes

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-10-21 23:00:12 +00:00
parent 1d64a45e79
commit 410cb0fe54
2 changed files with 13 additions and 3 deletions

View File

@ -161,7 +161,7 @@ EventPropagation EventHandler::onWidgetActivated(GUIEngine::Widget* w, const int
if (w->m_event_handler == NULL) return EVENT_LET; if (w->m_event_handler == NULL) return EVENT_LET;
} }
std::cout << "**** widget activated : " << w->m_properties[PROP_ID].c_str() << " ****" << std::endl; //std::cout << "**** widget activated : " << w->m_properties[PROP_ID].c_str() << " ****" << std::endl;
Widget* parent = w->m_event_handler; Widget* parent = w->m_event_handler;
if (w->m_event_handler != NULL) if (w->m_event_handler != NULL)

View File

@ -97,9 +97,19 @@ namespace GUIEngine
{ {
StateManager::get()->escapePressed(); StateManager::get()->escapePressed();
} }
else if (name == "locked") else if (name == "challenges")
{ {
unlock_manager->playLockSound(); DynamicRibbonWidget* w = this->getWidget<DynamicRibbonWidget>("challenges");
assert( w != NULL );
// FIXME : don't hardcode player 0?
const int playerID = 0;
std::string selection = w->getSelectionIDString( playerID );
if (selection == "locked")
{
unlock_manager->playLockSound();
}
} }
} }