From 0c1a8bfa71c568c59347fcb86b7f1c4c729caeac Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Mon, 2 May 2022 09:12:15 +0800 Subject: [PATCH] feat(live2d): add w_fugue, specter, and skadi_sublimation --- config.yaml | 4 ++++ config/nearl.yaml | 2 +- config/phatom_focus.yaml | 2 +- config/rosmontis.yaml | 2 +- config/skadi_sublimation.yaml | 26 ++++++++++++++++++++++++++ config/specter.yaml | 26 ++++++++++++++++++++++++++ config/w_fugue.yaml | 26 ++++++++++++++++++++++++++ config/w_fugue_start.yaml | 26 ++++++++++++++++++++++++++ template/assets/runner.js | 2 +- 9 files changed, 112 insertions(+), 4 deletions(-) create mode 100644 config/skadi_sublimation.yaml create mode 100644 config/specter.yaml create mode 100644 config/w_fugue.yaml create mode 100644 config/w_fugue_start.yaml diff --git a/config.yaml b/config.yaml index 58a90b6..44fbdf6 100644 --- a/config.yaml +++ b/config.yaml @@ -14,7 +14,11 @@ operators: phatom_focus: !include config/phatom_focus.yaml rosmontis: !include config/rosmontis.yaml skadi: !include config/skadi.yaml + skadi_sublimation: !include config/skadi_sublimation.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: operator_folder: ./operator/ release_folder: ./release/ diff --git a/config/nearl.yaml b/config/nearl.yaml index 527a05a..18cfaba 100644 --- a/config/nearl.yaml +++ b/config/nearl.yaml @@ -3,7 +3,7 @@ _operator_settings.js: fallbackImage_width: 2048 filename: dyn_illust_char_1014_nearl2 fps: 60 - opacity: 30 + opacity: 100 viewport_bottom: 0 viewport_left: 2 viewport_right: 3 diff --git a/config/phatom_focus.yaml b/config/phatom_focus.yaml index 88b90ec..8e0afdc 100644 --- a/config/phatom_focus.yaml +++ b/config/phatom_focus.yaml @@ -3,7 +3,7 @@ _operator_settings.js: fallbackImage_width: 2048 filename: dyn_illust_char_250_phatom_sale#4 fps: 60 - opacity: 30 + opacity: 100 viewport_bottom: 1 viewport_left: 0 viewport_right: 0 diff --git a/config/rosmontis.yaml b/config/rosmontis.yaml index 6fcc131..3a71eda 100644 --- a/config/rosmontis.yaml +++ b/config/rosmontis.yaml @@ -11,7 +11,7 @@ _operator_settings.js: index.html: fallback_name: char_391_rosmon_2 id: char_391_rosmon - operator_logo: logo_rhodes_override + operator_logo: logo_elite title: 'Arknights: Rosmontis - 明日方舟:迷迭香' version: ${func:get_version()} project.json: diff --git a/config/skadi_sublimation.yaml b/config/skadi_sublimation.yaml new file mode 100644 index 0000000..6839096 --- /dev/null +++ b/config/skadi_sublimation.yaml @@ -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} \ No newline at end of file diff --git a/config/specter.yaml b/config/specter.yaml new file mode 100644 index 0000000..e6b6f95 --- /dev/null +++ b/config/specter.yaml @@ -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} \ No newline at end of file diff --git a/config/w_fugue.yaml b/config/w_fugue.yaml new file mode 100644 index 0000000..7f32b98 --- /dev/null +++ b/config/w_fugue.yaml @@ -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} \ No newline at end of file diff --git a/config/w_fugue_start.yaml b/config/w_fugue_start.yaml new file mode 100644 index 0000000..9a7fd88 --- /dev/null +++ b/config/w_fugue_start.yaml @@ -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} \ No newline at end of file diff --git a/template/assets/runner.js b/template/assets/runner.js index 09f3ec9..ef529f8 100644 --- a/template/assets/runner.js +++ b/template/assets/runner.js @@ -1,6 +1,6 @@ const params = new URLSearchParams(window.location.search); var showControls; -if (params.has("showControls")) { +if (params.has("controls")) { showControls = true; } else { showControls = false;