feat(live2d): add w_fugue, specter, and skadi_sublimation

This commit is contained in:
Haoyu Xu
2022-05-02 09:12:15 +08:00
parent 998e6820ac
commit 0c1a8bfa71
9 changed files with 112 additions and 4 deletions

View File

@@ -14,7 +14,11 @@ operators:
phatom_focus: !include config/phatom_focus.yaml phatom_focus: !include config/phatom_focus.yaml
rosmontis: !include config/rosmontis.yaml rosmontis: !include config/rosmontis.yaml
skadi: !include config/skadi.yaml skadi: !include config/skadi.yaml
skadi_sublimation: !include config/skadi_sublimation.yaml
w: !include config/w.yaml w: !include config/w.yaml
w_fugue: !include config/w_fugue.yaml
w_fugue_start: !include config/w_fugue_start.yaml # a special case here, no good way to handle
specter: !include config/specter.yaml
server: server:
operator_folder: ./operator/ operator_folder: ./operator/
release_folder: ./release/ release_folder: ./release/

View File

@@ -3,7 +3,7 @@ _operator_settings.js:
fallbackImage_width: 2048 fallbackImage_width: 2048
filename: dyn_illust_char_1014_nearl2 filename: dyn_illust_char_1014_nearl2
fps: 60 fps: 60
opacity: 30 opacity: 100
viewport_bottom: 0 viewport_bottom: 0
viewport_left: 2 viewport_left: 2
viewport_right: 3 viewport_right: 3

View File

@@ -3,7 +3,7 @@ _operator_settings.js:
fallbackImage_width: 2048 fallbackImage_width: 2048
filename: dyn_illust_char_250_phatom_sale#4 filename: dyn_illust_char_250_phatom_sale#4
fps: 60 fps: 60
opacity: 30 opacity: 100
viewport_bottom: 1 viewport_bottom: 1
viewport_left: 0 viewport_left: 0
viewport_right: 0 viewport_right: 0

View File

@@ -11,7 +11,7 @@ _operator_settings.js:
index.html: index.html:
fallback_name: char_391_rosmon_2 fallback_name: char_391_rosmon_2
id: char_391_rosmon id: char_391_rosmon
operator_logo: logo_rhodes_override operator_logo: logo_elite
title: 'Arknights: Rosmontis - 明日方舟:迷迭香' title: 'Arknights: Rosmontis - 明日方舟:迷迭香'
version: ${func:get_version()} version: ${func:get_version()}
project.json: project.json:

View File

@@ -0,0 +1,26 @@
_operator_settings.js:
fallbackImage_height: 2048
fallbackImage_width: 2048
filename: dyn_illust_char_1012_skadi2_boc#4
fps: 60
opacity: 30
viewport_bottom: 0
viewport_left: 0
viewport_right: 0
viewport_top: 0
index.html:
fallback_name: char_1012_skadi2_boc%234
id: char_1012_skadi2_boc%234
operator_logo: logo_egir
title: 'Arknights: Sublimation / Skadi the Corrupting Heart - 明日方舟:升华·浊心斯卡蒂'
version: ${func:get_version()}
project.json:
description: 'Arknights: Sublimation / Skadi the Corrupting Heart - 明日方舟:升华·浊 Live 2D\nThe model is extracted from game with Spine support.\n模型来自游戏内提取支持Spine\nPlease set your FPS target in Wallpaper Engine > Settings > Performance > FPS\n请在 Wallpaper Engine > 设置 > 性能 > FPS 下设置FPS\n\nLive preview on: https://arknights.halyul.dev/skadi_sublimation\nGithub: https://github.com/Halyul/aklive2d'
title: ${var:index.html->title}
ui_logo_opacity: ${var:_operator_settings.js->opacity}
ui_logo_ratio: 61.8
ui_operator_logo: 'true'
ui_position_padding_bottom: ${var:_operator_settings.js->viewport_bottom}
ui_position_padding_left: ${var:_operator_settings.js->viewport_left}
ui_position_padding_right: ${var:_operator_settings.js->viewport_right}
ui_position_padding_top: ${var:_operator_settings.js->viewport_top}

26
config/specter.yaml Normal file
View File

@@ -0,0 +1,26 @@
_operator_settings.js:
fallbackImage_height: 2048
fallbackImage_width: 2048
filename: dyn_illust_char_1023_ghost2
fps: 60
opacity: 100
viewport_bottom: 0
viewport_left: 0
viewport_right: 0
viewport_top: 0
index.html:
fallback_name: char_1023_ghost2_2
id: char_1023_ghost2
operator_logo: logo_abyssal
title: 'Arknights: Specter the Unchained - 明日方舟:归溟幽灵鲨'
version: ${func:get_version()}
project.json:
description: 'Arknights: Specter the Unchained - 明日方舟:归溟幽灵鲨 Live 2D\nThe model is extracted from game with Spine support.\n模型来自游戏内提取支持Spine\nPlease set your FPS target in Wallpaper Engine > Settings > Performance > FPS\n请在 Wallpaper Engine > 设置 > 性能 > FPS 下设置FPS\n\nLive preview on: https://arknights.halyul.dev/specter\nGithub: https://github.com/Halyul/aklive2d'
title: ${var:index.html->title}
ui_logo_opacity: ${var:_operator_settings.js->opacity}
ui_logo_ratio: 61.8
ui_operator_logo: 'true'
ui_position_padding_bottom: ${var:_operator_settings.js->viewport_bottom}
ui_position_padding_left: ${var:_operator_settings.js->viewport_left}
ui_position_padding_right: ${var:_operator_settings.js->viewport_right}
ui_position_padding_top: ${var:_operator_settings.js->viewport_top}

26
config/w_fugue.yaml Normal file
View File

@@ -0,0 +1,26 @@
_operator_settings.js:
fallbackImage_height: 2048
fallbackImage_width: 2048
filename: dyn_illust_char_113_cqbw_epoque#7
fps: 60
opacity: 30
viewport_left: 0
viewport_right: 0
viewport_top: 1
viewport_bottom: -4
index.html:
fallback_name: char_113_cqbw_epoque%237
id: char_113_cqbw_epoque%237
operator_logo: logo_babel
title: 'Arknights: Fugue / W - 明日方舟恍惚·W'
version: ${func:get_version()}
project.json:
description: 'Arknights: Fugue / W - 明日方舟恍惚·W Live 2D\nThe model is extracted from game with Spine support.\n模型来自游戏内提取支持Spine\nPlease set your FPS target in Wallpaper Engine > Settings > Performance > FPS\n请在 Wallpaper Engine > 设置 > 性能 > FPS 下设置FPS\n\nLive preview on: https://arknights.halyul.dev/w——fugue\nGithub: https://github.com/Halyul/aklive2d'
title: ${var:index.html->title}
ui_logo_opacity: ${var:_operator_settings.js->opacity}
ui_logo_ratio: 61.8
ui_operator_logo: 'true'
ui_position_padding_bottom: ${var:_operator_settings.js->viewport_bottom}
ui_position_padding_left: ${var:_operator_settings.js->viewport_left}
ui_position_padding_right: ${var:_operator_settings.js->viewport_right}
ui_position_padding_top: ${var:_operator_settings.js->viewport_top}

26
config/w_fugue_start.yaml Normal file
View File

@@ -0,0 +1,26 @@
_operator_settings.js:
fallbackImage_height: 2048
fallbackImage_width: 2048
filename: dyn_illust_char_113_cqbw_epoque#7_Start
fps: 60
opacity: 30
viewport_left: 0
viewport_right: 0
viewport_top: 1
viewport_bottom: -4
index.html:
fallback_name: char_113_cqbw_epoque%237
id: char_113_cqbw_epoque%237
operator_logo: logo_babel
title: 'Arknights: Fugue / W - 明日方舟恍惚·W'
version: ${func:get_version()}
project.json:
description: 'Arknights: Fugue / W - 明日方舟恍惚·W Live 2D\nThe model is extracted from game with Spine support.\n模型来自游戏内提取支持Spine\nPlease set your FPS target in Wallpaper Engine > Settings > Performance > FPS\n请在 Wallpaper Engine > 设置 > 性能 > FPS 下设置FPS\n\nLive preview on: https://arknights.halyul.dev/w——fugue\nGithub: https://github.com/Halyul/aklive2d'
title: ${var:index.html->title}
ui_logo_opacity: ${var:_operator_settings.js->opacity}
ui_logo_ratio: 61.8
ui_operator_logo: 'true'
ui_position_padding_bottom: ${var:_operator_settings.js->viewport_bottom}
ui_position_padding_left: ${var:_operator_settings.js->viewport_left}
ui_position_padding_right: ${var:_operator_settings.js->viewport_right}
ui_position_padding_top: ${var:_operator_settings.js->viewport_top}

View File

@@ -1,6 +1,6 @@
const params = new URLSearchParams(window.location.search); const params = new URLSearchParams(window.location.search);
var showControls; var showControls;
if (params.has("showControls")) { if (params.has("controls")) {
showControls = true; showControls = true;
} else { } else {
showControls = false; showControls = false;