OpenTTD Source 20241224-master-gf74b0cf984
|
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) | |
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.
Show all items independent of carried cargo (i.e. no filtering)
Definition at line 94 of file cargo_type.h.
Referenced by BaseVehicleListWindow::BuildCargoDropDownList(), CargoAndEngineFilter(), CargoFilter(), CargoFilterSingle(), IndustryDirectoryWindow::DrawWidget(), IndustryDirectoryWindow::GetCargoTransportedSortValue(), IndustryDirectoryWindow::GetIndustryString(), IndustryDirectoryWindow::IndustryProductionSorter(), BuildVehicleWindow::OnDropdownSelect(), IndustryDirectoryWindow::SetAcceptedCargoFilter(), BaseVehicleListWindow::SetCargoFilter(), BuildVehicleWindow::SetCargoFilterArray(), IndustryDirectoryWindow::SetCargoFilterArray(), BaseVehicleListWindow::SetCargoFilterArray(), and IndustryDirectoryWindow::SetProducedCargoFilter().
Show only engines (for rail vehicles only)
Definition at line 96 of file cargo_type.h.
Referenced by CargoAndEngineFilter().
Expand list to show all items (station list)
Definition at line 101 of file cargo_type.h.
Referenced by CompanyStationsWindow::OnDropdownSelect().
Show only vehicles which carry any freight (non-passenger) cargo.
Definition at line 97 of file cargo_type.h.
Referenced by BaseVehicleListWindow::BuildCargoDropDownList(), and CargoFilterSingle().
Show items with no rating (station list)
Definition at line 99 of file cargo_type.h.
Referenced by CompanyStationsWindow::OnDropdownSelect().
Show only items which do not carry cargo (e.g. train engines)
Definition at line 95 of file cargo_type.h.
Referenced by BaseVehicleListWindow::BuildCargoDropDownList(), CargoAndEngineFilter(), CargoFilter(), CargoFilterSingle(), IndustryDirectoryWindow::DrawWidget(), IndustryDirectoryWindow::GetCargoTransportedSortValue(), IndustryDirectoryWindow::GetIndustryString(), and IndustryDirectoryWindow::IndustryProductionSorter().
Select all items (station list)
Definition at line 100 of file cargo_type.h.
Referenced by CompanyStationsWindow::OnDropdownSelect().