void MenuManager
::itemSelected(int userCode,
const QString &menuName
) {
case ROOT:
//out:
this->score->queueMovie(this->currentMenu + " -out", Score::FROM_START, Score::LOCK_ITEMS);
this->score->queueMovie(this->currentMenuButtons + " -out", Score::FROM_START, Score::LOCK_ITEMS);
this->score->queueMovie(this->currentInfo + " -out");
this->score->queueMovie("back -out", Score::ONLY_IF_VISIBLE);
// book-keeping:
this->currentMenuCode = ROOT;
this->currentMenu = menuName + " -menu1";
this->currentMenuButtons = menuName + " -buttons";
this->currentInfo = menuName + " -info";
// in:
this->score->queueMovie("upndown -shake");
this->score->queueMovie(this->currentMenu, Score::FROM_START, Score::UNLOCK_ITEMS);
this->score->queueMovie(this->currentMenuButtons, Score::FROM_START, Score::UNLOCK_ITEMS);
this->score->queueMovie(this->currentInfo);
break;
case MENU1:
// out:
this->score->queueMovie(this->currentMenu + " -out", Score::FROM_START, Score::LOCK_ITEMS);
this->score->queueMovie(this->currentMenuButtons + " -out", Score::FROM_START, Score::LOCK_ITEMS);
this->score->queueMovie(this->currentInfo + " -out");
// this->score->queueMovie("back -out", Score::ONLY_IF_VISIBLE);
// book-keeping:
this->currentMenuCode = MENU1;
this->currentCategory = menuName;
this->currentMenu = menuName + " -menu1";
this->currentMenuButtons = menuName + " -buttons";
this->currentInfo = menuName + " -info";
// in:
this->score->queueMovie("upndown -shake");
this->score->queueMovie("back -in");
this->score->queueMovie(this->currentMenu, Score::FROM_START, Score::UNLOCK_ITEMS);
this->score->queueMovie(this->currentMenuButtons, Score::FROM_START, Score::UNLOCK_ITEMS);
this->score->queueMovie(this->currentInfo);
break;
case BACK:{
if(this->currentMenuCode == MENU1)
itemSelected(ROOT, rootMenuName);
else{
itemSelected(MENU1, this->currentInfo);
}
break;
void MenuManager::itemSelected(int userCode, const QString &menuName)
{
case ROOT:
//out:
this->score->queueMovie(this->currentMenu + " -out", Score::FROM_START, Score::LOCK_ITEMS);
this->score->queueMovie(this->currentMenuButtons + " -out", Score::FROM_START, Score::LOCK_ITEMS);
this->score->queueMovie(this->currentInfo + " -out");
this->score->queueMovie("back -out", Score::ONLY_IF_VISIBLE);
// book-keeping:
this->currentMenuCode = ROOT;
this->currentMenu = menuName + " -menu1";
this->currentMenuButtons = menuName + " -buttons";
this->currentInfo = menuName + " -info";
// in:
this->score->queueMovie("upndown -shake");
this->score->queueMovie(this->currentMenu, Score::FROM_START, Score::UNLOCK_ITEMS);
this->score->queueMovie(this->currentMenuButtons, Score::FROM_START, Score::UNLOCK_ITEMS);
this->score->queueMovie(this->currentInfo);
break;
case MENU1:
// out:
this->score->queueMovie(this->currentMenu + " -out", Score::FROM_START, Score::LOCK_ITEMS);
this->score->queueMovie(this->currentMenuButtons + " -out", Score::FROM_START, Score::LOCK_ITEMS);
this->score->queueMovie(this->currentInfo + " -out");
// this->score->queueMovie("back -out", Score::ONLY_IF_VISIBLE);
// book-keeping:
this->currentMenuCode = MENU1;
this->currentCategory = menuName;
this->currentMenu = menuName + " -menu1";
this->currentMenuButtons = menuName + " -buttons";
this->currentInfo = menuName + " -info";
// in:
this->score->queueMovie("upndown -shake");
this->score->queueMovie("back -in");
this->score->queueMovie(this->currentMenu, Score::FROM_START, Score::UNLOCK_ITEMS);
this->score->queueMovie(this->currentMenuButtons, Score::FROM_START, Score::UNLOCK_ITEMS);
this->score->queueMovie(this->currentInfo);
break;
case BACK:{
if(this->currentMenuCode == MENU1)
itemSelected(ROOT, rootMenuName);
else{
itemSelected(MENU1, this->currentInfo);
}
break;
To copy to clipboard, switch view to plain text mode
Bookmarks