OpenTTD Source
12.0-beta2
|
A single row of CargoesField. More...
Public Member Functions | |
void | ConnectIndustryProduced (int column) |
Connect industry production cargoes to the cargo column after it. More... | |
void | MakeCargoLabel (int column, bool accepting) |
Construct a CFT_CARGO_LABEL field. More... | |
void | ConnectIndustryAccepted (int column) |
Connect industry accepted cargoes to the cargo column before it. More... | |
Data Fields | |
CargoesField | columns [5] |
One row of fields. | |
A single row of CargoesField.
Definition at line 2341 of file industry_gui.cpp.
|
inline |
Connect industry accepted cargoes to the cargo column before it.
column | Column of the industry. |
Definition at line 2406 of file industry_gui.cpp.
References HouseSpec::accepts_cargo, IndustrySpec::accepts_cargo, CargoesField::cargo, HouseSpec::cargo_acceptance, CFT_CARGO, CFT_INDUSTRY, CargoesField::ConnectCargo(), HouseSpec::enabled, GetIndustrySpec(), CargoesField::industry, INVALID_CARGO, lengthof, MAX_CARGOES, CargoesField::max_cargoes, MemSetT(), NUM_HOUSES, NUM_INDUSTRYTYPES, and CargoesField::type.
|
inline |
Connect industry production cargoes to the cargo column after it.
column | Column of the industry. |
Definition at line 2348 of file industry_gui.cpp.
References CargoesField::cargo, CFT_CARGO, CFT_INDUSTRY, CargoesField::ConnectCargo(), GetIndustrySpec(), CargoesField::industry, INVALID_CARGO, lengthof, MAX_CARGOES, CargoesField::max_cargoes, MemSetT(), NUM_INDUSTRYTYPES, and CargoesField::type.
|
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 2385 of file industry_gui.cpp.
References CargoesField::cargo, CFT_CARGO, CFT_EMPTY, CargoesField::ConnectCargo(), INVALID_CARGO, lengthof, CargoesField::MakeCargoLabel(), MAX_CARGOES, MemSetT(), and CargoesField::type.