OpenTTD Source 20241224-master-gf74b0cf984
CargoesRow Struct Reference

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.
 

Detailed Description

A single row of CargoesField.

Definition at line 2424 of file industry_gui.cpp.

Member Function Documentation

◆ ConnectIndustryAccepted()

◆ ConnectIndustryProduced()

◆ MakeCargoLabel()

void CargoesRow::MakeCargoLabel ( int  column,
bool  accepting 
)
inline

Construct a CFT_CARGO_LABEL field.

Parameters
columnColumn to create the new field.
acceptingDisplay 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.

Field Documentation

◆ columns

CargoesField CargoesRow::columns[5]

The documentation for this struct was generated from the following file: