From cbacf9ea5e34a17a8595f5e6095dd3c1a0f10606 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 20:52:23 +0200 Subject: [PATCH] Enhance clock display and add controls for editor simulation in App.tsx --- src/app/App.tsx | 60 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 6 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 9626e0b2..459b8561 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -11241,15 +11241,63 @@ export function App({ store, initialStatusMessage }: AppProps) {
Clock
- Day {editorState.projectDocument.time.startDayNumber} ·{" "} - {formatTimeOfDayHours( - editorState.projectDocument.time.startTimeOfDayHours - )} + Day {editorSimulationClock.dayCount + 1} ·{" "} + {formatTimeOfDayHours(editorSimulationClock.timeOfDayHours)} ·{" "} + {formatRuntimeDayPhaseLabel(editorSimulationTimeState.dayPhase)}
- Runner sessions begin on the authored start day and time, - then keep advancing across scene transitions. + {editorSimulationClockOverride === null + ? "The editor viewport follows the authored project start day and time." + : editorSimulationPlaying + ? "The editor viewport is running on an overridden clock." + : "The editor viewport is paused on an overridden clock."}
+ {editorSimulationClockOverride === null ? null : ( +
+ Authored start: Day{" "} + {editorState.projectDocument.time.startDayNumber} ·{" "} + {formatTimeOfDayHours( + editorState.projectDocument.time.startTimeOfDayHours + )} +
+ )} +
+ + + + +
+ {editorSimulationMessage === null ? null : ( +
{editorSimulationMessage}
+ )}