Implement live game clock and simulation controls; enhance API with clock update functionality and improve world summary with clock data; update UI to display simulation controls and integrate clock features into the game experience.
This commit is contained in:
@@ -85,6 +85,22 @@
|
||||
←
|
||||
</button>
|
||||
<span id="world-title" class="game-bar__title"></span>
|
||||
<div id="sim-controls" class="sim-controls" hidden>
|
||||
<span id="game-clock" class="sim-controls__clock" aria-live="polite"></span>
|
||||
<button
|
||||
id="play-pause"
|
||||
type="button"
|
||||
class="icon-button"
|
||||
title="Pause"
|
||||
aria-label="Pause"
|
||||
>⏸</button>
|
||||
<div class="sim-controls__speeds" role="group" aria-label="Simulation speed">
|
||||
<button type="button" class="speed-button" data-scale="1">x1</button>
|
||||
<button type="button" class="speed-button" data-scale="2">x2</button>
|
||||
<button type="button" class="speed-button" data-scale="3">x3</button>
|
||||
<button type="button" class="speed-button" data-scale="4">x4</button>
|
||||
</div>
|
||||
</div>
|
||||
<button id="game-theme-toggle" type="button" class="icon-button" title="Switch theme" aria-label="Switch theme">
|
||||
☾
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user