chore(showcase): temporary removed custom music

This commit is contained in:
Haoyu Xu
2024-01-09 18:45:44 -05:00
parent a2976d1d00
commit 159dd4ac20
2 changed files with 12 additions and 9 deletions

View File

@@ -82,9 +82,9 @@ properties:
- key: notice_title - key: notice_title
value: value:
text: ui_notice_title text: ui_notice_title
- key: notice_changelog # - key: notice_changelog
value: # value:
text: ui_notice_changelog # text: ui_notice_changelog
- key: notice_set_fps - key: notice_set_fps
value: value:
text: ui_notice_set_fps text: ui_notice_set_fps
@@ -245,11 +245,12 @@ properties:
type: combo type: combo
value: !match ~{var('assets', "music")[0]} value: !match ~{var('assets', "music")[0]}
options: !match ~{var('assets', "musicOptions")} options: !match ~{var('assets', "musicOptions")}
- key: custom_music # - key: custom_music
value: # value:
text: ui_custom_music # text: ui_custom_music
type: file # condition: music_title.value == true
value: "" # type: file
# value: ""
- key: music_volume - key: music_volume
value: value:
text: ui_music_volume text: ui_music_volume

View File

@@ -100,8 +100,10 @@ export default class Music {
resetMusic() { resetMusic() {
this.#isUsingCustomMusic = false this.#isUsingCustomMusic = false
if (this.#useMusic) {
this.#playMusic() this.#playMusic()
} }
}
#playMusic() { #playMusic() {
if (!this.#isUsingCustomMusic) { if (!this.#isUsingCustomMusic) {