summaryrefslogtreecommitdiff
path: root/src/table/settings/window_settings.ini
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-06-03 20:55:03 +0200
committerPatric Stout <github@truebrain.nl>2021-06-06 21:45:01 +0200
commit648ee88a02fef70172a108ed7bc511e27984d2c4 (patch)
tree20c4fd197f9815a812a6966c8467464bcd19da32 /src/table/settings/window_settings.ini
parent264991dfa506c0bdebb2e2c936f79a2412dad442 (diff)
downloadopenttd-648ee88a02fef70172a108ed7bc511e27984d2c4.tar.xz
Codechange: merge guiflags and flags in settings .ini files
It was rather confusing which one was for what, especially as some SaveLoad flags were settings-only. Clean up this mess a bit by having only Setting flags.
Diffstat (limited to 'src/table/settings/window_settings.ini')
-rw-r--r--src/table/settings/window_settings.ini7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/table/settings/window_settings.ini b/src/table/settings/window_settings.ini
index f9301ef2c..3a7669754 100644
--- a/src/table/settings/window_settings.ini
+++ b/src/table/settings/window_settings.ini
@@ -13,15 +13,14 @@ static const SettingTable _window_settings{
[post-amble]
};
[templates]
-SDT_BOOL = SDT_BOOL(WindowDesc, $var, $flags, $guiflags, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
-SDT_VAR = SDT_VAR(WindowDesc, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
+SDT_BOOL = SDT_BOOL(WindowDesc, $var, $flags, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
+SDT_VAR = SDT_VAR(WindowDesc, $var, $type, $flags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
[validation]
SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for WindowDesc.$var exceeds storage size");
[defaults]
-flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
-guiflags = SF_NONE
+flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
interval = 0
str = STR_NULL
strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT