2011-06-14 19:53:19 +02:00
|
|
|
#include "GUI/gui.h"
|
2010-12-12 17:31:13 +01:00
|
|
|
#include "themes/CTheme.h"
|
|
|
|
#include "usbloader/GameList.h"
|
|
|
|
#include "settings/GameTitles.h"
|
|
|
|
#include "menu/menus.h"
|
|
|
|
|
|
|
|
void rockout(int gameSelected, int f)
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
static bool rockoutSet = false;
|
2011-01-08 13:35:41 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
HaltGui();
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
if (gameSelected >= 0 && gameSelected < gameList.size() && !rockoutSet && (strcasestr(GameTitles.GetTitle(gameList[gameSelected]), "guitar")
|
|
|
|
|| strcasestr(GameTitles.GetTitle(gameList[gameSelected]), "band") || strcasestr(GameTitles.GetTitle(gameList[gameSelected]),
|
|
|
|
"rock")))
|
|
|
|
{
|
2011-12-28 17:27:30 +01:00
|
|
|
pointer[0]->SetImage("rplayer1_point.png");
|
|
|
|
pointer[1]->SetImage("rplayer2_point.png");
|
|
|
|
pointer[2]->SetImage("rplayer3_point.png");
|
|
|
|
pointer[3]->SetImage("rplayer4_point.png");
|
2011-01-08 13:35:41 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
rockoutSet = true;
|
|
|
|
}
|
|
|
|
else if(rockoutSet)
|
|
|
|
{
|
2011-12-28 17:27:30 +01:00
|
|
|
pointer[0]->SetImage("player1_point.png");
|
|
|
|
pointer[1]->SetImage("player2_point.png");
|
|
|
|
pointer[2]->SetImage("player3_point.png");
|
|
|
|
pointer[3]->SetImage("player4_point.png");
|
2011-01-08 13:35:41 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
rockoutSet = false;
|
|
|
|
}
|
|
|
|
ResumeGui();
|
2010-12-12 17:31:13 +01:00
|
|
|
}
|