54static uint const ZOOM_BASE = 1U << ZOOM_BASE_SHIFT;
62static const
int MIN_INTERFACE_SCALE = 100;
63static const
int MAX_INTERFACE_SCALE = 500;
Type (helpers) for enums.
constexpr std::underlying_type_t< enum_type > to_underlying(enum_type e)
Implementation of std::to_underlying (from C++23).
#define DECLARE_ENUM_AS_SEQUENTIAL(enum_type)
For some enums it is useful to add/sub more than 1.
#define DECLARE_INCREMENT_DECREMENT_OPERATORS(enum_type)
For some enums it is useful to have pre/post increment/decrement operators.
ZoomLevel _font_zoom
Sprite font Zoom level (not clamped).
int _gui_scale_cfg
GUI scale in config.
ZoomLevel _gui_zoom
GUI Zoom level.
int _gui_scale
GUI scale, 100 is 100%.
Aircraft, helicopters, rotors and their shadows belong to this class.
Defines the internal data of a functional industry.
Buses, trucks and trams belong to this class.
All ships have this type.
Container for all information about a text effect.
'Train' is either a loco or a wagon.
Data structure for viewport, display of a part of the world.
EnumBitSet< ZoomLevel, uint8_t > ZoomLevels
Bitset of ZoomLevel elements.
ZoomLevel
All zoom levels we know.
@ Begin
Begin for iteration.
@ WorldScreenshot
Default zoom level for the world screen shot.
@ Out2x
Zoomed 2 times out.
@ Normal
The normal zoom level.
@ Detail
All zoom levels below or equal to this will result in details on the screen, like road-work,...
@ Out8x
Zoomed 8 times out.
@ Out4x
Zoomed 4 times out.
@ News
Default zoom level for the news messages.