|
|
@ -36,20 +36,20 @@ static const SettingTable _gameopt_settings{
|
|
|
|
[post-amble]
|
|
|
|
[post-amble]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
[templates]
|
|
|
|
[templates]
|
|
|
|
SDTG_LIST = SDTG_LIST($name, $type, $flags, $guiflags, $var, $def, $length, $from, $to, $cat, $extra, $startup),
|
|
|
|
SDTG_LIST = SDTG_LIST($name, $type, $flags, $guiflags, $var, $def, $length, $from, $to, $cat, $extra, $startup),
|
|
|
|
SDTG_VAR = SDTG_VAR($name, $type, $flags, $guiflags, $var, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
|
SDTG_VAR = SDTG_VAR($name, $type, $flags, $guiflags, $var, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
|
SDT_NULL = SDT_NULL( $length, $from, $to),
|
|
|
|
SDT_NULL = SDT_NULL( $length, $from, $to),
|
|
|
|
SDTC_OMANY = SDTC_OMANY( $var, $type, $flags, $guiflags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
|
SDTC_OMANY = SDTC_OMANY( $var, $type, $flags, $guiflags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
|
SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $guiflags, $var, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
|
SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $guiflags, $var, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
|
SDT_OMANY = SDT_OMANY($base, $var, $type, $flags, $guiflags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $load, $cat, $extra, $startup),
|
|
|
|
SDT_OMANY = SDT_OMANY(GameSettings, $var, $type, $flags, $guiflags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $load, $cat, $extra, $startup),
|
|
|
|
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),
|
|
|
|
SDT_VAR = SDT_VAR(GameSettings, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
|
|
|
|
|
|
|
|
|
[validation]
|
|
|
|
[validation]
|
|
|
|
SDTG_VAR = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
|
|
|
|
SDTG_VAR = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
|
|
|
|
SDTG_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
|
|
|
|
SDTG_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
|
|
|
|
SDTC_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
|
|
|
|
SDTC_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
|
|
|
|
SDT_OMANY = static_assert($max <= MAX_$type, "Maximum value for $base.$var exceeds storage size");
|
|
|
|
SDT_OMANY = static_assert($max <= MAX_$type, "Maximum value for GameSettings.$var exceeds storage size");
|
|
|
|
SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for $base.$var exceeds storage size");
|
|
|
|
SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for GameSettings.$var exceeds storage size");
|
|
|
|
|
|
|
|
|
|
|
|
[defaults]
|
|
|
|
[defaults]
|
|
|
|
flags = 0
|
|
|
|
flags = 0
|
|
|
@ -104,7 +104,6 @@ max = SP_CUSTOM
|
|
|
|
cat = SC_BASIC
|
|
|
|
cat = SC_BASIC
|
|
|
|
|
|
|
|
|
|
|
|
[SDT_OMANY]
|
|
|
|
[SDT_OMANY]
|
|
|
|
base = GameSettings
|
|
|
|
|
|
|
|
var = locale.currency
|
|
|
|
var = locale.currency
|
|
|
|
type = SLE_UINT8
|
|
|
|
type = SLE_UINT8
|
|
|
|
flags = SLF_NO_NETWORK_SYNC
|
|
|
|
flags = SLF_NO_NETWORK_SYNC
|
|
|
@ -126,7 +125,6 @@ cat = SC_BASIC
|
|
|
|
# There are only 21 predefined town_name values (0-20), but you can have more with newgrf action F so allow
|
|
|
|
# There are only 21 predefined town_name values (0-20), but you can have more with newgrf action F so allow
|
|
|
|
# these bigger values (21-255). Invalid values will fallback to english on use and (undefined string) in GUI.
|
|
|
|
# these bigger values (21-255). Invalid values will fallback to english on use and (undefined string) in GUI.
|
|
|
|
[SDT_OMANY]
|
|
|
|
[SDT_OMANY]
|
|
|
|
base = GameSettings
|
|
|
|
|
|
|
|
var = game_creation.town_name
|
|
|
|
var = game_creation.town_name
|
|
|
|
type = SLE_UINT8
|
|
|
|
type = SLE_UINT8
|
|
|
|
def = 0
|
|
|
|
def = 0
|
|
|
@ -135,7 +133,6 @@ full = _town_names
|
|
|
|
cat = SC_BASIC
|
|
|
|
cat = SC_BASIC
|
|
|
|
|
|
|
|
|
|
|
|
[SDT_OMANY]
|
|
|
|
[SDT_OMANY]
|
|
|
|
base = GameSettings
|
|
|
|
|
|
|
|
var = game_creation.landscape
|
|
|
|
var = game_creation.landscape
|
|
|
|
type = SLE_UINT8
|
|
|
|
type = SLE_UINT8
|
|
|
|
def = 0
|
|
|
|
def = 0
|
|
|
@ -145,7 +142,6 @@ load = ConvertLandscape
|
|
|
|
cat = SC_BASIC
|
|
|
|
cat = SC_BASIC
|
|
|
|
|
|
|
|
|
|
|
|
[SDT_VAR]
|
|
|
|
[SDT_VAR]
|
|
|
|
base = GameSettings
|
|
|
|
|
|
|
|
var = game_creation.snow_line_height
|
|
|
|
var = game_creation.snow_line_height
|
|
|
|
type = SLE_UINT8
|
|
|
|
type = SLE_UINT8
|
|
|
|
def = DEF_SNOWLINE_HEIGHT * TILE_HEIGHT
|
|
|
|
def = DEF_SNOWLINE_HEIGHT * TILE_HEIGHT
|
|
|
@ -174,7 +170,6 @@ full = _autosave_interval
|
|
|
|
cat = SC_BASIC
|
|
|
|
cat = SC_BASIC
|
|
|
|
|
|
|
|
|
|
|
|
[SDT_OMANY]
|
|
|
|
[SDT_OMANY]
|
|
|
|
base = GameSettings
|
|
|
|
|
|
|
|
var = vehicle.road_side
|
|
|
|
var = vehicle.road_side
|
|
|
|
type = SLE_UINT8
|
|
|
|
type = SLE_UINT8
|
|
|
|
def = 1
|
|
|
|
def = 1
|
|
|
|