From 585f88fc8174fd7ea0a9e5f0d3ee6ee9391e0a3b Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Wed, 28 Oct 2026 20:22:53 +0100 Subject: [PATCH] feat: TW-style map frame, minimap with view frame and centre-map form Co-Authored-By: Claude Opus 5.5 --- app/components/map/MiniMap.vue | 80 ++++++++++++++++++++++++++++ app/components/map/VillageMarker.vue | 6 +-- app/components/map/WorldMap.vue | 26 ++++----- app/pages/map/[worldId].vue | 64 +++++++++++++++------- i18n/pages/map.ts | 4 +- 5 files changed, 145 insertions(+), 35 deletions(-) create mode 100644 app/components/map/MiniMap.vue diff --git a/app/components/map/MiniMap.vue b/app/components/map/MiniMap.vue new file mode 100644 index 0000000..0739a96 --- /dev/null +++ b/app/components/map/MiniMap.vue @@ -0,0 +1,80 @@ + + + diff --git a/app/components/map/VillageMarker.vue b/app/components/map/VillageMarker.vue index b8599bc..23622a5 100644 --- a/app/components/map/VillageMarker.vue +++ b/app/components/map/VillageMarker.vue @@ -8,9 +8,9 @@ const props = defineProps<{ tier: 1 | 2 | 3; relation: MapRelation }>() const tones = computed(() => props.relation === 'barbarian' ? { wallLight: '#d6cfc2', wallDark: '#a99f90', roofLight: '#8e857a', roofDark: '#6c6459' } - : { wallLight: '#efdfbd', wallDark: '#c8ad84', roofLight: '#c2643a', roofDark: '#963f1d' }, + : { wallLight: '#e3cfa2', wallDark: '#b49870', roofLight: '#9c4a26', roofDark: '#73321a' }, ) -const flag = computed(() => ({ own: '#f2b705', player: '#c0392b', barbarian: '#7d7d7d' })[props.relation]) +const flag = computed(() => ({ own: '#d9b44a', player: '#962a1f', barbarian: '#8b9094' })[props.relation]) interface Hut { cx: number @@ -63,7 +63,7 @@ const pole = computed(() => {