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

@@ -95,6 +95,9 @@ namespace CargoFilterCriteria {
static constexpr CargoID CF_NONE = NUM_CARGO + 1; ///< Show only items which do not carry cargo (e.g. train engines)
static constexpr CargoID CF_ENGINES = NUM_CARGO + 2; ///< Show only engines (for rail vehicles only)
static constexpr CargoID CF_FREIGHT = NUM_CARGO + 3; ///< Show only vehicles which carry any freight (non-passenger) cargo
static constexpr CargoID CF_NO_RATING = NUM_CARGO + 4; ///< Show items with no rating (station list)
static constexpr CargoID CF_SELECT_ALL = NUM_CARGO + 5; ///< Select all items (station list)
};
/** Test whether cargo type is not CT_INVALID */