Themes(shops): revert to ID-presets for icons, add "vacant" as shop option

This commit is contained in:
Pieter Vander Vennet 2025-01-17 14:25:12 +01:00
parent f4267dd432
commit 622049f21f

View file

@ -108,7 +108,7 @@
}, },
{ {
"icon": { "icon": {
"builtin": "nsi_brand.icon", "builtin": "id_presets.shop_rendering",
"override": { "override": {
"render": "./assets/layers/id_presets/maki-shop.svg", "render": "./assets/layers/id_presets/maki-shop.svg",
"+mappings": [ "+mappings": [
@ -316,6 +316,27 @@
} }
} }
], ],
"mappings+": [
{
"if": "disused:shop:={shop}",
"then": {
"en": "This shop is no longer used. It is vacant",
"nl": "Deze winkel staat leeg"
},
"icon": "./assets/layers/shops/shop-disused.svg",
"addExtraTags": [
"shop="
],
"alsoShowIf": {
"or": [
"shop=disused",
"shop=vacant",
"disused:shop~*",
"abandoned:shop~*"
]
}
}
],
"condition": "craft=", "condition": "craft=",
"invalidValues": "shop=yes", "invalidValues": "shop=yes",
"filter": true "filter": true