diff options
author | rubidium <rubidium@openttd.org> | 2006-08-28 09:13:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-28 09:13:33 +0000 |
commit | a2bde2d6c558398bba7bca7532d414ad9f50efa6 (patch) | |
tree | a726d354eef64f96f4c243b63da5755e2437d959 /settings.h | |
parent | fb2fb0657bd3846dad3f4b2d2b59f05fb642a1d3 (diff) | |
download | openttd-a2bde2d6c558398bba7bca7532d414ad9f50efa6.tar.xz |
(svn r6186) -Fix [FS#309]: add an override system to the dynamically determined size of steps for numeric patch settings in the 'Configure patches' GUI.
The size of these steps normally about (max - min) / 50, which results in steps of 100 000 years for the start year, end year, network restart year and the year of introduction of coloured newspapers.
Diffstat (limited to 'settings.h')
-rw-r--r-- | settings.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/settings.h b/settings.h index 5e57f1774..d1f9f7198 100644 --- a/settings.h +++ b/settings.h @@ -41,6 +41,7 @@ typedef struct SettingDescBase { SettingDescType cmd; ///< various flags for the variable SettingGuiFlag flags; ///< handles how a setting would show up in the GUI (text/currency, etc.) int32 min, max; ///< minimum and maximum values + int32 interval; ///< the interval to use between settings in the 'patches' window. If interval is '0' the interval is dynamically determined const char *many; ///< ONE/MANY_OF_MANY: string of possible values for this type StringID str; ///< (translated) string with descriptive text; gui and console OnChange *proc; ///< callback procedure for when the value is changed |