feat(live2d): add texas, relight/neral, become anew/rosmon, dream/passager

TODO: missing fallback image for texas
This commit is contained in:
Haoyu Xu
2022-10-31 23:59:14 -04:00
parent 15d3c8d386
commit 6f28d800b1
8 changed files with 115 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ class Builder:
source=self.config["operator"]["source_folder"].format(name=operator_name),
target=self.config["operator"]["target_folder"].format(name=operator_name),
common_name=self.config["operators"][operator_name]["_operator_settings.js"]["filename"],
fallback_name=self.config["operators"][operator_name]["index.html"]["fallback_name"].replace("%23", "#"),
fallback_name=self.config["operators"][operator_name]["index.html"]["fallback_name"].replace("%23", "#") if self.config["operators"][operator_name]["index.html"]["fallback_name"] is not None else None,
id_name=self.config["operators"][operator_name]["index.html"]["id"].replace("%23", "#")
)
@@ -195,8 +195,8 @@ class Builder:
source_path = file_paths["source"]
target_path = file_paths["target"]
fallback_name = file_paths["fallback_name"]
AlphaComposite(source_path + fallback_name, target_path + "../{}".format(fallback_name))
if fallback_name is not None:
AlphaComposite(source_path + fallback_name, target_path + "../{}".format(fallback_name))
def __json_to_base64(self, path, dict=None, key=None):
with open(pathlib.Path.cwd().joinpath(path), "r") as f:

View File

@@ -33,12 +33,10 @@ class Config:
operator_logo=str,
title=str,
version=str,
fallback_name=str,
),
"_operator_settings.js": dict(
fallbackImage_height=int,
fallbackImage_width=int,
filename=str,
fps=int,
viewport_left=int,
viewport_right=int,