|
OpenTTD Source 20260531-master-g0e951f3528
|
Functions/types related to livery colours. More...
Go to the source code of this file.
Data Structures | |
| struct | Livery |
| Information about a particular livery. More... | |
Typedefs | |
| using | LiverySchemes = EnumBitSet<LiveryScheme, uint32_t, LiveryScheme::End> |
Bitset of LiveryScheme elements. | |
Enumerations | |
| enum class | LiveryScheme : uint8_t { Begin = 0 , Default = 0 , Steam , Diesel , Electric , Monorail , Maglev , DMU , EMU , PassengerWagonSteam , PassengerWagonDiesel , PassengerWagonElectric , PassengerWagonMonorail , PassengerWagonMaglev , FreightWagon , Bus , Truck , PassengerShip , FreightShip , Helicopter , SmallPlane , LargePlane , PassengerTram , FreightTram , End } |
| List of different livery schemes. More... | |
| enum class | LiveryClass : uint8_t { Other , Rail , Road , Ship , Aircraft , GroupRail , GroupRoad , GroupShip , GroupAircraft } |
| List of different livery classes, used only by the livery GUI. More... | |
Functions | |
| void | ResetCompanyLivery (Company *c) |
| Reset the livery schemes to the company's primary colour. | |
Variables | |
| static const uint8_t | LIT_NONE = 0 |
| Don't show the liveries at all. | |
| static const uint8_t | LIT_COMPANY = 1 |
| Show the liveries of your own company. | |
| static const uint8_t | LIT_ALL = 2 |
| Show the liveries of all companies. | |
Functions/types related to livery colours.
Definition in file livery.h.
| using LiverySchemes = EnumBitSet<LiveryScheme, uint32_t, LiveryScheme::End> |
Bitset of LiveryScheme elements.
|
strong |
List of different livery classes, used only by the livery GUI.
| Enumerator | |
|---|---|
| Other | General livery schemes. |
| Rail | Rail livery schemes. |
| Road | Road livery schemes. |
| Ship | Ship livery schemes. |
| Aircraft | Aircraft livery schemes. |
| GroupRail | Rail group. |
| GroupRoad | Road group. |
| GroupShip | Ship group. |
| GroupAircraft | Aircraft group. |
|
strong |
List of different livery schemes.
| void ResetCompanyLivery | ( | Company * | c | ) |
Reset the livery schemes to the company's primary colour.
This is used on loading games without livery information and on new company start up.
| c | Company to reset. |
Definition at line 567 of file company_cmd.cpp.
References Begin, CompanyProperties::colour, and End.
Referenced by AfterLoadGame(), and DoStartupNewCompany().
|
static |
Show the liveries of all companies.
Definition at line 19 of file livery.h.
Referenced by GetEngineLivery(), LiveryHelper(), and SelectCompanyLiveryWindow::OnInvalidateData().
|
static |
Show the liveries of your own company.
Definition at line 18 of file livery.h.
Referenced by GetEngineLivery(), and SelectCompanyLiveryWindow::OnInvalidateData().