eternal patchy

This commit is contained in:
zkldi
2022-02-09 02:56:01 +00:00
parent e524b2f444
commit 5b1158bac2
5 changed files with 33 additions and 5 deletions
@@ -16,8 +16,8 @@ export default function PopnJudgementCell({
return (
<td>
<strong>
<span style={{ color: COLOUR_SET.vibrantYellow }}>{judgements.great}</span>-
<span style={{ color: COLOUR_SET.red }}>{judgements.good}</span>
<span style={{ color: COLOUR_SET.gold }}>{judgements.great}</span>-
<span style={{ color: COLOUR_SET.red }}>{judgements.good}</span>-
<span style={{ color: COLOUR_SET.blue }}>{judgements.bad}</span>
</strong>
</td>
@@ -0,0 +1,26 @@
import Muted from "components/util/Muted";
import React from "react";
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
import { ChangeOpacity } from "util/color-opacity";
export default function PopnLampCell({
score,
}: {
score: ScoreDocument<"popn:9B"> | PBScoreDocument<"popn:9B">;
}) {
const gptConfig = GetGamePTConfig(score.game, score.playtype);
return (
<td
style={{
backgroundColor: ChangeOpacity(gptConfig.lampColours[score.scoreData.lamp], 0.2),
}}
>
<strong>{score.scoreData.lamp}</strong>
<br />
<Muted>
TEMPORARY SCT STUFF: {score.scoreData.hitMeta.specificClearType ?? "Unknown"}
</Muted>
</td>
);
}
@@ -21,7 +21,8 @@ export default function TitleCell({
<td style={{ textAlign: "left", minWidth: "140px", maxWidth: "300px" }}>
{game === "popn" && (
<>
{(song as SongDocument<"popn">).data.genre === song.title ? (
{(song as SongDocument<"popn">).data.genre === song.title ||
(song as SongDocument<"popn">).data.genre === null ? (
<Muted>Unknown Genre</Muted>
) : (
(song as SongDocument<"popn">).data.genre
@@ -35,7 +35,7 @@ export default function WaccaJudgementCell({
<td>
<strong>
<span style={{ color: COLOUR_SET.vibrantYellow }}>{judgements.great}</span>-
<span style={{ color: COLOUR_SET.blue }}>{judgements.good}</span>
<span style={{ color: COLOUR_SET.blue }}>{judgements.good}</span>-
<span style={{ color: COLOUR_SET.red }}>{judgements.miss}</span>
</strong>
</td>
@@ -4,6 +4,7 @@ import { IsNullish } from "util/misc";
import LampCell from "../cells/LampCell";
import MillionsScoreCell from "../cells/MillionsScoreCell";
import PopnJudgementCell from "../cells/PopnJudgementCell";
import PopnLampCell from "../cells/PopnLampCell";
import WaccaJudgementCell from "../cells/WACCAJudgementCell";
export default function PopnCoreCells({
@@ -15,7 +16,7 @@ export default function PopnCoreCells({
<>
<MillionsScoreCell score={sc} />
<PopnJudgementCell score={sc} />
<LampCell score={sc} />
<PopnLampCell score={sc} />
<td>
{!IsNullish(sc.calculatedData.classPoints)
? sc.calculatedData.classPoints!.toFixed(3)