drawFailTip

This commit is contained in:
草莓 2025-03-18 07:14:20 +08:00
parent 18e4f13a54
commit d57ce74a79
2 changed files with 12 additions and 5 deletions

View File

@ -29,6 +29,13 @@ main.floors.jiaocheng03=
6,
0
]
},
"6,0": {
"floorId": "guangchang",
"loc": [
6,
10
]
}
},
"beforeBattle": {},

View File

@ -4493,7 +4493,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
////// 绘制提示同时播放错误音效 //////
ui.prototype.drawFailTip = function (text, id, frame) {
this.drawTip(text, id, frame);
core.playSound('error.mp3');
core.playSound('error.opus');
}
},
"额外信息": function () {
@ -6583,7 +6583,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
info.select.id && ["toolbox", "equipbox"].includes(core.status.event.id)
)
) {
core.drawTip("发生了未知错误!");
core.drawFailTip("发生了未知错误!");
return;
}
return info.select.id;
@ -6600,7 +6600,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
} catch (e) {
console.error(e);
core.drawTip("批量使用时出现未知错误!");
core.drawFailTip("批量使用时出现未知错误!");
}
}
@ -6629,11 +6629,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
const id = getSelectedItem();
if (Number.isNaN(value) || value < 0 || value > 99) {
core.drawTip("输入不合法!");
core.drawFailTip("输入不合法!");
return;
}
if (!core.canUseItem(id)) {
core.drawTip("当前无法使用该道具!");
core.drawFailTip("当前无法使用该道具!");
return;
}
core.closePanel();