fixed # 更新资源文件

fixed # 修复部分手机适配问题
This commit is contained in:
2026-09-29 18:15:38 +08:00
parent dd562ae627
commit 98a55dd3d6
15 changed files with 10 additions and 9 deletions
+2 -1
View File
@@ -30,8 +30,9 @@ export const playDialogue = (lines, options = {}) => new Promise(resolve => {
const overlay = ui.create.div(".mengsan-dialogue-overlay-shuying", ui.window);
const stage = ui.create.div(".mengsan-dialogue-stage-shuying", overlay);
ui.create.div(".mengsan-dialogue-chapter-shuying", options.title || "剧情", stage);
const portraitFrame = ui.create.div(".mengsan-dialogue-portrait-frame-shuying", stage);
const textBox = ui.create.div(".mengsan-dialogue-box-shuying", stage);
const portraitFrame = ui.create.div(
".mengsan-dialogue-portrait-frame-shuying", textBox);
const speaker = ui.create.div(".mengsan-dialogue-speaker-shuying", textBox);
const text = ui.create.div(".mengsan-dialogue-text-shuying", textBox);
const progress = ui.create.div(".mengsan-dialogue-progress-shuying", textBox);
+2 -2
View File
@@ -36,7 +36,7 @@ export function mountEnemyIntent(player, session, assetBase, document,
debuffIcon.className = "mengsan-intent-icon-shuying";
debuffIcon.alt = "Debuff";
debuffIcon.decoding = "async";
debuffIcon.src = `${assetBase}/assets/intent/Intent_debuff.webp`;
debuffIcon.src = `${assetBase}/assets/intent/Intent_debuff.png`;
const debuffAmount = document.createElement("span");
debuffLine.append(debuffIcon, debuffAmount);
badge.append(damageLine, debuffLine);
@@ -98,7 +98,7 @@ export function mountEnemyIntent(player, session, assetBase, document,
}
const src = deathBlow ?
`${assetBase}/assets/intent/Intent_death_blow.png` :
`${assetBase}/assets/intent/Intent_attack_${tier}.webp`;
`${assetBase}/assets/intent/Intent_attack_${tier}.png`;
if (icon.getAttribute("src") !== src) icon.src = src;
icon.alt = deathBlow ? "Death Blow" : "Attack";
const label = `${deathBlow ? "Death Blow" : "Attack"}: ` +