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/>.
;
2011-03-03 22:04:17 +01:00
[pre-amble]
2021-05-18 21:01:42 +02:00
static const SettingTable _currency_settings{
2011-03-03 22:04:17 +01:00
[post-amble]
};
[templates]
2021-05-24 11:47:37 +02:00
SDT_VAR = SDT_VAR ($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
2021-05-24 09:44:20 +02:00
SDT_SSTR = SDT_SSTR($base, $var, $type, $flags, $guiflags, $def, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
2011-03-03 22:04:17 +01:00
2021-03-01 13:12:17 +01:00
[validation]
SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for $base.$var exceeds storage size");
2011-03-05 11:12:03 +01:00
[defaults]
2011-03-05 12:34:31 +01:00
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
2019-04-22 12:10:44 +02:00
guiflags = SGF_NONE
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 09:44:20 +02:00
pre_cb = nullptr
post_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 = false
2011-03-05 11:12:03 +01:00
2011-03-03 22:04:17 +01:00
[SDT_VAR]
base = CurrencySpec
var = rate
type = SLE_UINT16
def = 1
min = 0
max = UINT16_MAX
2021-04-28 16:46:24 +02:00
[SDT_SSTR]
2011-03-03 22:04:17 +01:00
base = CurrencySpec
var = separator
2021-04-28 16:46:24 +02:00
type = SLE_STRQ
2011-03-03 22:04:17 +01:00
def = "".""
2012-11-08 11:04:00 +01:00
cat = SC_BASIC
2011-03-03 22:04:17 +01:00
[SDT_VAR]
base = CurrencySpec
var = to_euro
type = SLE_INT32
def = 0
min = MIN_YEAR
max = MAX_YEAR
2021-04-28 16:46:24 +02:00
[SDT_SSTR]
2011-03-03 22:04:17 +01:00
base = CurrencySpec
var = prefix
2021-04-28 16:46:24 +02:00
type = SLE_STRQ
2019-04-11 13:24:02 +02:00
def = nullptr
2011-03-03 22:04:17 +01:00
2021-04-28 16:46:24 +02:00
[SDT_SSTR]
2011-03-03 22:04:17 +01:00
base = CurrencySpec
var = suffix
2021-04-28 16:46:24 +02:00
type = SLE_STRQ
2011-03-03 22:04:17 +01:00
def = "" credits""