Display "Controls" text on controls options screen.

This commit is contained in:
Steve 2018-04-04 08:16:36 +01:00
parent a7d18ca312
commit 6f49aa8717
3 changed files with 10 additions and 1 deletions

View File

@ -377,6 +377,7 @@ enum
ST_COMPLETE,
ST_PRESS_FIRE,
ST_OPTIONS,
ST_CONTROLS,
ST_TROPHIES,
ST_PAGE,
ST_HIDDEN,

View File

@ -166,7 +166,14 @@ static void draw(void)
h = (SCREEN_WIDTH / 800.0) * background->rect.h;
drawText(SCREEN_WIDTH / 2, 50, 40, TA_CENTER, colors.white, app.strings[ST_OPTIONS]);
if (section == SECTION_MAIN)
{
drawText(SCREEN_WIDTH / 2, 50, 40, TA_CENTER, colors.white, app.strings[ST_OPTIONS]);
}
else
{
drawText(SCREEN_WIDTH / 2, 50, 40, TA_CENTER, colors.white, app.strings[ST_CONTROLS]);
}
blitRectScaled(atlasTexture->texture, 0, SCREEN_HEIGHT - h, SCREEN_WIDTH, h, &background->rect, 0);

View File

@ -29,6 +29,7 @@ void initStrings(void)
app.strings[ST_PRESS_FIRE] = _("Press Fire to Continue");
app.strings[ST_OPTIONS] = _("Options");
app.strings[ST_CONTROLS] = _("Controls");
app.strings[ST_TROPHIES] = _("Trophies");
app.strings[ST_PAGE] = _("Page %d / %d");
app.strings[ST_HIDDEN] = _("Hidden");