drawTip atMost 3 items

This commit is contained in:
ckcz123 2019-10-30 08:55:35 +08:00
parent 9848b9bfe5
commit a19f8f4275

View File

@ -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) {