From 159dd4ac20eed8633056b136c228c1c9bde11afd Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Tue, 9 Jan 2024 18:45:44 -0500 Subject: [PATCH] chore(showcase): temporary removed custom music --- config/_project_json.yaml | 17 +++++++++-------- src/components/music.js | 4 +++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/config/_project_json.yaml b/config/_project_json.yaml index ef7f3c2..808a373 100644 --- a/config/_project_json.yaml +++ b/config/_project_json.yaml @@ -82,9 +82,9 @@ properties: - key: notice_title value: text: ui_notice_title - - key: notice_changelog - value: - text: ui_notice_changelog + # - key: notice_changelog + # value: + # text: ui_notice_changelog - key: notice_set_fps value: text: ui_notice_set_fps @@ -245,11 +245,12 @@ properties: type: combo value: !match ~{var('assets', "music")[0]} options: !match ~{var('assets', "musicOptions")} - - key: custom_music - value: - text: ui_custom_music - type: file - value: "" + # - key: custom_music + # value: + # text: ui_custom_music + # condition: music_title.value == true + # type: file + # value: "" - key: music_volume value: text: ui_music_volume diff --git a/src/components/music.js b/src/components/music.js index c645732..c529fcb 100644 --- a/src/components/music.js +++ b/src/components/music.js @@ -100,7 +100,9 @@ export default class Music { resetMusic() { this.#isUsingCustomMusic = false - this.#playMusic() + if (this.#useMusic) { + this.#playMusic() + } } #playMusic() {