From c5b22a798bf732508b520de1fda498d5b4c20d88 Mon Sep 17 00:00:00 2001 From: lizhuoyuan <2820814112@qq.com> Date: Wed, 5 Feb 2025 20:10:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:ui.js=E6=B7=BB=E5=8A=A0=E5=87=BD=E6=95=B0d?= =?UTF-8?q?rawFailTip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/ui.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ui.js b/libs/ui.js index d2393190..02264303 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -735,6 +735,12 @@ ui.prototype._drawTip_drawOne = function (tip) { core.setAlpha('data', 1); } +////// 绘制提示同时播放错误音效 ////// +ui.prototype.drawFailTip = function (text, id, frame) { + this.drawTip(text, id, frame); + core.playSound('error.mp3'); +} + ////// 地图中间绘制一段文字 ////// ui.prototype.drawText = function (contents, callback) { if (contents != null) return this._drawText_setContent(contents, callback);