OpenTTD Source 20250428-master-ga5578166bb
|
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 18 of file newgrf_badge_gui.h.
|
explicit |
Construct of list of badge classes and column groups to display.
feature | feature being used. |
Definition at line 66 of file newgrf_badge_gui.cpp.
References GetClassBadge(), WidgetDimensions::hsep_normal, WidgetDimensions::hsep_wide, Badge::label, Badge::name, WidgetDimensions::scaled, and ScaleGUITrad().
|
inline |
Definition at line 32 of file newgrf_badge_gui.h.
|
inline |
Definition at line 37 of file newgrf_badge_gui.h.
uint GUIBadgeClasses::GetTotalColumnsWidth | ( | ) | const |
Get total width of all columns.
Definition at line 107 of file newgrf_badge_gui.cpp.
Referenced by BuildIndustryWindow::UpdateWidgetSize().
|
private |
Definition at line 46 of file newgrf_badge_gui.h.
|
private |
Definition at line 45 of file newgrf_badge_gui.h.