|
OpenTTD Source 15.0-beta2
|
Data Structures | |
| struct | Element |
Public Member Functions | |
| GUIBadgeClasses (GrfSpecFeature feature) | |
| Construct of list of badge classes and column groups to display. | |
| std::span< const Element > | GetClasses () const |
| std::span< const uint > | GetColumnWidths () const |
| uint | GetTotalColumnsWidth () const |
| Get total width of all columns. | |
Private Attributes | |
| std::vector< Element > | gui_classes {} |
| std::vector< uint > | column_widths {} |
Definition at line 44 of file newgrf_badge.h.
|
explicit |
Construct of list of badge classes and column groups to display.
| feature | feature being used. |
Definition at line 349 of file newgrf_badge.cpp.
References GetBadgeMaximalDimension(), GetClassBadge(), WidgetDimensions::hsep_normal, WidgetDimensions::hsep_wide, Badge::label, WidgetDimensions::scaled, and ScaleGUITrad().
|
inline |
Definition at line 61 of file newgrf_badge.h.
|
inline |
Definition at line 63 of file newgrf_badge.h.
| uint GUIBadgeClasses::GetTotalColumnsWidth | ( | ) | const |
Get total width of all columns.
Definition at line 389 of file newgrf_badge.cpp.
Referenced by BuildIndustryWindow::UpdateWidgetSize().
|
private |
Definition at line 69 of file newgrf_badge.h.
|
private |
Definition at line 68 of file newgrf_badge.h.