Skip to content

Commit

Permalink
perf(effects): 添加喜庆灯笼和雪花飘落特效
Browse files Browse the repository at this point in the history
  • Loading branch information
nineya committed Jan 5, 2024
1 parent 2e795f0 commit 70cfe75
Show file tree
Hide file tree
Showing 8 changed files with 236 additions and 1 deletion.
28 changes: 28 additions & 0 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,20 @@ enhance:
https://npm.elemecdn.com
placeholder: 请输入 CDN 地址(一行一个)
description: '填入可用的 <b><u>NPM 公共开源 CDN</u></b> 地址(一行一个),通过 <b><u>“{CDN 地址}/{项目名}@{版本号}/${文件路径}”</u></b> 可访问到文件,如:<u>https://unpkg.com/[email protected]/source/js/utils.min.js</u>'
effects_lantern_mode:
name: effects_lantern_mode
label: 喜庆灯笼特效显示模式
type: radio
default: none
options:
- value: none
label: 不显示
- value: day
label: 明亮模式
- value: night
label: 黑暗模式
- value: all
label: 全模式
effects_sakura_mode:
name: effects_sakura_mode
label: 樱花飘落特效显示模式
Expand All @@ -1499,6 +1513,20 @@ enhance:
label: 黑暗模式
- value: all
label: 全模式
effects_snowflake_mode:
name: effects_snowflake_mode
label: 雪花飘落特效显示模式
type: radio
default: none
options:
- value: none
label: 不显示
- value: day
label: 明亮模式
- value: night
label: 黑暗模式
- value: all
label: 全模式
effects_universe_mode:
name: effects_universe_mode
label: 宇宙星空特效显示模式
Expand Down
2 changes: 1 addition & 1 deletion source/js/common.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions source/js/effects/lantern.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions source/js/effects/snowflake.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ const commonContext = {
DreamConfig.cursor_move && Utils.cachedScript(`${DreamConfig.theme_base}/source/js/cursor/move/${DreamConfig.cursor_move}.min.js?mew=${DreamConfig.theme_version}`)
DreamConfig.cursor_click && Utils.cachedScript(`${DreamConfig.theme_base}/source/js/cursor/click/${DreamConfig.cursor_click}.min.js?mew=${DreamConfig.theme_version}`)
DreamConfig.enable_live2d && Utils.cachedScript(`${DreamConfig.theme_base}/source/js/autoload.min.js?mew=${DreamConfig.theme_version}`)
DreamConfig.effects_lantern_mode && Utils.cachedScript(`${DreamConfig.theme_base}/source/js/effects/lantern.min.js?mew=${DreamConfig.theme_version}`)
DreamConfig.effects_sakura_mode && Utils.cachedScript(`${DreamConfig.theme_base}/source/js/effects/sakura.min.js?mew=${DreamConfig.theme_version}`)
DreamConfig.effects_snowflake_mode && Utils.cachedScript(`${DreamConfig.theme_base}/source/js/effects/snowflake.min.js?mew=${DreamConfig.theme_version}`)
DreamConfig.effects_universe_mode && Utils.cachedScript(`${DreamConfig.theme_base}/source/js/effects/universe.min.js?mew=${DreamConfig.theme_version}`)
DreamConfig.effects_circle_magic_mode && Utils.cachedScript(`${DreamConfig.theme_base}/source/js/effects/circleMagic.min.js?mew=${DreamConfig.theme_version}`)
},
Expand Down
51 changes: 51 additions & 0 deletions src/js/effects/lantern.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 70cfe75

Please sign in to comment.