OpenTTD Source: GUIBadgeClasses::Element Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
GUIBadgeClasses::Element Struct Reference

## Data Fields
BadgeClassID | class_index
| Badge class index.
uint8_t | column_group
| Column group in UI. 0 = left, 1 = centre, 2 = right.
bool | visible
| Whether the icon is visible.
uint | sort_order
| Order of element.
Dimension | size
| Maximal size of this element.
std::string_view | label
| Class label (string owned by the class badge)

## Detailed Description

Definition at line 21 of file newgrf_badge_gui.h.

## Field Documentation

## ◆ class_index

BadgeClassID GUIBadgeClasses::Element::class_index

Badge class index.

Definition at line 22 of file newgrf_badge_gui.h.

## ◆ column_group

uint8_t GUIBadgeClasses::Element::column_group

Column group in UI. 0 = left, 1 = centre, 2 = right.

Definition at line 23 of file newgrf_badge_gui.h.

## ◆ label

std::string_view GUIBadgeClasses::Element::label

Class label (string owned by the class badge)

Definition at line 27 of file newgrf_badge_gui.h.

## ◆ size

Dimension GUIBadgeClasses::Element::size

Maximal size of this element.

Definition at line 26 of file newgrf_badge_gui.h.

## ◆ sort_order

uint GUIBadgeClasses::Element::sort_order

Order of element.

Definition at line 25 of file newgrf_badge_gui.h.

## ◆ visible

bool GUIBadgeClasses::Element::visible

Whether the icon is visible.

Definition at line 24 of file newgrf_badge_gui.h.

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

- src/newgrf_badge_gui.h