Display "Controls" text on controls options screen.
This commit is contained in:
parent
a7d18ca312
commit
6f49aa8717
|
@ -377,6 +377,7 @@ enum
|
||||||
ST_COMPLETE,
|
ST_COMPLETE,
|
||||||
ST_PRESS_FIRE,
|
ST_PRESS_FIRE,
|
||||||
ST_OPTIONS,
|
ST_OPTIONS,
|
||||||
|
ST_CONTROLS,
|
||||||
ST_TROPHIES,
|
ST_TROPHIES,
|
||||||
ST_PAGE,
|
ST_PAGE,
|
||||||
ST_HIDDEN,
|
ST_HIDDEN,
|
||||||
|
|
|
@ -166,7 +166,14 @@ static void draw(void)
|
||||||
|
|
||||||
h = (SCREEN_WIDTH / 800.0) * background->rect.h;
|
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);
|
blitRectScaled(atlasTexture->texture, 0, SCREEN_HEIGHT - h, SCREEN_WIDTH, h, &background->rect, 0);
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ void initStrings(void)
|
||||||
app.strings[ST_PRESS_FIRE] = _("Press Fire to Continue");
|
app.strings[ST_PRESS_FIRE] = _("Press Fire to Continue");
|
||||||
|
|
||||||
app.strings[ST_OPTIONS] = _("Options");
|
app.strings[ST_OPTIONS] = _("Options");
|
||||||
|
app.strings[ST_CONTROLS] = _("Controls");
|
||||||
app.strings[ST_TROPHIES] = _("Trophies");
|
app.strings[ST_TROPHIES] = _("Trophies");
|
||||||
app.strings[ST_PAGE] = _("Page %d / %d");
|
app.strings[ST_PAGE] = _("Page %d / %d");
|
||||||
app.strings[ST_HIDDEN] = _("Hidden");
|
app.strings[ST_HIDDEN] = _("Hidden");
|
||||||
|
|
Loading…
Reference in New Issue