mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-13 17:58:42 +03:00
* 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
46 lines
1.4 KiB
TypeScript
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 {};
|
|
}
|