From f1e5f177bf8b995d57c329558e08c228de8c875f Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 23 Apr 2022 22:13:56 -0500 Subject: [PATCH] Made projEntry default display avoid rendering things rather than hiding them --- src/data/projEntry.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index aa10cd7..21f96c5 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -44,19 +44,19 @@ export const main = createLayer("main", () => { links: tree.links, display: jsx(() => ( <> -
Game Paused
-
- Dev Speed: {format(player.devSpeed || 0)}x -
-
- Offline Time: {formatTime(player.offlineTime || 0)} -
+ {player.devSpeed === 0 ?
Game Paused
: null} + {player.devSpeed && player.devSpeed !== 1 ? ( +
Dev Speed: {format(player.devSpeed || 0)}x
+ ) : null} + {player.offlineTime != undefined ? ( +
Offline Time: {formatTime(player.offlineTime || 0)}
+ ) : null}
- You have + {Decimal.lt(points.value, "1e1000") ? You have : null}

{format(points.value)}

- points + {Decimal.lt(points.value, "1e1e6") ? points : null}
-
({oomps.value})
+ {Decimal.gt(pointGain.value, 0) ?
({oomps.value})
: null} {render(tree)}