diff --git a/project/plugins.js b/project/plugins.js index 4f1b9ae..fd6476c 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -4490,6 +4490,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.actions._sys_ondown_lockControl, 30 ); + ////// 绘制提示同时播放错误音效 ////// + ui.prototype.drawFailTip = function (text, id, frame) { + this.drawTip(text, id, frame); + core.playSound('error.mp3'); + } }, "额外信息": function () { /* 宝石血瓶左下角显示数值 @@ -6578,7 +6583,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = info.select.id && ["toolbox", "equipbox"].includes(core.status.event.id) ) ) { - core.drawFailTip("发生了未知错误!"); + core.drawTip("发生了未知错误!"); return; } return info.select.id; @@ -6595,7 +6600,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } } catch (e) { console.error(e); - core.drawFailTip("批量使用时出现未知错误!"); + core.drawTip("批量使用时出现未知错误!"); } } @@ -6624,11 +6629,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = const id = getSelectedItem(); if (Number.isNaN(value) || value < 0 || value > 99) { - core.drawFailTip("输入不合法!"); + core.drawTip("输入不合法!"); return; } if (!core.canUseItem(id)) { - core.drawFailTip("当前无法使用该道具!"); + core.drawTip("当前无法使用该道具!"); return; } core.closePanel();