Change: Replace long list of cargo filter buttons with a multi-select dropdown list.

As before, hold ctrl while clicking on an item to toggle selections.
This commit is contained in:
Peter Nelson
2023-12-03 09:22:10 +00:00
committed by Peter Nelson
parent 0ce30d05c8
commit 46da56b191
4 changed files with 83 additions and 119 deletions

View File

@@ -46,13 +46,10 @@ enum StationListWidgets : WidgetID {
WID_STL_SHIP, ///< 'SHIP' button - list only facilities where is a dock.
WID_STL_FACILALL, ///< 'ALL' button - list all facilities.
WID_STL_NOCARGOWAITING, ///< 'NO' button - list stations where no cargo is waiting.
WID_STL_CARGOALL, ///< 'ALL' button - list all stations.
WID_STL_SORTBY, ///< 'Sort by' button - reverse sort direction.
WID_STL_SORTDROPBTN, ///< Dropdown button.
WID_STL_CARGOSTART, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets).
WID_STL_CARGODROPDOWN, ///< Cargo type dropdown list.
};
/** Widgets of the #SelectStationWindow class. */