Add in-game timer option (#790)

This commit is contained in:
lsaa
2021-08-05 18:31:20 -03:00
committed by GitHub
parent 6c6d347ccf
commit 6c66f7248d
5 changed files with 40 additions and 0 deletions

View File

@@ -648,6 +648,17 @@ static void menurender(void)
else
graphics.Print(-1, 65, "Fake loading screen is ON", tr, tg, tb, true);
break;
case 4:
graphics.bigprint(-1, 30, "In Game Timer", tr, tg, tb, true);
if (game.showingametimer)
{
graphics.Print(-1, 65, "In Game Timer is ON", tr, tg, tb, true);
}
else
{
graphics.Print(-1, 65, "In Game Timer is OFF", tr / 2, tg / 2, tb / 2, true);
}
break;
}
break;
case Menu::setglitchrunner:
@@ -1675,6 +1686,12 @@ void gamerender(void)
}
}
if (graphics.fademode==0 && !game.intimetrial && !game.isingamecompletescreen() && game.swngame != 1 && game.showingametimer)
{
graphics.bprint(6, 6, "TIME:", 255,255,255);
graphics.bprint(46, 6, game.timestring(), 196, 196, 196);
}
if(map.extrarow==0 || (map.custommode && map.roomname!=""))
{
graphics.footerrect.y = 230;