Codechange: Move settings string formatting into IntSettingDesc members.

This commit is contained in:
frosch
2024-01-27 21:07:07 +01:00
committed by frosch
parent a9d1078434
commit 022b9e92d2
3 changed files with 54 additions and 41 deletions

View File

@@ -209,6 +209,10 @@ struct IntSettingDesc : SettingDesc {
PreChangeCheck *pre_check; ///< Callback to check for the validity of the setting.
PostChangeCallback *post_callback; ///< Callback when the setting has been changed.
StringID GetTitle() const;
StringID GetHelp() const;
void SetValueDParams(uint first_param, int32_t value) const;
/**
* Check whether this setting is a boolean type setting.
* @return True when the underlying type is an integer.