OpenTTD Source 20241224-master-gee860a5c8e
SettingFilter Struct Reference

Filter for settings list. More...

Data Fields

StringFilter string
 Filter string.
 
RestrictionMode min_cat
 Minimum category needed to display all filtered strings (RM_BASIC, RM_ADVANCED, or RM_ALL).
 
bool type_hides
 Whether the type hides filtered strings.
 
RestrictionMode mode
 Filter based on category.
 
SettingType type
 Filter based on type.
 

Detailed Description

Filter for settings list.

Definition at line 1233 of file settings_gui.cpp.

Field Documentation

◆ min_cat

RestrictionMode SettingFilter::min_cat

Minimum category needed to display all filtered strings (RM_BASIC, RM_ADVANCED, or RM_ALL).

Definition at line 1235 of file settings_gui.cpp.

Referenced by GameSettingsWindow::OnInvalidateData(), GameSettingsWindow::OnPaint(), and SettingEntry::UpdateFilterState().

◆ mode

◆ string

◆ type

◆ type_hides

bool SettingFilter::type_hides

Whether the type hides filtered strings.

Definition at line 1236 of file settings_gui.cpp.

Referenced by GameSettingsWindow::OnInvalidateData(), and SettingEntry::UpdateFilterState().


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