import { manastormBubbleFillPercent } from "../game/manastormClientOverlay"; import { ManastormClientCueBridge } from "../game/ManastormClientCueBridge"; import { useManastormStore } from "../game/manastormStore"; import { useGameStore } from "../game/store"; export function ManastormClientOverlay() { const gameMode = useGameStore((state) => state.gameMode); const status = useManastormStore((state) => state.status); const countdown = useManastormStore( (state) => state.clientOverlay.nextWaveCountdownSeconds, ); const bubble = useManastormStore((state) => state.clientOverlay.safetyBubble); const visible = gameMode === "manastorm" && status !== "idle" && status !== "failed" && status !== "completed"; const showCountdown = visible && countdown !== null; const showBubble = visible && bubble.active; return ( <> {showCountdown || showBubble ? ( {showCountdown ? ( Next wave {countdown}s ) : null} {showBubble ? ( Safety bubble {bubble.distanceRemaining.toFixed(1)} yd ) : null} ) : null} > ); }
Next wave {countdown}s
Safety bubble {bubble.distanceRemaining.toFixed(1)} yd