diff --git a/UI/FullScreenMessageBoxHandler.ts b/UI/FullScreenMessageBoxHandler.ts index 855eb62..b94595e 100644 --- a/UI/FullScreenMessageBoxHandler.ts +++ b/UI/FullScreenMessageBoxHandler.ts @@ -39,14 +39,14 @@ export class FullScreenMessageBox extends UIElement { this.returnToTheMap = new Combine([Translations.t.general.returnToTheMap.Clone().SetStyle("font-size:xx-large")]) - .SetStyle("background:#7ebc6f;" + + .SetStyle("background:var(--catch-detail-color);" + "position: fixed;" + "z-index: 10000;" + "bottom: 0;" + "left: 0;" + `height: ${FullScreenMessageBox._toTheMap_height};` + "width: 100vw;" + - "color: white;" + + "color: var(--catch-detail-color-contrast);" + "font-weight: bold;" + "pointer-events: all;" + "cursor: pointer;" + diff --git a/UI/Input/DirectionInput.ts b/UI/Input/DirectionInput.ts index d6399fd..f5c5c43 100644 --- a/UI/Input/DirectionInput.ts +++ b/UI/Input/DirectionInput.ts @@ -62,7 +62,11 @@ export default class DirectionInput extends InputElement { htmlElement.ontouchmove = (ev: TouchEvent) => { - console.log("Getting a touch", ev.touches[0].clientX, ev.touches[0].clientY) + onPosChange(ev.touches[0].clientX, ev.touches[0].clientY); + ev.preventDefault(); + } + + htmlElement.ontouchstart = (ev: TouchEvent) => { onPosChange(ev.touches[0].clientX, ev.touches[0].clientY); ev.preventDefault(); } diff --git a/assets/themes/benches/benches.json b/assets/themes/benches/benches.json index 8945da3..fef025e 100644 --- a/assets/themes/benches/benches.json +++ b/assets/themes/benches/benches.json @@ -190,6 +190,16 @@ "fr": "De quel matériau ce banc est-il fait ?" } }, + { + "question": { + "en": "In which direction are you looking when sitting on the bench?" + }, + "render": "When sitting on the bench, one looks towards {direction}*", + "freeform": { + "key": "direction", + "type": "direction" + } + }, { "render": { "en": "Colour: {colour}", @@ -297,7 +307,7 @@ "render": "8" }, "iconSize": { - "render": "20,20,center" + "render": "30,30,center" }, "color": { "render": "#00f" diff --git a/assets/themes/surveillance_cameras/cam.svg b/assets/themes/surveillance_cameras/cam.svg index dbe448f..d4f54e8 100644 --- a/assets/themes/surveillance_cameras/cam.svg +++ b/assets/themes/surveillance_cameras/cam.svg @@ -39,23 +39,17 @@ inkscape:window-height="1001" id="namedview8" showgrid="false" - inkscape:zoom="1.5733333" - inkscape:cx="-95.73727" - inkscape:cy="204.79067" + inkscape:zoom="4.4500586" + inkscape:cx="52.470633" + inkscape:cy="172.70315" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg6" /> - + style="fill:#000000;stroke:#ffffff;stroke-width:15;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + sodipodi:nodetypes="cccccccssccc" /> diff --git a/assets/themes/surveillance_cameras/dome.svg b/assets/themes/surveillance_cameras/dome.svg index 28d0e32..389759d 100644 --- a/assets/themes/surveillance_cameras/dome.svg +++ b/assets/themes/surveillance_cameras/dome.svg @@ -7,8 +7,8 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="292.05588" - height="159.1156" + width="300" + height="300" version="1.1" id="svg6" sodipodi:docname="dome.svg" @@ -40,33 +40,27 @@ id="namedview8" showgrid="false" inkscape:zoom="1.5733334" - inkscape:cx="37.492305" - inkscape:cy="-39.615653" + inkscape:cx="84.526201" + inkscape:cy="188.2981" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg6" /> - - - - - \ No newline at end of file + + + + + + image/svg+xml + + + + + + + + + diff --git a/assets/themes/surveillance_cameras/surveillance_cameras.json b/assets/themes/surveillance_cameras/surveillance_cameras.json index 67bd8c5..c502120 100644 --- a/assets/themes/surveillance_cameras/surveillance_cameras.json +++ b/assets/themes/surveillance_cameras/surveillance_cameras.json @@ -102,6 +102,7 @@ "nl": "Naar welke geografische richting filmt deze camera?" }, "render": "Films to {camera:direction}", + "condition": "camera:type!=dome", "freeform": { "key": "camera:direction", "type": "direction" @@ -277,13 +278,19 @@ ], "hideUnderlayingFeaturesMinPercentage": 0, "icon": { - "render": "./assets/themes/surveillance_cameras/logo.svg" + "render": "./assets/themes/surveillance_cameras/cam.svg", + "mappings": [ + { + "if": "camera:type=dome", + "then": "./assets/themes/surveillance_cameras/dome.svg" + } + ] }, "width": { "render": "8" }, "iconSize": { - "render": "30,30,center" + "render": "50,50,center" }, "color": { "render": "#00f"