mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
fix: routes (v1.104.3)
This commit is contained in:
parent
3d1f268003
commit
5904e9e7c6
9 changed files with 98 additions and 65 deletions
|
|
@ -153,9 +153,11 @@ function showMapTooltip(point, e, i, g) {
|
|||
|
||||
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");
|
||||
const route = pack.routes.find(route => route.i === routeId);
|
||||
if (route) {
|
||||
if (route.name) return tip(`${route.name}. Click to edit the Route`);
|
||||
return tip("Click to edit the Route");
|
||||
}
|
||||
}
|
||||
|
||||
if (group === "terrain") return tip("Click to edit the Relief Icon");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue