|
@@ -609,18 +609,18 @@ static const Widget _company_stations_wi
|
|
|
{ WWT_TEXTBTN, RESIZE_NONE, COLOUR_GREY, 0, 80, 25, 36, STR_SORT_BY, STR_SORT_ORDER_TIP}, // SLW_SORTBY
|
|
|
{ WWT_DROPDOWN, RESIZE_NONE, COLOUR_GREY, 81, 243, 25, 36, 0x0, STR_SORT_CRITERIA_TIP}, // SLW_SORTDROPBTN
|
|
|
{ WWT_PANEL, RESIZE_RIGHT, COLOUR_GREY, 244, 357, 25, 36, 0x0, STR_NULL}, // SLW_PAN_SORT_RIGHT
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _company_stations_desc = {
|
|
|
static const WindowDesc _company_stations_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 358, 162, 358, 162,
|
|
|
WC_STATION_LIST, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
|
|
_company_stations_widgets,
|
|
|
};
|
|
|
_company_stations_widgets
|
|
|
);
|
|
|
|
|
|
/**
|
|
|
* Opens window with list of company's stations
|
|
|
*
|
|
|
* @param company whose stations' list show
|
|
|
*/
|
|
@@ -980,18 +980,18 @@ struct StationViewWindow : public Window
|
|
|
if (delta.x != 0) ResizeButtons(this, SVW_LOCATION, SVW_RENAME);
|
|
|
this->vscroll.cap += delta.y / (int)this->resize.step_height;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
|
|
|
static const WindowDesc _station_view_desc = {
|
|
|
static const WindowDesc _station_view_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 249, 110, 249, 110,
|
|
|
WC_STATION_VIEW, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
|
|
_station_view_widgets,
|
|
|
};
|
|
|
_station_view_widgets
|
|
|
);
|
|
|
|
|
|
/**
|
|
|
* Opens StationViewWindow for given station
|
|
|
*
|
|
|
* @param station station which window should be opened
|
|
|
*/
|
|
@@ -1196,18 +1196,18 @@ struct SelectStationWindow : Window {
|
|
|
{
|
|
|
FindStationsNearby(this->tile, this->size_x, this->size_y, true);
|
|
|
this->SetDirty();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _select_station_desc = {
|
|
|
static const WindowDesc _select_station_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 200, 92, 200, 182,
|
|
|
WC_SELECT_STATION, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE | WDF_CONSTRUCTION,
|
|
|
_select_station_widgets,
|
|
|
};
|
|
|
_select_station_widgets
|
|
|
);
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Check whether we need to show the station selection window.
|
|
|
* @param cmd Command to build the station.
|
|
|
* @param w Width of the to-be-built station
|