|
OpenTTD Source 20260218-master-g2123fca5ea
|
Declarations of classes for handling display of individual configuration settings. More...
Go to the source code of this file.
Data Structures | |
| struct | SettingFilter |
| Filter for settings list. More... | |
| struct | BaseSettingEntry |
| Data structure describing a single setting in a tab. More... | |
| struct | SettingEntry |
| Standard setting. More... | |
| struct | SettingsContainer |
| Containers for BaseSettingEntry. More... | |
| struct | SettingsPage |
| Data structure describing one page of settings in the settings window. More... | |
Typedefs | |
| using | SettingEntryFlags = EnumBitSet<SettingEntryFlag, uint8_t> |
| Bitset of the SettingEntryFlag elements. | |
Enumerations | |
| enum class | SettingEntryFlag : uint8_t { LeftDepressed , RightDepressed , LastField , Filtered } |
| Flags for SettingEntry. More... | |
| enum | RestrictionMode : uint8_t { RM_BASIC , RM_ADVANCED , RM_ALL , RM_CHANGED_AGAINST_DEFAULT , RM_CHANGED_AGAINST_NEW , RM_END } |
| How the list of advanced settings is filtered. More... | |
Functions | |
| SettingsContainer & | GetSettingsTree () |
| Construct settings tree. | |
| const void * | ResolveObject (const GameSettings *settings_ptr, const IntSettingDesc *sd) |
| Resolve the underlying object where to dynamically load/save a setting to. | |
Variables | |
| static constexpr SettingEntryFlags | SEF_BUTTONS_MASK = {SettingEntryFlag::LeftDepressed, SettingEntryFlag::RightDepressed} |
| Mask for button flags. | |
Declarations of classes for handling display of individual configuration settings.
Definition in file settingentry_gui.h.
| using SettingEntryFlags = EnumBitSet<SettingEntryFlag, uint8_t> |
Bitset of the SettingEntryFlag elements.
Definition at line 27 of file settingentry_gui.h.
| enum RestrictionMode : uint8_t |
How the list of advanced settings is filtered.
Definition at line 32 of file settingentry_gui.h.
|
strong |
Flags for SettingEntry.
Definition at line 21 of file settingentry_gui.h.
| SettingsContainer & GetSettingsTree | ( | ) |
Construct settings tree.
Definition at line 569 of file settingentry_gui.cpp.
References SettingsContainer::Add().
Referenced by GameOptionsWindow::DrawWidget(), GameOptionsWindow::OnClick(), GameOptionsWindow::OnDropdownSelect(), GameOptionsWindow::OnEditboxChanged(), GameOptionsWindow::OnInvalidateData(), and ResetAllSettingsConfirmationCallback().
| const void * ResolveObject | ( | const GameSettings * | settings_ptr, |
| const IntSettingDesc * | sd ) |
Resolve the underlying object where to dynamically load/save a setting to.
This is primarily to load the settings object of the right company, if the setting is saved per company. When not in the menu and the local company is valid, returns the local company's settings. Otherwise the global client settings.
| settings_ptr | The settings to fall back to when this setting is not for a company. |
| sd | The setting to check. |
Definition at line 246 of file settingentry_gui.cpp.
References _local_company, _settings_client, SettingDesc::flags, PerCompany, and BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test().
Referenced by SettingEntry::DrawSetting(), and SettingEntry::IsVisibleByRestrictionMode().
|
staticconstexpr |
Mask for button flags.
Definition at line 29 of file settingentry_gui.h.
Referenced by SettingEntry::DrawSetting(), and SettingEntry::SetButtons().