20#include "table/strings.h"
57 if (row_num == *cur_row)
return this;
94 if (cur_row >= max_row)
return cur_row;
100 int x = rtl ? right : left;
101 if (cur_row >= first_row) {
106 for (uint lvl = 0; lvl < this->
level; lvl++) {
107 if (!
HasBit(parent_last, lvl)) GfxDrawLine(x + offset, y, x + offset, y +
SETTING_HEIGHT - 1, colour);
113 GfxDrawLine(x + offset, y, x + offset, bottom_y, colour);
118 this->DrawSetting(settings_ptr, rtl ? left : x, rtl ? x : right, y,
this == selected);
148void SettingEntry::ResetAll()
189 if (mode ==
RM_ALL)
return true;
198 int64_t current_value = sd->
Read(
object);
199 int64_t filter_value;
218 return current_value != filter_value;
292 auto [min_val, max_val] = sd->
GetRange();
293 int32_t value = sd->
Read(ResolveObject(settings_ptr, sd));
317 for (
auto &it : this->
entries) {
325 for (
auto settings_entry : this->
entries) {
326 settings_entry->ResetAll();
333 for (
auto &it : this->
entries) {
341 for (
auto &it : this->
entries) {
353 for (
auto &it : this->
entries) {
354 it->GetFoldingState(all_folded, all_unfolded);
366 bool visible =
false;
367 bool first_visible =
true;
368 for (EntryVector::reverse_iterator it = this->
entries.rbegin(); it != this->
entries.rend(); ++it) {
369 visible |= (*it)->UpdateFilterState(filter, force_visible);
370 (*it)->SetLastField(first_visible);
371 if (visible && first_visible) first_visible =
false;
385 for (
const auto &it : this->
entries) {
386 if (it->IsVisible(item))
return true;
395 for (
const auto &it : this->
entries) {
396 length += it->Length();
410 for (
const auto &it : this->
entries) {
427 for (
const auto &it : this->
entries) {
428 biggest = std::max(biggest, it->GetMaxHelpHeight(maxw));
450 for (
const auto &it : this->
entries) {
451 cur_row = it->Draw(settings_ptr, left, right, y, first_row, max_row, selected, cur_row, parent_last);
452 if (cur_row >= max_row)
break;
482 for (
auto settings_entry : this->
entries) {
483 settings_entry->ResetAll();
515 all_unfolded =
false;
551 if (
this == item)
return true;
552 if (this->
folded)
return false;
561 if (this->
folded)
return 1;
575 if (row_num == *cur_row)
return this;
577 if (this->
folded)
return nullptr;
599 if (cur_row >= max_row)
return cur_row;
601 cur_row =
BaseSettingEntry::Draw(settings_ptr, left, right, y, first_row, max_row, selected, cur_row, parent_last);
605 assert(this->
level < 8 *
sizeof(parent_last));
609 cur_row =
SettingsContainer::Draw(settings_ptr, left, right, y, first_row, max_row, selected, cur_row, parent_last);
640 localisation->Add(
new SettingEntry(
"locale.units_velocity"));
641 localisation->Add(
new SettingEntry(
"locale.units_velocity_nautical"));
642 localisation->Add(
new SettingEntry(
"locale.units_power"));
643 localisation->Add(
new SettingEntry(
"locale.units_weight"));
644 localisation->Add(
new SettingEntry(
"locale.units_volume"));
645 localisation->Add(
new SettingEntry(
"locale.units_force"));
646 localisation->Add(
new SettingEntry(
"locale.units_height"));
647 localisation->Add(
new SettingEntry(
"gui.date_format_in_default_names"));
655 graphics->Add(
new SettingEntry(
"gui.smallmap_land_colour"));
656 graphics->Add(
new SettingEntry(
"gui.linkgraph_colours"));
657 graphics->Add(
new SettingEntry(
"gui.graph_line_thickness"));
679 general->Add(
new SettingEntry(
"gui.window_snap_radius"));
680 general->Add(
new SettingEntry(
"gui.window_soft_limit"));
681 general->Add(
new SettingEntry(
"gui.right_click_wnd_close"));
692 viewports->Add(
new SettingEntry(
"gui.scrollwheel_scrolling"));
693 viewports->Add(
new SettingEntry(
"gui.scrollwheel_multiplier"));
696 viewports->Add(
new SettingEntry(
"gui.right_mouse_btn_emulation"));
698 viewports->Add(
new SettingEntry(
"gui.population_in_label"));
700 viewports->Add(
new SettingEntry(
"construction.train_signal_side"));
701 viewports->Add(
new SettingEntry(
"gui.measure_tooltip"));
702 viewports->Add(
new SettingEntry(
"gui.loading_indicators"));
703 viewports->Add(
new SettingEntry(
"gui.show_track_reservation"));
708 construction->Add(
new SettingEntry(
"gui.link_terraform_toolbar"));
709 construction->Add(
new SettingEntry(
"gui.persistent_buildingtools"));
710 construction->Add(
new SettingEntry(
"gui.default_rail_type"));
711 construction->Add(
new SettingEntry(
"gui.semaphore_build_before"));
712 construction->Add(
new SettingEntry(
"gui.signal_gui_mode"));
713 construction->Add(
new SettingEntry(
"gui.cycle_signal_types"));
714 construction->Add(
new SettingEntry(
"gui.drag_signals_fixed_distance"));
715 construction->Add(
new SettingEntry(
"gui.auto_remove_signals"));
720 interface->Add(
new SettingEntry(
"gui.prefer_teamchat"));
721 interface->Add(
new SettingEntry(
"gui.advanced_vehicle_list"));
723 interface->Add(
new SettingEntry(
"gui.timetable_arrival_departure"));
724 interface->Add(
new SettingEntry(
"gui.show_newgrf_name"));
725 interface->Add(
new SettingEntry(
"gui.show_cargo_in_vehicle_lists"));
730 advisors->Add(
new SettingEntry(
"gui.coloured_news_year"));
731 advisors->Add(
new SettingEntry(
"news_display.general"));
732 advisors->Add(
new SettingEntry(
"news_display.new_vehicles"));
733 advisors->Add(
new SettingEntry(
"news_display.accident"));
734 advisors->Add(
new SettingEntry(
"news_display.accident_other"));
735 advisors->Add(
new SettingEntry(
"news_display.company_info"));
736 advisors->Add(
new SettingEntry(
"news_display.acceptance"));
737 advisors->Add(
new SettingEntry(
"news_display.arrival_player"));
738 advisors->Add(
new SettingEntry(
"news_display.arrival_other"));
740 advisors->Add(
new SettingEntry(
"gui.order_review_system"));
741 advisors->Add(
new SettingEntry(
"gui.vehicle_income_warn"));
742 advisors->Add(
new SettingEntry(
"gui.lost_vehicle_warn"));
743 advisors->Add(
new SettingEntry(
"gui.old_vehicle_warn"));
745 advisors->Add(
new SettingEntry(
"news_display.economy"));
746 advisors->Add(
new SettingEntry(
"news_display.subsidies"));
749 advisors->Add(
new SettingEntry(
"news_display.production_player"));
750 advisors->Add(
new SettingEntry(
"news_display.production_other"));
751 advisors->Add(
new SettingEntry(
"news_display.production_nobody"));
757 company->Add(
new SettingEntry(
"gui.starting_colour_secondary"));
759 company->Add(
new SettingEntry(
"company.engine_renew_months"));
760 company->Add(
new SettingEntry(
"company.engine_renew_money"));
761 company->Add(
new SettingEntry(
"vehicle.servint_ispercent"));
762 company->Add(
new SettingEntry(
"vehicle.servint_trains"));
763 company->Add(
new SettingEntry(
"vehicle.servint_roadveh"));
764 company->Add(
new SettingEntry(
"vehicle.servint_ships"));
765 company->Add(
new SettingEntry(
"vehicle.servint_aircraft"));
770 accounting->Add(
new SettingEntry(
"difficulty.infinite_money"));
772 accounting->Add(
new SettingEntry(
"difficulty.initial_interest"));
773 accounting->Add(
new SettingEntry(
"difficulty.max_loan"));
774 accounting->Add(
new SettingEntry(
"difficulty.subsidy_multiplier"));
775 accounting->Add(
new SettingEntry(
"difficulty.subsidy_duration"));
776 accounting->Add(
new SettingEntry(
"economy.feeder_payment_share"));
777 accounting->Add(
new SettingEntry(
"economy.infrastructure_maintenance"));
778 accounting->Add(
new SettingEntry(
"difficulty.vehicle_costs"));
779 accounting->Add(
new SettingEntry(
"difficulty.construction_cost"));
786 physics->Add(
new SettingEntry(
"vehicle.train_acceleration_model"));
787 physics->Add(
new SettingEntry(
"vehicle.train_slope_steepness"));
788 physics->Add(
new SettingEntry(
"vehicle.wagon_speed_limits"));
789 physics->Add(
new SettingEntry(
"vehicle.freight_trains"));
790 physics->Add(
new SettingEntry(
"vehicle.roadveh_acceleration_model"));
791 physics->Add(
new SettingEntry(
"vehicle.roadveh_slope_steepness"));
799 routing->Add(
new SettingEntry(
"difficulty.line_reverse_mode"));
800 routing->Add(
new SettingEntry(
"pf.reverse_at_signals"));
814 limitations->Add(
new SettingEntry(
"construction.command_pause_level"));
815 limitations->Add(
new SettingEntry(
"construction.autoslope"));
816 limitations->Add(
new SettingEntry(
"construction.extra_dynamite"));
817 limitations->Add(
new SettingEntry(
"construction.map_height_limit"));
818 limitations->Add(
new SettingEntry(
"construction.max_bridge_length"));
819 limitations->Add(
new SettingEntry(
"construction.max_bridge_height"));
820 limitations->Add(
new SettingEntry(
"construction.max_tunnel_length"));
821 limitations->Add(
new SettingEntry(
"station.never_expire_airports"));
822 limitations->Add(
new SettingEntry(
"vehicle.never_expire_vehicles"));
823 limitations->Add(
new SettingEntry(
"vehicle.max_trains"));
824 limitations->Add(
new SettingEntry(
"vehicle.max_roadveh"));
825 limitations->Add(
new SettingEntry(
"vehicle.max_aircraft"));
826 limitations->Add(
new SettingEntry(
"vehicle.max_ships"));
827 limitations->Add(
new SettingEntry(
"vehicle.max_train_length"));
828 limitations->Add(
new SettingEntry(
"station.station_spread"));
829 limitations->Add(
new SettingEntry(
"station.distant_join_stations"));
830 limitations->Add(
new SettingEntry(
"station.modified_catchment"));
831 limitations->Add(
new SettingEntry(
"construction.road_stop_on_town_road"));
832 limitations->Add(
new SettingEntry(
"construction.road_stop_on_competitor_road"));
833 limitations->Add(
new SettingEntry(
"construction.crossing_with_competitor"));
834 limitations->Add(
new SettingEntry(
"vehicle.disable_elrails"));
835 limitations->Add(
new SettingEntry(
"order.station_length_loading_penalty"));
840 disasters->Add(
new SettingEntry(
"difficulty.disasters"));
842 disasters->Add(
new SettingEntry(
"vehicle.plane_crashes"));
843 disasters->Add(
new SettingEntry(
"difficulty.vehicle_breakdowns"));
844 disasters->Add(
new SettingEntry(
"order.no_servicing_if_no_breakdowns"));
845 disasters->Add(
new SettingEntry(
"order.serviceathelipad"));
850 genworld->Add(
new SettingEntry(
"game_creation.landscape"));
851 genworld->Add(
new SettingEntry(
"game_creation.land_generator"));
852 genworld->Add(
new SettingEntry(
"difficulty.terrain_type"));
853 genworld->Add(
new SettingEntry(
"game_creation.tgen_smoothness"));
854 genworld->Add(
new SettingEntry(
"game_creation.variety"));
855 genworld->Add(
new SettingEntry(
"game_creation.snow_coverage"));
856 genworld->Add(
new SettingEntry(
"game_creation.snow_line_height"));
857 genworld->Add(
new SettingEntry(
"game_creation.desert_coverage"));
858 genworld->Add(
new SettingEntry(
"game_creation.amount_of_rivers"));
865 time->Add(
new SettingEntry(
"economy.timekeeping_units"));
866 time->Add(
new SettingEntry(
"economy.minutes_per_calendar_year"));
867 time->Add(
new SettingEntry(
"game_creation.ending_year"));
869 time->Add(
new SettingEntry(
"gui.fast_forward_speed_limit"));
874 authorities->Add(
new SettingEntry(
"difficulty.town_council_tolerance"));
876 authorities->Add(
new SettingEntry(
"economy.exclusive_rights"));
877 authorities->Add(
new SettingEntry(
"economy.fund_roads"));
878 authorities->Add(
new SettingEntry(
"economy.fund_buildings"));
879 authorities->Add(
new SettingEntry(
"economy.station_noise_level"));
884 towns->Add(
new SettingEntry(
"economy.town_cargo_scale"));
885 towns->Add(
new SettingEntry(
"economy.town_growth_rate"));
886 towns->Add(
new SettingEntry(
"economy.allow_town_roads"));
887 towns->Add(
new SettingEntry(
"economy.allow_town_level_crossings"));
892 towns->Add(
new SettingEntry(
"economy.initial_city_size"));
893 towns->Add(
new SettingEntry(
"economy.town_cargogen_mode"));
898 industries->Add(
new SettingEntry(
"economy.industry_cargo_scale"));
899 industries->Add(
new SettingEntry(
"difficulty.industry_density"));
900 industries->Add(
new SettingEntry(
"construction.raw_industry_construction"));
901 industries->Add(
new SettingEntry(
"construction.industry_platform"));
902 industries->Add(
new SettingEntry(
"economy.multiple_industry_per_town"));
903 industries->Add(
new SettingEntry(
"game_creation.oil_refinery_limit"));
905 industries->Add(
new SettingEntry(
"station.serve_neutral_industries"));
911 cdist->Add(
new SettingEntry(
"linkgraph.recalc_interval"));
912 cdist->Add(
new SettingEntry(
"linkgraph.distribution_pax"));
913 cdist->Add(
new SettingEntry(
"linkgraph.distribution_mail"));
914 cdist->Add(
new SettingEntry(
"linkgraph.distribution_armoured"));
915 cdist->Add(
new SettingEntry(
"linkgraph.distribution_default"));
917 cdist->Add(
new SettingEntry(
"linkgraph.demand_distance"));
919 cdist->Add(
new SettingEntry(
"linkgraph.short_path_saturation"));
924 trees->Add(
new SettingEntry(
"game_creation.tree_placer"));
925 trees->Add(
new SettingEntry(
"construction.extra_tree_placement"));
933 npc->Add(
new SettingEntry(
"script.script_max_opcode_till_suspend"));
934 npc->Add(
new SettingEntry(
"script.script_max_memory_megabytes"));
935 npc->Add(
new SettingEntry(
"difficulty.competitor_speed"));
938 npc->Add(
new SettingEntry(
"ai.ai_disable_veh_roadveh"));
939 npc->Add(
new SettingEntry(
"ai.ai_disable_veh_aircraft"));
948 network->Add(
new SettingEntry(
"network.use_relay_service"));
debug_inline constexpr bool HasBit(const T x, const uint8_t y)
Checks if a bit in a value is set.
constexpr T SetBit(T &x, const uint8_t y)
Set a bit in a variable.
constexpr bool Test(Tvalue_type value) const
Test if the value-th bit is set.
constexpr Timpl & Set()
Set all bits.
constexpr Timpl & Reset(Tvalue_type value)
Reset the value-th bit.
Definition of stuff that is very close to a company, like the company struct itself.
CompanyID _local_company
Company controlled by the human player at this client. Can also be COMPANY_SPECTATOR.
Functions related to companies.
int GetCharacterHeight(FontSize size)
Get height of a character for a given font size.
int GetStringHeight(std::string_view str, int maxw, FontSize fontsize)
Calculates height of string (in pixels).
int DrawString(int left, int right, int top, std::string_view str, TextColour colour, StringAlignment align, bool underline, FontSize fontsize)
Draw string, possibly truncated to make it fit in its allocated space.
void DrawSprite(SpriteID img, PaletteID pal, int x, int y, const SubSprite *sub, ZoomLevel zoom)
Draw a sprite, not in a viewport.
@ FS_NORMAL
Index of the normal font in the font tables.
uint8_t GetColourGradient(Colours colour, ColourShade shade)
Get colour gradient palette index.
A number of safeguards to prevent using unsafe methods.
SettingsContainer & GetSettingsTree()
Construct settings tree.
Declarations of classes for handling display of individual configuration settings.
int SETTING_HEIGHT
Height of a single setting in the tree view in pixels.
RestrictionMode
How the list of advanced settings is filtered.
@ RM_CHANGED_AGAINST_DEFAULT
Show only settings which are different compared to default values.
@ RM_ADVANCED
Display settings associated to the "advanced" list.
@ RM_ALL
List all settings regardless of the default/newgame/... values.
@ RM_CHANGED_AGAINST_NEW
Show only settings which are different compared to the user's new game setting values.
@ RM_BASIC
Display settings associated to the "basic" list.
Dimension _setting_circle_size
Dimension of the circle +/- icon. This is here as not all users are within the class of the settings ...
static constexpr SettingEntryFlags SEF_BUTTONS_MASK
Mask for button flags.
@ LeftDepressed
Of a numeric setting entry, the left button is depressed.
@ LastField
This entry is the last one in a (sub-)page.
@ RightDepressed
Of a numeric setting entry, the right button is depressed.
@ Filtered
Entry is hidden by the string filter.
bool SetSettingValue(const IntSettingDesc *sd, int32_t value, bool force_newgame)
Top function to save the new value of an element of the Settings struct.
static const SettingDesc * GetSettingFromName(const std::string_view name, const SettingTable &settings)
Given a name of setting, return a setting description from the table.
GameSettings _settings_newgame
Game settings for new games (updated from the intro screen).
ClientSettings _settings_client
The current settings for this game.
void DrawArrowButtons(int x, int y, Colours button_colour, uint8_t state, bool clickable_left, bool clickable_right)
Draw [<][>] boxes.
void DrawDropDownButton(int x, int y, Colours button_colour, bool state, bool clickable)
Draw a dropdown button.
void DrawBoolButton(int x, int y, bool state, bool clickable)
Draw a toggle button.
Functions for setting GUIs.
#define SETTING_BUTTON_WIDTH
Width of setting buttons.
#define SETTING_BUTTON_HEIGHT
Height of setting buttons.
Functions and types used internally for the settings configurations.
@ PerCompany
This setting can be different for each company (saved in company struct).
@ GuiZeroIsSpecial
A value of zero is possible and has a custom string (the one after "strval").
@ GuiDropdown
The value represents a limited number of string-options (internally integer) presented as dropdown.
@ ST_ALL
Used in setting filter to match all types.
@ SC_ADVANCED_LIST
Settings displayed in the list of advanced settings.
@ SC_BASIC_LIST
Settings displayed in the list of basic settings.
GameSettings & GetGameSettings()
Get the settings-object applicable for the current situation: the newgame settings when we're in the ...
This file contains all sprite-related enums and defines.
Definition of base types and functions in a cross-platform compatible way.
Searching and filtering using a stringterm.
std::string GetString(StringID string)
Resolve the given StringID into a std::string with formatting but no parameters.
TextDirection _current_text_dir
Text direction of the currently selected language.
Functions related to OTTD's strings.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
@ TD_RTL
Text is written right-to-left by default.
Data structure describing a single setting in a tab.
bool IsFiltered() const
Check whether an entry is hidden due to filters.
virtual BaseSettingEntry * FindEntry(uint row, uint *cur_row)
Find setting entry at row row_num.
virtual void Init(uint8_t level=0)
Initialization of a setting entry.
virtual uint Draw(GameSettings *settings_ptr, int left, int right, int y, uint first_row, uint max_row, BaseSettingEntry *selected, uint cur_row=0, uint parent_last=0) const
Draw a row in the settings panel.
SettingEntryFlags flags
Flags of the setting entry.
virtual bool IsVisible(const BaseSettingEntry *item) const
Check whether an entry is visible and not folded or filtered away.
uint8_t level
Nesting level of this setting entry.
CompanySettings company
default values for per-company settings
All settings together for the game.
Base integer type, including boolean, settings.
SettingCategory cat
assigned categories of the setting
std::tuple< int32_t, uint32_t > GetRange() const
Get the min/max range for the setting.
StringID GetTitle() const
Get the title of the setting.
int32_t GetDefaultValue() const
Get the default value of the setting.
StringID GetHelp() const
Get the help text of the setting.
virtual bool IsBoolSetting() const
Check whether this setting is a boolean type setting.
std::pair< StringParameter, StringParameter > GetValueParams(int32_t value) const
Get parameters for drawing the value of the setting.
int32_t Read(const void *object) const
Read the integer from the the actual setting.
static Titem * Get(auto index)
Returns Titem with given index.
static bool IsValidID(auto index)
Tests whether given index can be used to get valid (non-nullptr) Titem.
bool IsEditable(bool do_command=false) const
Check whether the setting is editable in the current gamemode.
SettingFlags flags
Handles how a setting would show up in the GUI (text/currency, etc.).
SettingType GetType() const
Return the type of the setting.
const struct IntSettingDesc * AsIntSetting() const
Get the setting description of this setting as an integer setting.
uint Length() const override
Return number of rows needed to display the (filtered) entry.
void SetButtons(SettingEntryFlags new_val)
Set the button-depressed flags (#SettingsEntryFlag::LeftDepressed and #SettingsEntryFlag::RightDepres...
void DrawSetting(GameSettings *settings_ptr, int left, int right, int y, bool highlight) const override
Function to draw setting value (button + text + current value)
bool IsVisibleByRestrictionMode(RestrictionMode mode) const
Checks whether an entry shall be made visible based on the restriction mode.
uint GetMaxHelpHeight(int maxw) override
Get the biggest height of the help text(s), if the width is at least maxw.
void Init(uint8_t level=0) override
Initialization of a setting entry.
const IntSettingDesc * setting
Setting description of the setting.
SettingEntry(const char *name)
Constructor for a single setting in the 'advanced settings' window.
bool UpdateFilterState(SettingFilter &filter, bool force_visible) override
Update the filter state.
const char * name
Name of the setting.
Filter for settings list.
SettingType type
Filter based on type.
bool type_hides
Whether the type hides filtered strings.
RestrictionMode mode
Filter based on category.
RestrictionMode min_cat
Minimum category needed to display all filtered strings (RM_BASIC, RM_ADVANCED, or RM_ALL).
StringFilter string
Filter string.
Containers for BaseSettingEntry.
bool UpdateFilterState(SettingFilter &filter, bool force_visible)
Update the filter state.
void GetFoldingState(bool &all_folded, bool &all_unfolded) const
Recursively accumulate the folding state of the tree.
uint GetMaxHelpHeight(int maxw)
Get the biggest height of the help texts, if the width is at least maxw.
void ResetAll()
Resets all settings to their default values.
bool IsVisible(const BaseSettingEntry *item) const
Check whether an entry is visible and not folded or filtered away.
void FoldAll()
Recursively close all folds of sub-pages.
void UnFoldAll()
Recursively open all folds of sub-pages.
BaseSettingEntry * FindEntry(uint row, uint *cur_row)
Find the setting entry at row number row_num.
EntryVector entries
Settings on this page.
uint Length() const
Return number of rows needed to display the whole page.
uint Draw(GameSettings *settings_ptr, int left, int right, int y, uint first_row, uint max_row, BaseSettingEntry *selected, uint cur_row=0, uint parent_last=0) const
Draw a row in the settings panel.
void Init(uint8_t level=0)
Initialization of an entire setting page.
Data structure describing one page of settings in the settings window.
StringID title
Title of the sub-page.
bool IsVisible(const BaseSettingEntry *item) const override
Check whether an entry is visible and not folded or filtered away.
SettingsPage(StringID title)
Constructor for a sub-page in the 'advanced settings' window.
void UnFoldAll() override
Recursively open all (filtered) folds of sub-pages.
void FoldAll() override
Recursively close all (filtered) folds of sub-pages.
uint Length() const override
Return number of rows needed to display the (filtered) entry.
BaseSettingEntry * FindEntry(uint row, uint *cur_row) override
Find setting entry at row row_num.
uint Draw(GameSettings *settings_ptr, int left, int right, int y, uint first_row, uint max_row, BaseSettingEntry *selected, uint cur_row=0, uint parent_last=0) const override
Draw a row in the settings panel.
void Init(uint8_t level=0) override
Initialization of an entire setting page.
void GetFoldingState(bool &all_folded, bool &all_unfolded) const override
Recursively accumulate the folding state of the (filtered) tree.
void ResetAll() override
Resets all settings to their default values.
bool folded
Sub-page is folded (not visible except for its title)
bool UpdateFilterState(SettingFilter &filter, bool force_visible) override
Update the filter state.
void DrawSetting(GameSettings *settings_ptr, int left, int right, int y, bool highlight) const override
Function to draw setting value (button + text + current value)
bool IsEmpty() const
Check whether any filter words were entered.
void ResetState()
Reset the matching state to process a new item.
bool GetState() const
Get the matching state of the current item.