From a19f8f427536098b86f7db8e13d2e8acf8c4da60 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Wed, 30 Oct 2019 08:55:35 +0800 Subject: [PATCH] drawTip atMost 3 items --- libs/ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ui.js b/libs/ui.js index a8275aa6..5491449f 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -487,6 +487,9 @@ ui.prototype.drawTip = function (text, id, clear) { } } core.animateFrame.tips.list.push(one); + if (core.animateFrame.tips.list.length > 3) { + core.animateFrame.tips.list.shift(); + } } ui.prototype._drawTip_drawOne = function (one, offset) {