Permit access to stats and trophy info from in-game.
This commit is contained in:
parent
bfef8560cc
commit
8ab5ebe819
|
@ -39,6 +39,8 @@ static void drawInGameWidgets(void);
|
||||||
static void handleWidgets(void);
|
static void handleWidgets(void);
|
||||||
static void resume(void);
|
static void resume(void);
|
||||||
static void options(void);
|
static void options(void);
|
||||||
|
static void stats(void);
|
||||||
|
static void trophies(void);
|
||||||
static void quit(void);
|
static void quit(void);
|
||||||
|
|
||||||
static Texture *background;
|
static Texture *background;
|
||||||
|
@ -75,6 +77,8 @@ void initWorld(void)
|
||||||
|
|
||||||
getWidget("resume", "gamePaused")->action = resume;
|
getWidget("resume", "gamePaused")->action = resume;
|
||||||
getWidget("options", "gamePaused")->action = options;
|
getWidget("options", "gamePaused")->action = options;
|
||||||
|
getWidget("stats", "gamePaused")->action = stats;
|
||||||
|
getWidget("trophies", "gamePaused")->action = trophies;
|
||||||
getWidget("quit", "gamePaused")->action = quit;
|
getWidget("quit", "gamePaused")->action = quit;
|
||||||
|
|
||||||
if (world.missionType == MT_BOSS)
|
if (world.missionType == MT_BOSS)
|
||||||
|
@ -178,7 +182,7 @@ static void drawInGameWidgets(void)
|
||||||
int w, h;
|
int w, h;
|
||||||
|
|
||||||
w = 300;
|
w = 300;
|
||||||
h = 350;
|
h = 550;
|
||||||
|
|
||||||
drawRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0, 64);
|
drawRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0, 64);
|
||||||
|
|
||||||
|
@ -654,6 +658,14 @@ static void options(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void stats(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static void trophies(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static void quit(void)
|
static void quit(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue