Codechange: Use parameterised GetString() for script-related windows. (#13671)

This commit is contained in:
Peter Nelson
2025-02-27 23:53:04 +00:00
committed by GitHub
parent e2c1b9f03e
commit ddb502d097
5 changed files with 82 additions and 86 deletions

View File

@@ -39,6 +39,9 @@ struct ScriptConfigItem {
ScriptConfigFlags flags = SCRIPTCONFIG_NONE; ///< Flags for the configuration setting.
LabelMapping labels; ///< Text labels for the integer values.
bool complete_labels = false; ///< True if all values have a label.
std::string GetString(int value) const;
TextColour GetColour() const;
};
typedef std::vector<ScriptConfigItem> ScriptConfigItemList; ///< List of ScriptConfig items.