diff --git a/public/data-sources/customizations/ddr/20/appeal.json b/public/data-sources/customizations/ddr/20/appeal.json index b58a44b..a090f14 100644 --- a/public/data-sources/customizations/ddr/20/appeal.json +++ b/public/data-sources/customizations/ddr/20/appeal.json @@ -4,6 +4,7 @@ "name": "Appeal Board", "help": "Choose your appeal board", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "プレーン (パターン1)" }, { "id": 2, "label": "プレーン (パターン2)" }, { "id": 3, "label": "プレーン (パターン3)" }, diff --git a/public/data-sources/customizations/ddr/20/gameplay.json b/public/data-sources/customizations/ddr/20/gameplay.json index 1878101..e8b99e2 100644 --- a/public/data-sources/customizations/ddr/20/gameplay.json +++ b/public/data-sources/customizations/ddr/20/gameplay.json @@ -4,6 +4,7 @@ "name": "Game Background (system)", "help": "Choose your system background", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "WORLD (パターン1)" }, { "id": 2, "label": "WORLD (パターン2)" }, { "id": 3, "label": "WORLD (パターン3)" }, @@ -66,6 +67,7 @@ "name": "Game Background (while playing music)", "help": "Choose your in-game system background", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "WORLD (パターン1)" }, { "id": 2, "label": "WORLD (パターン2)" }, { "id": 3, "label": "WORLD (パターン3)" }, @@ -128,6 +130,7 @@ "name": "System Character (left side)", "help": "Choose your system character for the left side", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "EMI" }, { "id": 2, "label": "RAGE" }, { "id": 3, "label": "ALICE" }, @@ -201,6 +204,7 @@ "name": "System Character (right side)", "help": "Choose your system character for the right side", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "EMI" }, { "id": 2, "label": "RAGE" }, { "id": 3, "label": "ALICE" }, @@ -274,6 +278,7 @@ "name": "Lane Cover (SINGLE)", "help": "Choose your lane cover for single play", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "WORLD" }, { "id": 2, "label": "EMI" }, { "id": 3, "label": "RAGE" }, @@ -383,6 +388,7 @@ "name": "Lane Cover (DOUBLE)", "help": "Choose your lane cover for double play", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "WORLD" }, { "id": 2, "label": "EMI" }, { "id": 3, "label": "RAGE" }, @@ -511,6 +517,7 @@ "name": "Lane Background (SINGLE)", "help": "Choose your lane background for single play", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "EMI" }, { "id": 2, "label": "RAGE" }, { "id": 3, "label": "ROCKET" }, @@ -600,6 +607,7 @@ "name": "Lane Background (DOUBLE)", "help": "Choose your lane background for double play", "options": [ + { "id": 9000, "label": "Blank" }, { "id": 1, "label": "EMI&RAGE" }, { "id": 2, "label": "EMI" }, { "id": 3, "label": "RAGE" }, diff --git a/src/components/Cards/DdrAppealCardBox.vue b/src/components/Cards/DdrAppealCardBox.vue index 4b0e06e..135f532 100644 --- a/src/components/Cards/DdrAppealCardBox.vue +++ b/src/components/Cards/DdrAppealCardBox.vue @@ -65,7 +65,8 @@ async function updateProfile() { function getUrl(type) { const ASSET_PATH = import.meta.env.VITE_GAME_ASSET_PATH; - const file = getNestedValue(optionForm.value, APPEAL_ID) ?? 1; + let file = getNestedValue(optionForm.value, APPEAL_ID) ?? 1; + if (file == 9000) file = 1; return `${ASSET_PATH}/customizations/ddr/${version.value}/${type}/${file}.avif`; } diff --git a/src/components/Cards/DdrCustomizeCardBox.vue b/src/components/Cards/DdrCustomizeCardBox.vue index 907035c..9ea9aaa 100644 --- a/src/components/Cards/DdrCustomizeCardBox.vue +++ b/src/components/Cards/DdrCustomizeCardBox.vue @@ -95,7 +95,8 @@ function getUrl(type, defaultFile = 1) { let typePath = type; if (type == "background_music") typePath = "background"; - const file = getNestedValue(optionForm.value, IDS[type]) ?? defaultFile; + let file = getNestedValue(optionForm.value, IDS[type]) ?? defaultFile; + if (file == 9000) file = defaultFile; return `${ASSET_PATH}/customizations/ddr/${version.value}/${typePath}/${file}.${extension}`; }