From 226e8d5c02679bdd8f44ddb8dd83fd6c30207999 Mon Sep 17 00:00:00 2001 From: jbob0 Date: Fri, 16 Oct 2026 00:45:50 -0400 Subject: [PATCH] Overview: set the time of day and weather on the match in progress The setWeather action and PUT /v1/world/lighting were wired up, and the README lists weather under Match control, but nothing in the panel called it. A picker beside the match controls now does, from the catalog's lightings, gated on match.control like the buttons above it. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_014Sk6xT19yJxWU5eEsSUG6V --- src/routes/(app)/server/[id]/+page.svelte | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/routes/(app)/server/[id]/+page.svelte b/src/routes/(app)/server/[id]/+page.svelte index c2390221..05a00460 100644 --- a/src/routes/(app)/server/[id]/+page.svelte +++ b/src/routes/(app)/server/[id]/+page.svelte @@ -43,6 +43,8 @@ let teamFilter = $state(''); let now = $state(Date.now()); let showPicker = $state(false); + /** the time of day & weather to set on the match in progress; '' until one is picked */ + let weather = $state(''); let broadcast = $state(''); /** who the message goes to: '' is everyone (a broadcast), else a faction (a whisper to each on it) */ let to = $state(''); @@ -424,6 +426,25 @@ ? 'Both travel when the match-end screen finishes, not when the button is pressed.' : 'You have view-only access to this server.'}

+
{ + e.preventDefault(); + void act('setWeather', { lighting: weather }, { after: refreshStatus }); + }} + > + +
+ + +
+

Changes the match in progress at once; the map does not reload.

+
{