From 352036651c6ee3c145b9fa84fbf425899b485b12 Mon Sep 17 00:00:00 2001 From: arch0345 Date: Fri, 30 May 2025 00:36:19 -0700 Subject: [PATCH] Try splitting into regional fields --- .../{whistle.json => whistle_optional.json} | 9 +++++++-- data/fields/crossing/whistle_yes.json | 20 +++++++++++++++++++ data/presets/railway/crossing.json | 3 ++- data/presets/railway/level_crossing.json | 3 ++- 4 files changed, 31 insertions(+), 4 deletions(-) rename data/fields/crossing/{whistle.json => whistle_optional.json} (64%) create mode 100644 data/fields/crossing/whistle_yes.json diff --git a/data/fields/crossing/whistle.json b/data/fields/crossing/whistle_optional.json similarity index 64% rename from data/fields/crossing/whistle.json rename to data/fields/crossing/whistle_optional.json index 9bc1109a..a9a397e4 100644 --- a/data/fields/crossing/whistle.json +++ b/data/fields/crossing/whistle_optional.json @@ -2,13 +2,18 @@ "key": "crossing:whistle", "type": "combo", "label": "Train Horn", + "placeholder": "Only as Needed", "strings": { "options": { "yes": "Mandatory", - "optional": "Only as Needed", "wayside": "Wayside/Stationary Horn" } }, "autoSuggestions": false, - "customValues": false + "customValues": false, + "locationSet": { + "include": [ + "150" + ] + } } diff --git a/data/fields/crossing/whistle_yes.json b/data/fields/crossing/whistle_yes.json new file mode 100644 index 00000000..614f6fab --- /dev/null +++ b/data/fields/crossing/whistle_yes.json @@ -0,0 +1,20 @@ +{ + "key": "crossing:whistle", + "type": "combo", + "label": "Train Horn", + "placeholder": "Mandatory", + "strings": { + "options": { + "optional": "Only as Needed", + "wayside": "Wayside/Stationary Horn" + } + }, + "autoSuggestions": false, + "customValues": false, + "locationSet": { + "include": [ + "ca", + "us" + ] + } +} diff --git a/data/presets/railway/crossing.json b/data/presets/railway/crossing.json index d5035b88..2055cc50 100644 --- a/data/presets/railway/crossing.json +++ b/data/presets/railway/crossing.json @@ -8,7 +8,8 @@ ], "moreFields": [ "crossing/markings", - "crossing/whistle" + "crossing/whistle_optional", + "crossing/whistle_yes" ], "geometry": [ "vertex" diff --git a/data/presets/railway/level_crossing.json b/data/presets/railway/level_crossing.json index 66152407..7cbf4476 100644 --- a/data/presets/railway/level_crossing.json +++ b/data/presets/railway/level_crossing.json @@ -6,7 +6,8 @@ "crossing/light" ], "moreFields": [ - "crossing/whistle" + "crossing/whistle_optional", + "crossing/whistle_yes" ], "geometry": [ "vertex"