setInterval time & load statusBar

This commit is contained in:
oc 2018-12-12 16:37:16 +08:00
parent ccb89e422f
commit e5a7c9e10c

View File

@ -1566,7 +1566,7 @@ control.prototype.setFg = function(color, time, callback) {
core.clearMap('curtain'); core.clearMap('curtain');
core.fillRect('curtain', 0, 0, 416, 416, core.arrayToRGBA([nowR,nowG,nowB,nowA])); core.fillRect('curtain', 0, 0, 416, 416, core.arrayToRGBA([nowR,nowG,nowB,nowA]));
if (step>=25) { if (step>=steps) {
delete core.animateFrame.asyncId[changeAnimate]; delete core.animateFrame.asyncId[changeAnimate];
clearInterval(changeAnimate); clearInterval(changeAnimate);
core.status.curtainColor = color; core.status.curtainColor = color;