Replace tunnel_waterway combo with structure_water radio

(closes #4384)

- adds the `layer` field so it works like the structure field on highways
- also defaults the tunnel type to `culvert` for waterways
- also fixed so that `layer` gets removed if user changes types or clicks delete
This commit is contained in:
Bryan Housel
2017-10-02 11:24:59 -04:00
parent 7376787c44
commit 2b47ac4b3e
12 changed files with 70 additions and 32 deletions
+8 -3
View File
@@ -1298,6 +1298,14 @@ en:
tunnel: Tunnel
# structure field placeholder
placeholder: Unknown
structure_waterway:
# tunnel=*
label: Structure
options:
# tunnel=yes
tunnel: Tunnel
# structure_waterway field placeholder
placeholder: Unknown
studio:
# studio=*
label: Type
@@ -1424,9 +1432,6 @@ en:
label: Type
# tunnel field placeholder
placeholder: Default
tunnel_waterway:
# tunnel=*
label: Tunnel
vending:
# vending=*
label: Type of Goods
+13 -5
View File
@@ -1750,6 +1750,19 @@
}
}
},
"structure_waterway": {
"type": "structureRadio",
"keys": [
"tunnel"
],
"label": "Structure",
"placeholder": "Unknown",
"strings": {
"options": {
"tunnel": "Tunnel"
}
}
},
"structure": {
"type": "structureRadio",
"keys": [
@@ -1929,11 +1942,6 @@
"type": "semiCombo",
"label": "Trees"
},
"tunnel_waterway": {
"key": "tunnel",
"type": "combo",
"label": "Tunnel"
},
"tunnel": {
"key": "tunnel",
"type": "typeCombo",
@@ -0,0 +1,13 @@
{
"type": "structureRadio",
"keys": [
"tunnel"
],
"label": "Structure",
"placeholder": "Unknown",
"strings": {
"options": {
"tunnel": "Tunnel"
}
}
}
-5
View File
@@ -1,5 +0,0 @@
{
"key": "tunnel",
"type": "combo",
"label": "Tunnel"
}
+5 -5
View File
@@ -15987,7 +15987,7 @@
"waterway/ditch": {
"icon": "waterway-ditch",
"fields": [
"tunnel_waterway",
"structure_waterway",
"intermittent"
],
"geometry": [
@@ -16024,7 +16024,7 @@
"waterway/drain": {
"icon": "waterway-stream",
"fields": [
"tunnel_waterway",
"structure_waterway",
"intermittent"
],
"geometry": [
@@ -16063,7 +16063,7 @@
"icon": "waterway-river",
"fields": [
"name",
"tunnel_waterway",
"structure_waterway",
"width",
"intermittent"
],
@@ -16135,7 +16135,7 @@
"icon": "waterway-stream",
"fields": [
"name",
"tunnel_waterway",
"structure_waterway",
"width",
"intermittent"
],
@@ -16178,7 +16178,7 @@
"icon": "waterway-stream",
"fields": [
"name",
"tunnel_waterway",
"structure_waterway",
"width",
"intermittent"
],
+1 -1
View File
@@ -1,7 +1,7 @@
{
"icon": "waterway-ditch",
"fields": [
"tunnel_waterway",
"structure_waterway",
"intermittent"
],
"geometry": [
+1 -1
View File
@@ -1,7 +1,7 @@
{
"icon": "waterway-stream",
"fields": [
"tunnel_waterway",
"structure_waterway",
"intermittent"
],
"geometry": [
+1 -1
View File
@@ -2,7 +2,7 @@
"icon": "waterway-river",
"fields": [
"name",
"tunnel_waterway",
"structure_waterway",
"width",
"intermittent"
],
+1 -1
View File
@@ -2,7 +2,7 @@
"icon": "waterway-stream",
"fields": [
"name",
"tunnel_waterway",
"structure_waterway",
"width",
"intermittent"
],
@@ -2,7 +2,7 @@
"icon": "waterway-stream",
"fields": [
"name",
"tunnel_waterway",
"structure_waterway",
"width",
"intermittent"
],