1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 10:45:16 +01:00

Show dash for station index for non-station elements

This commit is contained in:
Hielke Morsink
2019-04-22 15:16:48 +02:00
parent 462bafc24e
commit d8f1933a5b
2 changed files with 13 additions and 2 deletions

View File

@@ -3724,7 +3724,7 @@ STR_6273 :Music
STR_6274 :Can't set colour scheme...
STR_6275 :{WINDOW_COLOUR_2}Station style:
STR_6276 :{RED}{STRINGID} has guests getting stuck, possibly due to invalid ride type or operating mode.
STR_6277 :{WINDOW_COLOUR_2}Station index: {BLACK}{COMMA16}
STR_6277 :{WINDOW_COLOUR_2}Station index: {BLACK}{STRINGID}
STR_6278 :Autosave amount
STR_6279 :{SMALLFONT}{BLACK}Number of autosaves that should be kept
STR_6280 :{SMALLFONT}{BLACK}Chat

View File

@@ -1858,7 +1858,18 @@ static void window_tile_inspector_paint(rct_window* w, rct_drawpixelinfo* dpi)
if (track_element_is_station(tileElement))
{
int16_t stationIndex = trackElement->GetStationIndex();
gfx_draw_string_left(dpi, STR_TILE_INSPECTOR_STATION_INDEX, &stationIndex, COLOUR_DARK_GREEN, x, y + 55);
set_format_arg(0, rct_string_id, STR_COMMA16);
set_format_arg(2, int16_t, stationIndex);
gfx_draw_string_left(
dpi, STR_TILE_INSPECTOR_STATION_INDEX, gCommonFormatArgs, COLOUR_DARK_GREEN, x, y + 55);
}
else
{
const char* stationNone = "-";
set_format_arg(0, rct_string_id, STR_STRING);
set_format_arg(2, char*, stationNone);
gfx_draw_string_left(
dpi, STR_TILE_INSPECTOR_STATION_INDEX, gCommonFormatArgs, COLOUR_DARK_GREEN, x, y + 55);
}
// Properties