feat(showcase): add music

This commit is contained in:
Haoyu Xu
2023-03-15 21:27:34 -04:00
parent cf933d6a56
commit f3aa867e00
24 changed files with 449 additions and 166 deletions

View File

@@ -32,6 +32,11 @@ localization:
ui_privacy_title: <hr><h4>📜 Privacy</h4><hr>
ui_privacy_text: <span><b>Check out our privacy policy at https://privacy.halyul.dev</b></span>
ui_privacy_do_not_track: Send usage data
ui_music_title: <hr><h4>📝 Music</h4><hr>
ui_music_notice: <span><b>Please adjust the 'Offset' value if you notice audio cutoff</b></span>
ui_music_selection: Music
ui_music_volume: Volume
ui_music_offset: Offset
zh-chs:
ui_notice_title: <hr><h4>📝 通知</h4><hr>
ui_notice_changelog: <span><b>现在支持干员语音! </b></span>
@@ -64,6 +69,11 @@ localization:
ui_privacy_title: <hr><h4>📜 隐私</h4><hr>
ui_privacy_text: <span><b>在 https://privacy.halyul.dev 查看我们的隐私政策</b></span>
ui_privacy_do_not_track: 发送使用数据
ui_music_title: <hr><h4>🎵 音乐</h4><hr>
ui_music_notice: <span><b>如若发现音频截止,请调节 '弥补' 数值</b></span>
ui_music_selection: 音乐
ui_music_volume: 音量
ui_music_offset: 弥补
properties:
- key: notice_title
value:
@@ -106,8 +116,8 @@ properties:
fraction: true
max: 100
min: 0
precision: 2
step: 0.1
precision: 1
- key: logoopacity
value:
text: ui_logo_opacity
@@ -214,6 +224,42 @@ properties:
condition: voicesubtitle.value == true
type: bool
value: false
- key: music_title
value:
text: ui_music_title
type: bool
value: false
- key: music_notice
value:
text: ui_music_notice
condition: music_title.value == true
- key: music_selection
value:
text: ui_music_selection
condition: music_title.value == true
type: combo
value: !match ~{var('assets', "music")[0]}
options: !match ~{var('assets', "musicOptions")}
- key: music_volume
value:
text: ui_music_volume
type: slider
value: 50
condition: music_title.value == true
fraction: false
max: 100
min: 0
- key: music_offset
value:
text: ui_music_offset
type: slider
value: 0.3
condition: music_title.value == true
fraction: true
precision: 2
step: 0.01
max: 1
min: 0
- key: position
value:
text: ui_position_title