From d9d48160be03d813bb7d9af6e6ba63ad26cc2bc7 Mon Sep 17 00:00:00 2001 From: Michael Moore Date: Tue, 3 Sep 2024 12:52:44 -0500 Subject: [PATCH] feat(map,ui): add clickable hyperlane links to system maps --- src/renderer/src/intl/en-US.ts | 1 + src/renderer/src/lib/map/MapContainer.svelte | 3 + .../map/solarSystemMap/SolarSystemMap.svelte | 122 +++++++++++++++--- src/renderer/src/lib/settings/mapSettings.ts | 2 + .../src/lib/settings/mapSettingsConfig.ts | 4 + 5 files changed, 117 insertions(+), 15 deletions(-) diff --git a/src/renderer/src/intl/en-US.ts b/src/renderer/src/intl/en-US.ts index 9485035..0e1e8ff 100644 --- a/src/renderer/src/intl/en-US.ts +++ b/src/renderer/src/intl/en-US.ts @@ -424,6 +424,7 @@ export default { systemMapLabelPlanetsEnabled: 'Planet Names Enabled', systemMapLabelMoonsEnabled: 'Moon Names Enabled', systemMapLabelAsteroidsEnabled: 'Asteroid Names Enabled', + systemMapHyperlanesEnabled: 'Hyperlane Connections Enabled', appLocale: 'StellarMaps Language', appLocale_tooltip: 'Join the Discord server (link in the top bar) if you want to help translate!', diff --git a/src/renderer/src/lib/map/MapContainer.svelte b/src/renderer/src/lib/map/MapContainer.svelte index 4419163..09f7c20 100644 --- a/src/renderer/src/lib/map/MapContainer.svelte +++ b/src/renderer/src/lib/map/MapContainer.svelte @@ -486,6 +486,9 @@ gameState={gameStateOrNull} system={openedSystem} colors={colorsOrNull} + onSystemSelected={(system) => { + openedSystem = system; + }} /> {/if} diff --git a/src/renderer/src/lib/map/solarSystemMap/SolarSystemMap.svelte b/src/renderer/src/lib/map/solarSystemMap/SolarSystemMap.svelte index 05a1617..f3cbd96 100644 --- a/src/renderer/src/lib/map/solarSystemMap/SolarSystemMap.svelte +++ b/src/renderer/src/lib/map/solarSystemMap/SolarSystemMap.svelte @@ -1,6 +1,6 @@