diff --git a/bridge/dovemere_gen.py b/bridge/dovemere_gen.py index 7b60e8cb..1271aafe 100644 --- a/bridge/dovemere_gen.py +++ b/bridge/dovemere_gen.py @@ -15,6 +15,10 @@ def main(): preferred_blitter=grf.NewGRF.BLITTER_BPP_32, ) + from bridge.lib.parameters import parameter_list + + parameter_list.add(g, s) + from bridge.bridges.dovemere import test g.add(test.the_bridge) diff --git a/bridge/lang/english-uk.lng b/bridge/lang/english-uk.lng index 5fb71fbb..2d1fc46f 100644 --- a/bridge/lang/english-uk.lng +++ b/bridge/lang/english-uk.lng @@ -1,3 +1,18 @@ ##grflangid 0x00 STR_GRF_NAME :AWBS - Ahyangyi's Wuhu Bridge Set STR_GRF_DESC :A bridge set based on bridges in Wuhu, Anhui, China. + +STR_PARAM_SPEED_LIMIT :Speed Limit +STR_PARAM_SPEED_LIMIT_DESC :The speed limit of the bridges{}{}Normal - Balanced against vanilla bridges +STR_PARAM_SPEED_LIMIT_SEVERE :SEVERE +STR_PARAM_SPEED_LIMIT_RESTRICTIVE :Restrictive +STR_PARAM_SPEED_LIMIT_NORMAL :Normal +STR_PARAM_SPEED_LIMIT_PERMISSIVE :Permissive +STR_PARAM_SPEED_LIMIT_FANTASY :Fantasy +STR_PARAM_SPEED_LIMIT_NO_LIMIT :No Limit + +STR_PARAM_NIGHT_MODE :Night mode +STR_PARAM_NIGHT_MODE_DESC :Use night graphics suitable for NightGFX +STR_PARAM_NIGHT_MODE_AUTO_DETECT:Auto Detect +STR_PARAM_NIGHT_MODE_DISABLED :Disabled +STR_PARAM_NIGHT_MODE_ENABLED :Enabled diff --git a/bridge/lib/parameters.py b/bridge/lib/parameters.py new file mode 100644 index 00000000..704566fb --- /dev/null +++ b/bridge/lib/parameters.py @@ -0,0 +1,20 @@ +from agrf.parameters import Parameter, ParameterList + + +parameter_list = ParameterList( + [ + Parameter( + "SPEED_LIMIT", + 2, + { + 0: "SEVERE", + 1: "RESTRICTIVE", + 2: "NORMAL", + 3: "PERMISSIVE", + 4: "FANTASY", + 5: "NO_LIMIT", + }, + ), + Parameter("NIGHT_MODE", 0, {0: "AUTO_DETECT", 1: "ENABLED", 2: "DISABLED"}), + ] +)