10#ifndef NEWGRF_BADGE_CONFIG_H
11#define NEWGRF_BADGE_CONFIG_H
std::string label
Class label.
bool show_filter
Set if a drop down filter should be added for this class.
int column
UI column, feature-dependent.
bool show_icon
Set if the badge icons should be displayed for this class.
Base for the NewGRF implementation.
void BadgeClassLoadConfig(const IniFile &ini)
Load badge column preferences.
void AddBadgeClassesToConfiguration()
Add current badge classes to user configuration.
void ResetBadgeClassConfiguration(GrfSpecFeature feature)
Reset badge class configuration for a feature.
std::pair< const BadgeClassConfigItem &, int > GetBadgeClassConfigItem(GrfSpecFeature feature, std::string_view label)
Get configuration for a badge class.
void BadgeClassSaveConfig(struct IniFile &ini)
Save badge column preferences.
std::span< BadgeClassConfigItem > GetBadgeClassConfiguration(GrfSpecFeature feature)
Get the badge user configuration for a feature.
Types related to NewGRF badges.
Ini file that supports both loading and saving.