Made projEntry default display avoid rendering things rather than hiding them

This commit is contained in:
thepaperpilot 2022-04-23 22:13:56 -05:00
parent 1e276adce5
commit f1e5f177bf

View file

@ -44,19 +44,19 @@ export const main = createLayer("main", () => {
links: tree.links, links: tree.links,
display: jsx(() => ( display: jsx(() => (
<> <>
<div v-show={player.devSpeed === 0}>Game Paused</div> {player.devSpeed === 0 ? <div>Game Paused</div> : null}
<div v-show={player.devSpeed && player.devSpeed !== 1}> {player.devSpeed && player.devSpeed !== 1 ? (
Dev Speed: {format(player.devSpeed || 0)}x <div>Dev Speed: {format(player.devSpeed || 0)}x</div>
</div> ) : null}
<div v-show={player.offlineTime != undefined}> {player.offlineTime != undefined ? (
Offline Time: {formatTime(player.offlineTime || 0)} <div>Offline Time: {formatTime(player.offlineTime || 0)}</div>
</div> ) : null}
<div> <div>
<span v-show={Decimal.lt(points.value, "1e1000")}>You have </span> {Decimal.lt(points.value, "1e1000") ? <span>You have </span> : null}
<h2>{format(points.value)}</h2> <h2>{format(points.value)}</h2>
<span v-show={Decimal.lt(points.value, "1e1e6")}> points</span> {Decimal.lt(points.value, "1e1e6") ? <span> points</span> : null}
</div> </div>
<div v-show={Decimal.gt(pointGain.value, 0)}>({oomps.value})</div> {Decimal.gt(pointGain.value, 0) ? <div>({oomps.value})</div> : null}
<Spacer /> <Spacer />
{render(tree)} {render(tree)}
</> </>