格式化
This commit is contained in:
parent
1ec302fd7e
commit
a871208475
|
@ -3648,7 +3648,8 @@ export class Click {
|
|||
introduction.appendChild(skillNameSpan);
|
||||
|
||||
skillAudioMap.forEach((texts, skill) => {
|
||||
const skillNameSpan = document.createElement("span"), skillNameSpanStyle = skillNameSpan.style;
|
||||
const skillNameSpan = document.createElement("span"),
|
||||
skillNameSpanStyle = skillNameSpan.style;
|
||||
skillNameSpanStyle.fontWeight = "bold";
|
||||
skillNameSpan.innerHTML = `<br>${get.translation(skill)}<br>`;
|
||||
introduction.appendChild(skillNameSpan);
|
||||
|
@ -3656,21 +3657,22 @@ export class Click {
|
|||
const skillTextSpan = document.createElement("span");
|
||||
skillTextSpan.innerHTML = `${index + 1}. ${text}<br>`;
|
||||
introduction.appendChild(skillTextSpan);
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (dieAudios.length > 0) {
|
||||
const skillNameSpan = document.createElement("span"), skillNameSpanStyle = skillNameSpan.style;
|
||||
const skillNameSpan = document.createElement("span"),
|
||||
skillNameSpanStyle = skillNameSpan.style;
|
||||
skillNameSpanStyle.fontWeight = "bold";
|
||||
skillNameSpan.innerHTML = `<br>阵亡台词`;
|
||||
introduction.appendChild(skillNameSpan);
|
||||
|
||||
dieAudios.forEach((item, index) => {
|
||||
const dieTextSpan = document.createElement("span");
|
||||
dieTextSpan.innerHTML = `<br>${dieAudios.length > 1 ? `${index + 1}. ` : ''}${item.text}`;
|
||||
dieTextSpan.innerHTML = `<br>${dieAudios.length > 1 ? `${index + 1}. ` : ""}${item.text}`;
|
||||
introduction.appendChild(dieTextSpan);
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
const introduction2 = ui.create.div(".characterintro.intro2", uiintro);
|
||||
|
|
Loading…
Reference in New Issue