OpenTTD Source 20241224-master-gf74b0cf984
|
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 2424 of file industry_gui.cpp.
|
inline |
Connect industry accepted cargoes to the cargo column before it.
column | Column of the industry. |
Definition at line 2490 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 2431 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 2469 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 2425 of file industry_gui.cpp.
Referenced by IndustryCargoesWindow::ComputeCargoDisplay(), and IndustryCargoesWindow::ComputeIndustryDisplay().