1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Add rides amount to ride_list window. (#3461)

This commit is contained in:
Patrick de Wit
2016-04-30 18:12:12 +02:00
committed by Ted John
parent b5706a5de8
commit 7656cfdcbe
4 changed files with 14 additions and 4 deletions

View File

@@ -4111,6 +4111,9 @@ STR_5802 :{SMALLFONT}{BLACK}Stops guests from littering and vomiting
STR_5803 :{SMALLFONT}{BLACK}Rotate selected map element
STR_5804 :Mute sound
STR_5805 :{SMALLFONT}{BLACK}If checked, your server will be added to the{NEWLINE}public server list so everyone can find it
STR_5807 :{WINDOW_COLOUR_2}Number of rides: {BLACK}{COMMA16}
STR_5808 :{WINDOW_COLOUR_2}Number of shops and stalls: {BLACK}{COMMA16}
STR_5809 :{WINDOW_COLOUR_2}Number of information kiosks and other facilities: {BLACK}{COMMA16}
#############

View File

@@ -2444,6 +2444,10 @@ enum {
STR_ADVERTISE_SERVER_TIP = 5805,
STR_NUMBER_RIDES = 5807,
STR_NUMBER_SHOPS_AND_STALLS = 5808,
STR_NUMBER_RESTROOMS_AND_INFORMATION_KIOSKS = 5809,
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
STR_COUNT = 32768
};

View File

@@ -459,7 +459,7 @@ static void window_ride_list_invalidate(rct_window *w)
w->widgets[WIDX_CLOSE].left = w->width - 13;
w->widgets[WIDX_CLOSE].right = w->width - 3;
w->widgets[WIDX_LIST].right = w->width - 26;
w->widgets[WIDX_LIST].bottom = w->height - 4;
w->widgets[WIDX_LIST].bottom = w->height - 15;
w->widgets[WIDX_OPEN_CLOSE_ALL].right = w->width - 2;
w->widgets[WIDX_OPEN_CLOSE_ALL].left = w->width - 25;
w->widgets[WIDX_CLOSE_LIGHT].right = w->width - 7;
@@ -504,6 +504,9 @@ static void window_ride_list_paint(rct_window *w, rct_drawpixelinfo *dpi)
{
window_draw_widgets(w, dpi);
window_ride_list_draw_tab_images(dpi, w);
// Draw number of attractions on bottom
gfx_draw_string_left(dpi, STR_NUMBER_RIDES + w->page, &w->no_list_items, 0, w->x + 4, w->widgets[WIDX_LIST].bottom + w->y + 2);
}
/**

View File

@@ -510,10 +510,10 @@ void window_staff_list_invalidate(rct_window *w)
window_staff_list_widgets[WIDX_STAFF_LIST_TAB_CONTENT_PANEL].right = w->width - 1;
window_staff_list_widgets[WIDX_STAFF_LIST_TAB_CONTENT_PANEL].bottom = w->height - 1;
window_staff_list_widgets[WIDX_STAFF_LIST_TITLE].right = w->width - 2;
window_staff_list_widgets[WIDX_STAFF_LIST_CLOSE].left = w->width - 2 - 0x0B;
window_staff_list_widgets[WIDX_STAFF_LIST_CLOSE].right = w->width - 2 - 0x0B + 0x0A;
window_staff_list_widgets[WIDX_STAFF_LIST_CLOSE].left = w->width - 2 - 11;
window_staff_list_widgets[WIDX_STAFF_LIST_CLOSE].right = w->width - 2 - 11 + 10;
window_staff_list_widgets[WIDX_STAFF_LIST_LIST].right = w->width - 4;
window_staff_list_widgets[WIDX_STAFF_LIST_LIST].bottom = w->height - 0x0F;
window_staff_list_widgets[WIDX_STAFF_LIST_LIST].bottom = w->height - 15;
window_staff_list_widgets[WIDX_STAFF_LIST_QUICK_FIRE].left = w->width - 77;
window_staff_list_widgets[WIDX_STAFF_LIST_QUICK_FIRE].right = w->width - 54;
window_staff_list_widgets[WIDX_STAFF_LIST_SHOW_PATROL_AREA_BUTTON].left = w->width - 53;