|
@@ -20,13 +20,12 @@ static_assert(_locale_currencies.size()
|
|
|
static const SettingVariant _locale_settings_table[] = {
|
|
|
[post-amble]
|
|
|
};
|
|
|
[templates]
|
|
|
SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $var, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $str_cb, $help_cb, $val_cb, $from, $to, $cat, $extra, $startup),
|
|
|
SDT_OMANY = SDT_OMANY(GameSettings, $var, $type, $flags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $str_cb, $help_cb, $val_cb, $from, $to, $load, $cat, $extra, $startup),
|
|
|
SDT_SSTR = SDT_SSTR(GameSettings, $var, $type, $flags, $def, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
|
|
|
[validation]
|
|
|
SDTG_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
|
|
|
SDT_OMANY = static_assert($max <= MAX_$type, "Maximum value for GameSettings.$var exceeds storage size");
|
|
|
|
|
|
[defaults]
|
|
@@ -166,33 +165,6 @@ max = 2
|
|
|
full = _locale_units
|
|
|
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
|
|
cat = SC_BASIC
|
|
|
str = STR_CONFIG_SETTING_LOCALISATION_UNITS_HEIGHT
|
|
|
strhelp = STR_CONFIG_SETTING_LOCALISATION_UNITS_HEIGHT_HELPTEXT
|
|
|
strval = STR_CONFIG_SETTING_LOCALISATION_UNITS_HEIGHT_IMPERIAL
|
|
|
|
|
|
[SDT_SSTR]
|
|
|
var = locale.digit_group_separator
|
|
|
type = SLE_STRQ
|
|
|
from = SLV_118
|
|
|
flags = SF_NO_NETWORK_SYNC
|
|
|
def = nullptr
|
|
|
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
|
|
cat = SC_BASIC
|
|
|
|
|
|
[SDT_SSTR]
|
|
|
var = locale.digit_group_separator_currency
|
|
|
type = SLE_STRQ
|
|
|
from = SLV_118
|
|
|
flags = SF_NO_NETWORK_SYNC
|
|
|
def = nullptr
|
|
|
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
|
|
cat = SC_BASIC
|
|
|
|
|
|
[SDT_SSTR]
|
|
|
var = locale.digit_decimal_separator
|
|
|
type = SLE_STRQ
|
|
|
from = SLV_126
|
|
|
flags = SF_NO_NETWORK_SYNC
|
|
|
def = nullptr
|
|
|
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
|
|
cat = SC_BASIC
|