OpenTTD Source  20241121-master-g67a0fccfad
CargoFilterCriteria Namespace Reference

Special cargo filter criteria. More...

Variables

static constexpr CargoID CF_ANY = NUM_CARGO
 Show all items independent of carried cargo (i.e. no filtering)
 
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)
 
static constexpr CargoID CF_EXPAND_LIST = NUM_CARGO + 6
 Expand list to show all items (station list)
 

Detailed Description

Special cargo filter criteria.

These are used by user interface code only and must not be assigned to any entity. Not all values are valid for every UI filter.