OpenTTD Source: SmallMapColourScheme Struct Reference

OpenTTD Source 15.3

Data Fields
SmallMapColourScheme Struct Reference

Colour scheme of the smallmap. More...

## Data Fields
std::vector< uint32_t > | height_colours
| Cached colours for each level in a map.
std::span< const uint32_t > | height_colours_base
| Base table for determining the colours.
uint32_t | default_colour
| Default colour of the land.

## Detailed Description

Colour scheme of the smallmap.

Definition at line 274 of file smallmap_gui.cpp.

## Field Documentation

## ◆ default_colour

uint32_t SmallMapColourScheme::default_colour

Default colour of the land.

Definition at line 277 of file smallmap_gui.cpp.

Referenced by BuildOwnerLegend(), GetSmallMapIndustriesPixels(), GetSmallMapOwnerPixels(), GetSmallMapRoutesPixels(), and GetSmallMapVehiclesPixels().

## ◆ height_colours

std::vector<uint32_t> SmallMapColourScheme::height_colours

Cached colours for each level in a map.

Definition at line 275 of file smallmap_gui.cpp.

Referenced by BuildLandLegend(), GetSmallMapContoursPixels(), GetSmallMapIndustriesPixels(), and GetSmallMapOwnerPixels().

## ◆ height_colours_base

std::span<const uint32_t> SmallMapColourScheme::height_colours_base

Base table for determining the colours.

Definition at line 276 of file smallmap_gui.cpp.

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

- src/smallmap_gui.cpp