2011-03-06 10:54:20 +01:00
; This file is part of OpenTTD.
; OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
; OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
; See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
;
2021-05-29 11:08:58 +02:00
; Windows specific settings that are stored in global variables. They are all
; located under "win32" in the configuration files.
2011-03-03 22:04:17 +01:00
[pre-amble]
/* win32_v.cpp only settings */
2018-12-09 02:28:14 +01:00
#if defined(_WIN32) && !defined(DEDICATED)
2021-02-20 11:30:09 +01:00
extern bool _window_maximize;
2011-03-03 22:04:17 +01:00
2021-07-05 17:46:38 +02:00
static const SettingVariant _win32_settings_table[] = {
2011-03-03 22:04:17 +01:00
[post-amble]
};
2018-12-09 02:28:14 +01:00
#endif /* _WIN32 */
2011-03-03 22:04:17 +01:00
[templates]
2024-03-25 21:33:40 +01:00
SDTG_BOOL = SDTG_BOOL($name, $flags, $var, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $str_cb, $help_cb, $val_cb, $def_cb, $from, $to, $cat, $extra, $startup),
SDTG_VAR = SDTG_VAR($name, $type, $flags, $var, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $str_cb, $help_cb, $val_cb, $def_cb, $from, $to, $cat, $extra, $startup),
2011-03-03 22:04:17 +01:00
2021-03-01 13:12:17 +01:00
[validation]
SDTG_VAR = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
2011-03-05 11:12:03 +01:00
[defaults]
2021-06-03 20:55:03 +02:00
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2011-03-05 11:12:03 +01:00
interval = 0
str = STR_NULL
2012-05-12 12:09:00 +02:00
strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
2011-03-06 16:51:44 +01:00
strval = STR_NULL
2021-05-24 11:47:37 +02:00
pre_cb = nullptr
post_cb = nullptr
2024-01-27 22:11:20 +01:00
str_cb = nullptr
help_cb = nullptr
val_cb = nullptr
2024-03-25 21:33:40 +01:00
def_cb = nullptr
2019-04-11 13:24:02 +02:00
load = nullptr
2019-01-26 02:48:40 +01:00
from = SL_MIN_VERSION
2011-03-05 11:20:49 +01:00
to = SL_MAX_VERSION
2012-11-08 11:04:00 +01:00
cat = SC_ADVANCED
2020-12-14 00:14:37 +01:00
extra = 0
2021-02-16 00:09:52 +01:00
startup = true
2011-03-05 11:12:03 +01:00
2011-03-03 22:04:17 +01:00
[SDTG_BOOL]
name = ""window_maximize""
var = _window_maximize
def = false
2012-11-08 11:04:00 +01:00
cat = SC_BASIC