diff --git a/config/_project_json.yaml b/config/_project_json.yaml index c2d6003..ad148ef 100644 --- a/config/_project_json.yaml +++ b/config/_project_json.yaml @@ -38,6 +38,7 @@ localization: ui_music_selection: Music ui_music_volume: Volume ui_music_offset: Offset + ui_useStartAnimation_title: Use Start Animation zh-chs: ui_notice_title:

📝 通知


ui_notice_changelog: 已添加新背景和音乐! @@ -76,6 +77,7 @@ localization: ui_music_selection: 音乐 ui_music_volume: 音量 ui_music_offset: 弥补 + ui_useStartAnimation_title: 使用开始动画 properties: - key: notice_title value: @@ -266,6 +268,11 @@ properties: step: 0.01 max: 1 min: 0 + - key: useStartAnimation + value: + text: ui_useStartAnimation_title + type: bool + value: true - key: position value: text: ui_position_title diff --git a/src/libs/wallpaper_engine.js b/src/libs/wallpaper_engine.js index 9d76908..f6d9efe 100644 --- a/src/libs/wallpaper_engine.js +++ b/src/libs/wallpaper_engine.js @@ -131,5 +131,9 @@ window.wallpaperPropertyListener = { window.settings.positionPadding("bottom", properties.paddingbottom.value) window.settings.functionInsights("positionPaddingBottom", Object.keys(properties) !== 1) } + if (properties.useStartAnimation) { + window.settings.useStartAnimation = properties.useStartAnimation.value + window.settings.functionInsights("useStartAnimation", Object.keys(properties) !== 1) + } }, }; \ No newline at end of file