diff --git a/src/constants/sources.js b/src/constants/sources.js
index e22875f7..7fee89f4 100644
--- a/src/constants/sources.js
+++ b/src/constants/sources.js
@@ -16,6 +16,15 @@ export function getVideoSource(game, version) {
}
}
+export function getCustomizeVideoSource(game, version, type, file) {
+ if (version && game.videoTable?.includes(version)) {
+ const ASSET_PATH = import.meta.env.VITE_GAME_ASSET_PATH;
+ return `${ASSET_PATH}/customizations/${game.id}/${version}/${type}/${file}.mp4`;
+ } else {
+ return null;
+ }
+}
+
export function getCardStyle(game, version) {
if (game.videoTable?.includes(version)) {
return null;
diff --git a/src/views/Game/EditView.vue b/src/views/Game/EditView.vue
index ac7225b1..d4a42caa 100644
--- a/src/views/Game/EditView.vue
+++ b/src/views/Game/EditView.vue
@@ -125,7 +125,13 @@ async function updateProfile() {
-
+
-
+
{
return groups.reverse();
});
+
+const videoSource = computed(() => {
+ const custom = myProfile.value?.customize?.["3_1"] ?? null;
+
+ if (custom != null) {
+ return getCustomizeVideoSource(
+ thisGame,
+ versionForm.currentVersion,
+ "background",
+ custom,
+ );
+ }
+
+ return getVideoSource(thisGame, versionForm.currentVersion);
+});
@@ -468,7 +455,7 @@ const groupedTimeline = computed(() => {