From d0c9537cca23119fec9c49e324efc34899493035 Mon Sep 17 00:00:00 2001 From: coyotte508 Date: Fri, 2 Oct 2026 01:38:31 +0200 Subject: [PATCH] Support custom player colours across the Container viewer --- viewer/src/components/Game.vue | 24 ++++++++++++++++++------ viewer/src/components/PlayerBoard.vue | 4 +++- viewer/src/game-chat.ts | 7 +++++-- viewer/src/journal-pieces.ts | 9 ++++++++- viewer/src/player-colors.ts | 18 ++++++++++++++++++ viewer/src/types/ui-data.ts | 2 +- 6 files changed, 53 insertions(+), 11 deletions(-) create mode 100644 viewer/src/player-colors.ts diff --git a/viewer/src/components/Game.vue b/viewer/src/components/Game.vue index e2bf0bb..8c255bf 100644 --- a/viewer/src/components/Game.vue +++ b/viewer/src/components/Game.vue @@ -191,7 +191,7 @@ :owner="ship.owner" :ownerName="G.players[ship.owner].name" :position="ship.position" - :color="ship.color" + :color="playerColors[ship.owner]" />