Restrict displaying of trophies during mission.
This commit is contained in:
parent
8a9dcb1ff7
commit
2600f3cd1a
|
@ -249,28 +249,34 @@ void awardTrophies(void)
|
||||||
|
|
||||||
void doTrophyAlerts(void)
|
void doTrophyAlerts(void)
|
||||||
{
|
{
|
||||||
if (!alertTrophy)
|
if (app.config.trophyAlert == 1 || (app.config.trophyAlert == 2 && !app.restrictTrophyAlert))
|
||||||
{
|
{
|
||||||
nextAlert();
|
if (!alertTrophy)
|
||||||
}
|
|
||||||
else if (alertTrophy)
|
|
||||||
{
|
|
||||||
alertRect.x = MIN(alertRect.x + 24, -1);
|
|
||||||
|
|
||||||
if (alertRect.x > -150)
|
|
||||||
{
|
{
|
||||||
alertTimer--;
|
nextAlert();
|
||||||
}
|
}
|
||||||
|
else if (alertTrophy)
|
||||||
if (alertTimer <= 0)
|
|
||||||
{
|
{
|
||||||
saveScreenshot(alertTrophy->id);
|
alertRect.x = MIN(alertRect.x + 24, -1);
|
||||||
alertTrophy->notify = 0;
|
|
||||||
resetAlert();
|
if (alertRect.x > -150)
|
||||||
|
{
|
||||||
|
alertTimer--;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (alertTimer <= 0)
|
||||||
|
{
|
||||||
|
if (app.config.trophyScreenshot)
|
||||||
|
{
|
||||||
|
saveScreenshot(alertTrophy->id);
|
||||||
|
}
|
||||||
|
alertTrophy->notify = 0;
|
||||||
|
resetAlert();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sparkleAngle = mod(sparkleAngle + 0.25, 360);
|
||||||
}
|
}
|
||||||
|
|
||||||
sparkleAngle = mod(sparkleAngle + 0.25, 360);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nextAlert(void)
|
static void nextAlert(void)
|
||||||
|
|
|
@ -200,6 +200,8 @@ void initHub(void)
|
||||||
app.delegate.logic = &logic;
|
app.delegate.logic = &logic;
|
||||||
app.delegate.draw = &draw;
|
app.delegate.draw = &draw;
|
||||||
|
|
||||||
|
app.restrictTrophyAlert = 0;
|
||||||
|
|
||||||
playMusic(1);
|
playMusic(1);
|
||||||
|
|
||||||
endSectionTransition();
|
endSectionTransition();
|
||||||
|
|
|
@ -34,6 +34,8 @@ void initPostMission(void)
|
||||||
app.delegate.logic = logic;
|
app.delegate.logic = logic;
|
||||||
app.delegate.draw = draw;
|
app.delegate.draw = draw;
|
||||||
|
|
||||||
|
app.restrictTrophyAlert = 0;
|
||||||
|
|
||||||
endSectionTransition();
|
endSectionTransition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -354,6 +354,7 @@ typedef struct {
|
||||||
int awaitingWidgetInput;
|
int awaitingWidgetInput;
|
||||||
int lastKeyPressed;
|
int lastKeyPressed;
|
||||||
int lastButtonPressed;
|
int lastButtonPressed;
|
||||||
|
int restrictTrophyAlert;
|
||||||
Config config;
|
Config config;
|
||||||
} App;
|
} App;
|
||||||
|
|
||||||
|
|
|
@ -120,6 +120,8 @@ void initWorld(void)
|
||||||
app.delegate.logic = logic;
|
app.delegate.logic = logic;
|
||||||
app.delegate.draw = draw;
|
app.delegate.draw = draw;
|
||||||
|
|
||||||
|
app.restrictTrophyAlert = 1;
|
||||||
|
|
||||||
endSectionTransition();
|
endSectionTransition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue