mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
feat: routes - show name in tooltip
This commit is contained in:
parent
4e79e020e8
commit
fc9bc73600
1 changed files with 6 additions and 1 deletions
|
|
@ -151,7 +151,12 @@ function showMapTooltip(point, e, i, g) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (group === "routes") return tip("Click to edit the Route");
|
if (group === "routes") {
|
||||||
|
const routeId = +e.target.id.slice(5);
|
||||||
|
const name = pack.routes[routeId]?.name;
|
||||||
|
if (name) return tip(`${name}. Click to edit the Route`);
|
||||||
|
return tip("Click to edit the Route");
|
||||||
|
}
|
||||||
|
|
||||||
if (group === "terrain") return tip("Click to edit the Relief Icon");
|
if (group === "terrain") return tip("Click to edit the Relief Icon");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue