Files
zkldi_Tachi/client/src/components/tables/dropdowns/GPTDropdownSettings.tsx
T
nairobi 1148a5fdff feat(client): chunithm graphs, song durations (#1284)
* feat: chunithm score graph

* feat: add life

* feat: add song duration data for all songs

* fix: make chunithm graphs non-nullable

* fix: test data

* fix: potrząsanie kanalizacją

* fix: misleading old function name

* fix: make duration optional for chunithm

* fix: add the missing duration
2025-04-29 20:33:49 +01:00

46 lines
1.4 KiB
TypeScript

import { Game, Playtype } from "tachi-common";
import { BMSGraphsComponent } from "./components/BMSScoreDropdownParts";
import { IIDXGraphsComponent } from "./components/IIDXScoreDropdownParts";
import { ITGGraphsComponent } from "./components/ITGScoreDropdownParts";
import { JubeatGraphsComponent } from "./components/JubeatScoreDropdownParts";
import { OngekiGraphsComponent } from "./components/OngekiScoreDropdownParts";
import { ChunithmGraphsComponent } from "./components/ChunithmScoreDropdownParts";
export function GPTDropdownSettings(game: Game, playtype: Playtype): any {
if (game === "iidx") {
return {
renderScoreInfo: true,
// let the record show that i tried fixing this
// for a while, but gave up.
GraphComponent: IIDXGraphsComponent as any,
};
} else if (game === "bms") {
return {
renderScoreInfo: true,
GraphComponent: BMSGraphsComponent as any,
};
} else if (game === "itg") {
return {
renderScoreInfo: true,
GraphComponent: ITGGraphsComponent as any,
};
} else if (game === "jubeat") {
return {
renderScoreInfo: true,
GraphComponent: JubeatGraphsComponent as any,
};
} else if (game === "ongeki") {
return {
renderScoreInfo: true,
GraphComponent: OngekiGraphsComponent as any,
};
} else if (game === "chunithm") {
return {
renderScoreInfo: true,
GraphComponent: ChunithmGraphsComponent as any,
};
}
return {};
}