1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Fix guest counter to say '1 guest' instead of '1 guests'

This commit is contained in:
Harrison Gentry
2018-01-05 02:58:17 -05:00
committed by Michael Steenbeek
parent 26c35b5c28
commit 5862cd9d40
3 changed files with 14 additions and 1 deletions

View File

@@ -4499,6 +4499,9 @@ STR_6189 :Duck
STR_6190 :{SMALLFONT}{BLACK}You cannot select a sprite while the main title screen is active.
STR_6191 :Surface
STR_6192 :Wall
STR_6193 :{COMMA16} guest
STR_6194 :{INLINE_SPRITE}{11}{20}{00}{00}{COMMA16} guest
STR_6195 :{INLINE_SPRITE}{10}{20}{00}{00}{COMMA16} guest
#############
# Scenarios #

View File

@@ -471,6 +471,13 @@ static void window_game_bottom_toolbar_draw_left_panel(rct_drawpixelinfo *dpi, r
STR_BOTTOM_TOOLBAR_NUM_GUESTS_INCREASE,
};
static const rct_string_id guestCountFormatsSingular[] =
{
STR_BOTTOM_TOOLBAR_NUM_GUESTS_STABLE_SINGULAR,
STR_BOTTOM_TOOLBAR_NUM_GUESTS_DECREASE_SINGULAR,
STR_BOTTOM_TOOLBAR_NUM_GUESTS_INCREASE_SINGULAR,
};
// Draw guests
{
rct_widget widget = window_game_bottom_toolbar_widgets[WIDX_GUESTS];
@@ -479,7 +486,7 @@ static void window_game_bottom_toolbar_draw_left_panel(rct_drawpixelinfo *dpi, r
gfx_draw_string_centred(
dpi,
guestCountFormats[gGuestChangeModifier],
gNumGuestsInPark == 1 ? guestCountFormatsSingular[gGuestChangeModifier] : guestCountFormats[gGuestChangeModifier],
x,
y,
(gHoverWidget.window_classification == WC_BOTTOM_TOOLBAR && gHoverWidget.widget_index == WIDX_GUESTS ? COLOUR_WHITE : NOT_TRANSLUCENT(w->colours[0])),

View File

@@ -3844,6 +3844,9 @@ enum {
STR_TILE_INSPECTOR_SURFACE = 6191,
STR_TILE_INSPECTOR_WALL = 6192,
STR_BOTTOM_TOOLBAR_NUM_GUESTS_STABLE_SINGULAR = 6193,
STR_BOTTOM_TOOLBAR_NUM_GUESTS_DECREASE_SINGULAR = 6194,
STR_BOTTOM_TOOLBAR_NUM_GUESTS_INCREASE_SINGULAR = 6195,
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
STR_COUNT = 32768
};