1. processPrompt恢复dest的getPlayerStr
2. 武将一览中隐藏隐藏技能
This commit is contained in:
Nyutanislavsky 2024-10-26 01:05:17 +09:00 committed by GitHub
parent dedf769e97
commit b92e61db3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View File

@ -186,7 +186,7 @@ Flickable {
} }
Button { Button {
text: luatr("Filter") text: luatr("OK")
// width: 200 // width: 200
// enabled: !opTimer.running // enabled: !opTimer.running
onClicked: { onClicked: {

View File

@ -519,10 +519,12 @@ Item {
} }
data.skill.forEach(t => { data.skill.forEach(t => {
generalText.append((t.is_related_skill ? "<font color=\"purple\"><b>" : "<b>") + luatr(t.name) + if (!t.name.startsWith('#')) {
"</b>: " + t.description + (t.is_related_skill ? "</font>" : "")); generalText.append((t.is_related_skill ? "<font color=\"purple\"><b>" : "<b>") + luatr(t.name) +
"</b>: " + t.description + (t.is_related_skill ? "</font>" : ""));
addSkillAudio(t.name); addSkillAudio(t.name);
}
}); });
findDeathAudio(general); findDeathAudio(general);

View File

@ -34,7 +34,7 @@ function processPrompt(prompt) {
if (raw.match("%src")) if (raw.match("%src"))
raw = raw.replace(/%src/g, getPlayerStr(src)); raw = raw.replace(/%src/g, getPlayerStr(src));
if (raw.match("%dest")) if (raw.match("%dest"))
raw = raw.replace(/%dest/g, luatr(getPhoto(dest).general)); raw = raw.replace(/%dest/g, getPlayerStr(dest));
if (data.length > 3) { if (data.length > 3) {
for (let i = 4; i < data.length; i++) { for (let i = 4; i < data.length; i++) {