Add station cargo history
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "linkgraph/linkgraph.h"
|
||||
#include "zoom_func.h"
|
||||
#include "departures_gui.h"
|
||||
#include "graph_gui.h"
|
||||
#include "zoning.h"
|
||||
#include "newgrf_debug.h"
|
||||
|
||||
@@ -831,6 +832,8 @@ static const NWidgetPart _nested_station_view_widgets[] = {
|
||||
NWidget(NWID_HORIZONTAL, NC_EQUALSIZE),
|
||||
NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_SV_ACCEPTS_RATINGS), SetMinimalSize(46, 12), SetResize(1, 0), SetFill(1, 1),
|
||||
SetDataTip(STR_STATION_VIEW_RATINGS_BUTTON, STR_STATION_VIEW_RATINGS_TOOLTIP),
|
||||
NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_SV_HISTORY), SetMinimalSize(60, 12), SetResize(1, 0), SetFill(1, 1),
|
||||
SetDataTip(STR_STATION_VIEW_HISTORY_BUTTON, STR_STATION_VIEW_HISTORY_TOOLTIP),
|
||||
NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_SV_DEPARTURES), SetMinimalSize(46, 12), SetResize(1, 0), SetFill(1, 1),
|
||||
SetDataTip(STR_STATION_VIEW_DEPARTURES_BUTTON, STR_STATION_VIEW_DEPARTURES_TOOLTIP),
|
||||
NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_SV_CLOSE_AIRPORT), SetMinimalSize(45, 12), SetResize(1, 0), SetFill(1, 1),
|
||||
@@ -2052,6 +2055,11 @@ struct StationViewWindow : public Window {
|
||||
break;
|
||||
}
|
||||
|
||||
case WID_SV_HISTORY: {
|
||||
ShowStationCargo((StationID)this->window_number);
|
||||
break;
|
||||
}
|
||||
|
||||
case WID_SV_DEPARTURES: {
|
||||
ShowStationDepartures((StationID)this->window_number);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user