mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-05-17 04:46:46 +08:00
🚸 调整解析逻辑&渲染
This commit is contained in:
@@ -98,9 +98,12 @@ function parseBirthScenes(
|
||||
if (imgKey.startsWith("aether")) {
|
||||
img2Src = src.resource.find((i) => i.id === imgKey.replace("aether", "lumine"))?.src ?? "";
|
||||
}
|
||||
const roleKey = dialogEl.getAttribute("chara") ?? "";
|
||||
let roleName = src.roles.find((i) => i.id === roleKey)?.name ?? "";
|
||||
if (roleName === "text") roleName = "";
|
||||
const scriptItem: TGApp.Archive.Birth.GalDialog = {
|
||||
key: dialogEl.getAttribute("key") ?? "",
|
||||
role: dialogEl.getAttribute("chara") ?? undefined,
|
||||
role: roleName,
|
||||
img: imgSrc,
|
||||
img2: img2Src,
|
||||
pos: dialogEl.getAttribute("pos") ?? undefined,
|
||||
|
||||
Reference in New Issue
Block a user