diff --git a/Version b/Version
index 15a2799..fa7adc7 100644
--- a/Version
+++ b/Version
@@ -1 +1 @@
-3.3.0
+3.3.5
diff --git a/config/_project_json.yaml b/config/_project_json.yaml
index 77cd934..379aa12 100644
--- a/config/_project_json.yaml
+++ b/config/_project_json.yaml
@@ -2,6 +2,7 @@ description: !match "~{split('config', 'title' ,' - ')[0]} Live 2D\n~{split('con
localization:
en-us:
ui_notice_title:
📝 Notes
+ ui_notice_changelog: Now supports Operator Voice!
ui_notice_set_fps: Set FPS target in Settings
ui_notice_github: "Github: https://github.com/Halyul/aklive2d"
ui_notice_other_operators: "Previews: https://arknights.halyul.dev/"
@@ -28,8 +29,12 @@ localization:
ui_subtitle_title:
📑 Subtitle
ui_subtitle_lang: Subtitle Language
ui_voice_actor_title:
🗣️ Voice Actor
+ ui_privacy_title:
📜 Privacy
+ ui_privacy_text: Check out our privacy policy at https://privacy.halyul.dev
+ ui_privacy_do_not_track: Send usage data
zh-chs:
ui_notice_title:
📝 通知
+ ui_notice_changelog: 现在支持干员语音!
ui_notice_set_fps: 在设置中设定FPS目标
ui_notice_github: "Github: https://github.com/Halyul/aklive2d"
ui_notice_other_operators: "预览: https://arknights.halyul.dev/"
@@ -56,10 +61,16 @@ localization:
ui_subtitle_title:
📑 字幕
ui_subtitle_lang: 字幕语言
ui_voice_actor_title:
🗣️ 声优
+ ui_privacy_title:
📜 隐私
+ ui_privacy_text: 在 https://privacy.halyul.dev 查看我们的隐私政策
+ ui_privacy_do_not_track: 发送使用数据
properties:
- key: notice_title
value:
text: ui_notice_title
+ - key: notice_changelog
+ value:
+ text: ui_notice_changelog
- key: notice_set_fps
value:
text: ui_notice_set_fps
@@ -243,4 +254,15 @@ properties:
condition: position.value == true
fraction: false
max: 100
- min: -100
\ No newline at end of file
+ min: -100
+ - key: privacytitle
+ value:
+ text: ui_privacy_title
+ - key: privacy_text
+ value:
+ text: ui_privacy_text
+ - key: privacydonottrack
+ value:
+ text: ui_privacy_do_not_track
+ type: bool
+ value: true
\ No newline at end of file
diff --git a/src/components/settings.js b/src/components/settings.js
index 5a40610..f2c822b 100644
--- a/src/components/settings.js
+++ b/src/components/settings.js
@@ -71,8 +71,9 @@ export default class Settings {
}
insights(isWallpaperEngine, doNotTrack) {
+ if (this.#isInsightsInited || import.meta.env.MODE === 'development') return
this.#isInsightsInited = true
- if (this.#isInsightsInited || doNotTrack || import.meta.env.MODE === 'development') return
+ if (doNotTrack || this.#doNotTrack) return
this.#doNotTrack = doNotTrack
window.umami?.trackView(`/${import.meta.env.VITE_LINK}${isWallpaperEngine ? "?steam" : ""}`);
}
diff --git a/src/libs/wallpaper_engine.js b/src/libs/wallpaper_engine.js
index 57b9d72..4d7ade7 100644
--- a/src/libs/wallpaper_engine.js
+++ b/src/libs/wallpaper_engine.js
@@ -5,7 +5,9 @@ window.wallpaperPropertyListener = {
}
},
applyUserProperties: function (properties) {
- window.settings.insights(true, false)
+ if (properties.privacydonottrack) {
+ window.settings.insights(true, !properties.privacydonottrack.value)
+ }
if (properties.logo) {
window.settings.setLogoDisplay(!properties.logo.value)
}