diff --git a/src/components/Cards/ProfileCard.vue b/src/components/Cards/ProfileCard.vue index 605a593..f076bf2 100644 --- a/src/components/Cards/ProfileCard.vue +++ b/src/components/Cards/ProfileCard.vue @@ -7,6 +7,7 @@ import UserEmblem from "@/components/UserEmblem.vue"; import UserQpro from "@/components/UserQpro.vue"; import { getGitadoraColor, getJubilityColor } from "@/constants/skillColor.js"; import { getFlareLevel } from "@/helpers/flare"; +const GAME_ASSET_PATH = import.meta.env.VITE_GAME_ASSET_PATH; const props = defineProps({ game: { @@ -89,7 +90,7 @@ onMounted(async () => { + +
diff --git a/src/constants/index.js b/src/constants/index.js index bbab344..1044437 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -1928,6 +1928,7 @@ export const gameData = [ icon: `${ASSET_PATH}/icon/popn.webp`, cardBG: `${ASSET_PATH}/card/popn.webp`, assetId: "popn", + playerChara: true, useUnicode: true, maxLength: 6, gameOptions: PopnMusicOptions, diff --git a/src/views/Game/GameView.vue b/src/views/Game/GameView.vue index 3cdf962..ef20a7f 100644 --- a/src/views/Game/GameView.vue +++ b/src/views/Game/GameView.vue @@ -16,7 +16,7 @@ import SongCardSmall from "@/components/Cards/SongCardSmall.vue"; import { APIGetProfile, APIGetGame } from "@/stores/api/profile"; import { APIGetMusicData } from "@/stores/api/music"; -import { getGameInfo } from "@/constants"; +import { GameConstants, getGameInfo } from "@/constants"; import { dashCode } from "@/constants/userData"; import { getIIDXDan } from "@/constants/danClass"; import { formatSortableDate } from "@/constants/date"; @@ -107,6 +107,14 @@ async function loadProfile() { } const headers = []; +if (thisGame.playerChara) { + headers.push({ + text: "Chara", + value: "chara", + width: 10, + }); +} + headers.push({ text: "Player", value: "username", @@ -440,6 +448,7 @@ function formatHitchart(data) {