|
OpenTTD Source 20251104-master-g3befbdd52f
|
A single row of CargoesField. More...
Public Member Functions | |
| void | ConnectIndustryProduced (int column) |
| Connect industry production cargoes to the cargo column after it. | |
| void | MakeCargoLabel (int column, bool accepting) |
| Construct a CFT_CARGO_LABEL field. | |
| void | ConnectIndustryAccepted (int column) |
| Connect industry accepted cargoes to the cargo column before it. | |
Data Fields | |
| CargoesField | columns [5] |
| One row of fields. | |
A single row of CargoesField.
Definition at line 2402 of file industry_gui.cpp.
|
inline |
Connect industry accepted cargoes to the cargo column before it.
| column | Column of the industry. |
Definition at line 2468 of file industry_gui.cpp.
References IndustrySpec::accepts_cargo, CargoesField::cargo, CFT_CARGO, CFT_INDUSTRY, CargoesField::ConnectCargo(), CargoesField::cust_cargoes, GetIndustrySpec(), HasBit(), CargoesField::ind_type, CargoesField::industry, lengthof, MAX_CARGOES, CargoesField::max_cargoes, CargoesField::num_cargoes, NUM_INDUSTRYTYPES, CargoesField::other_accepted, HouseSpec::Specs(), CargoesField::type, and CargoesField::vertical_cargoes.
|
inline |
Connect industry production cargoes to the cargo column after it.
| column | Column of the industry. |
Definition at line 2409 of file industry_gui.cpp.
References CargoesField::cargo, CFT_CARGO, CFT_INDUSTRY, CargoesField::ConnectCargo(), CargoSpec::Get(), GetIndustrySpec(), HasBit(), CargoesField::ind_type, CargoesField::industry, MAX_CARGOES, CargoesField::max_cargoes, CargoesField::num_cargoes, NUM_INDUSTRYTYPES, CargoesField::other_produced, CargoesField::supp_cargoes, CargoSpec::town_production_effect, TPE_MAIL, TPE_PASSENGERS, CargoesField::type, and CargoesField::vertical_cargoes.
|
inline |
Construct a CFT_CARGO_LABEL field.
| column | Column to create the new field. |
| accepting | Display accepted cargo (if false, display produced cargo). |
Definition at line 2447 of file industry_gui.cpp.
References CargoesField::cargo, CFT_CARGO, CFT_EMPTY, CargoesField::ConnectCargo(), CargoesField::MakeCargoLabel(), MAX_CARGOES, CargoesField::num_cargoes, CargoesField::type, and CargoesField::vertical_cargoes.
| CargoesField CargoesRow::columns[5] |
One row of fields.
Definition at line 2403 of file industry_gui.cpp.
Referenced by IndustryCargoesWindow::ComputeCargoDisplay(), and IndustryCargoesWindow::ComputeIndustryDisplay().