break_eternity
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import type Decimal from 'break_eternity.js';
|
||||
|
||||
interface Props {
|
||||
time: number;
|
||||
time: Decimal;
|
||||
onTick: () => void;
|
||||
onReset: () => void;
|
||||
onInitialize: () => void;
|
||||
@@ -13,7 +15,7 @@ export default function Topbar({ time, onTick, onReset, onInitialize }: Props) {
|
||||
<span>детерминированная тиковая симуляция</span>
|
||||
</h1>
|
||||
<div className="tick-counter">
|
||||
Время <b>{time}</b>
|
||||
Время <b>{time.toStringWithDecimalPlaces(4)}</b>
|
||||
</div>
|
||||
<div className="spacer" />
|
||||
<button className="btn" onClick={onInitialize}>
|
||||
|
||||
Reference in New Issue
Block a user