drawFailTip
This commit is contained in:
parent
18e4f13a54
commit
d57ce74a79
@ -29,6 +29,13 @@ main.floors.jiaocheng03=
|
|||||||
6,
|
6,
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"6,0": {
|
||||||
|
"floorId": "guangchang",
|
||||||
|
"loc": [
|
||||||
|
6,
|
||||||
|
10
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"beforeBattle": {},
|
"beforeBattle": {},
|
||||||
|
@ -4493,7 +4493,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
////// 绘制提示同时播放错误音效 //////
|
////// 绘制提示同时播放错误音效 //////
|
||||||
ui.prototype.drawFailTip = function (text, id, frame) {
|
ui.prototype.drawFailTip = function (text, id, frame) {
|
||||||
this.drawTip(text, id, frame);
|
this.drawTip(text, id, frame);
|
||||||
core.playSound('error.mp3');
|
core.playSound('error.opus');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"额外信息": function () {
|
"额外信息": function () {
|
||||||
@ -6583,7 +6583,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
info.select.id && ["toolbox", "equipbox"].includes(core.status.event.id)
|
info.select.id && ["toolbox", "equipbox"].includes(core.status.event.id)
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
core.drawTip("发生了未知错误!");
|
core.drawFailTip("发生了未知错误!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return info.select.id;
|
return info.select.id;
|
||||||
@ -6600,7 +6600,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
core.drawTip("批量使用时出现未知错误!");
|
core.drawFailTip("批量使用时出现未知错误!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6629,11 +6629,11 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
const id = getSelectedItem();
|
const id = getSelectedItem();
|
||||||
|
|
||||||
if (Number.isNaN(value) || value < 0 || value > 99) {
|
if (Number.isNaN(value) || value < 0 || value > 99) {
|
||||||
core.drawTip("输入不合法!");
|
core.drawFailTip("输入不合法!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!core.canUseItem(id)) {
|
if (!core.canUseItem(id)) {
|
||||||
core.drawTip("当前无法使用该道具!");
|
core.drawFailTip("当前无法使用该道具!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.closePanel();
|
core.closePanel();
|
||||||
|
Loading…
Reference in New Issue
Block a user