From 3f2698b77049a7f60c70c1dd0b4ea6a58bc1b026 Mon Sep 17 00:00:00 2001 From: SRG27 <59260202+SRG27@users.noreply.github.com> Date: Sun, 2 Jul 2023 00:13:22 +0200 Subject: [PATCH] Prevent user from placing a vertex in placePoint part of intro --- data/core.yaml | 2 +- modules/ui/intro/point.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/core.yaml b/data/core.yaml index 37e18ea696..66928ab3af 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -2169,7 +2169,7 @@ en: title: "Points" points_info: "*Points* can be used to represent features such as shops, restaurants, and monuments." add_point: "They mark a specific location, and describe what's there. **Press the {point_icon} {point} button to add a new point.**" - place_point: "To place the new point on the map, position your mouse cursor where the point should go, then {leftclick} left-click or press `{space}`. **Move the mouse pointer over this building, then left-click or press `{space}`.**" + place_point: "To place the new point on the map, position your mouse cursor where the point should go, then {leftclick} left-click or press `{space}`. **Move the mouse pointer inside the outline of this building, then left-click or press `{space}`.**" place_point_touch: "To place the new point on the map, {tap_icon} tap the location where it should go. **Tap the center of this building.**" search_cafe: "There are many different features that can be represented by points. The point you just added is a cafe. **Search for '{preset}'.**" choose_cafe: "**Choose {preset} from the list.**" diff --git a/modules/ui/intro/point.js b/modules/ui/intro/point.js index dd8918c1b8..bd8ad55eab 100644 --- a/modules/ui/intro/point.js +++ b/modules/ui/intro/point.js @@ -87,6 +87,7 @@ export function uiIntroPoint(context, reveal) { context.on('enter.intro', function(mode) { if (mode.id !== 'select') return chapter.restart(); _pointID = context.mode().selectedIDs()[0]; + if (context.graph().geometry(_pointID) === 'vertex') return chapter.restart(); continueTo(searchPreset); });