Add amount of customers currently on ride to customers tab

This commit is contained in:
Alexander Overvoorde 2016-02-13 04:14:05 +01:00
parent 5ee7d1bbae
commit d07b7159c8
3 changed files with 11 additions and 1 deletions

View File

@ -4043,6 +4043,7 @@ STR_5735 :Network Status
STR_5736 :Player
STR_5737 :Closed, {COMMA16} person still on ride
STR_5738 :Closed, {COMMA16} people still on ride
STR_5739 :{WINDOW_COLOUR_2}Customers on ride: {BLACK}{COMMA16}
#############
# Scenarios #

View File

@ -2336,6 +2336,8 @@ enum {
STR_CLOSED_WITH_PERSON = 5737,
STR_CLOSED_WITH_PEOPLE = 5738,
STR_CUSTOMERS_ON_RIDE = 5739,
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
STR_COUNT = 32768
};

View File

@ -5899,7 +5899,7 @@ static void window_ride_customer_mouseup(rct_window *w, int widgetIndex)
static void window_ride_customer_resize(rct_window *w)
{
w->flags |= WF_RESIZABLE;
window_set_resize(w, 316, 139, 316, 139);
window_set_resize(w, 316, 149, 316, 149);
}
/**
@ -5979,6 +5979,13 @@ static void window_ride_customer_paint(rct_window *w, rct_drawpixelinfo *dpi)
x = w->x + window_ride_customer_widgets[WIDX_PAGE_BACKGROUND].left + 4;
y = w->y + window_ride_customer_widgets[WIDX_PAGE_BACKGROUND].top + 4;
// Customers currently on ride
if (gRideClassifications[ride->type] == RIDE_CLASS_RIDE) {
sint16 customersOnRide = ride->num_riders;
gfx_draw_string_left(dpi, STR_CUSTOMERS_ON_RIDE, &customersOnRide, 0, x, y);
y += 10;
}
// Customers per hour
customersPerHour = ride_customers_per_hour(ride);
gfx_draw_string_left(dpi, STR_CUSTOMERS_PER_HOUR, &customersPerHour, 0, x, y);