|
OpenTTD Source 20260421-master-gc2fbc6fdeb
|
Information about a particular livery. More...
#include <livery.h>
Public Types | |
| enum class | Flag : uint8_t { Primary = 0 , Secondary = 1 } |
| Flags for bitmask to declare which of the colours are set. More... | |
| using | Flags = EnumBitSet<Flag, uint8_t> |
Public Member Functions | |
| uint8_t | GetRecolourOffset (bool use_secondary=true) const |
| Get offset for recolour palette. | |
Data Fields | |
| Flags | in_use {} |
| Livery flags. | |
| Colours | colour1 = Colours::Begin |
| First colour, for all vehicles. | |
| Colours | colour2 = Colours::Begin |
| Second colour, for vehicles with 2CC support. | |
| using Livery::Flags = EnumBitSet<Flag, uint8_t> |
|
strong |
|
inline |
Get offset for recolour palette.
| use_secondary | Specify whether to add secondary colour offset to the result. |
Definition at line 96 of file livery.h.
References to_underlying().
Referenced by DrawNewObjectTileInGUI().
| Colours Livery::colour1 = Colours::Begin |
First colour, for all vehicles.
Definition at line 88 of file livery.h.
Referenced by CmdAlterGroup(), CmdCreateGroup(), CmdSetGroupLivery(), GetColourOffset(), GetCompanyInfo(), PropagateChildLivery(), and UpdateCompanyGroupLiveries().
| Colours Livery::colour2 = Colours::Begin |
Second colour, for vehicles with 2CC support.
Definition at line 89 of file livery.h.
Referenced by CmdAlterGroup(), CmdCreateGroup(), CmdSetGroupLivery(), GetColourOffset(), GetCompanyInfo(), PropagateChildLivery(), and UpdateCompanyGroupLiveries().
| Flags Livery::in_use {} |
Livery flags.
Definition at line 87 of file livery.h.
Referenced by CmdAlterGroup(), CmdSetGroupLivery(), GetEngineLivery(), SelectCompanyLiveryWindow::GetWidgetString(), PropagateChildLivery(), and UpdateCompanyGroupLiveries().