add infected state

This commit is contained in:
WEBXOSS 2017-04-04 08:46:01 +08:00
parent cd07963977
commit 8ec1044538

View file

@ -176,6 +176,8 @@ Zone.prototype.addStates = function (states) {
g.f('rgba(164,96,222,0.3)').r(-w/2,-h/2,w,h); g.f('rgba(164,96,222,0.3)').r(-w/2,-h/2,w,h);
} else if (state === 'disabled') { } else if (state === 'disabled') {
g.f('rgba(0,0,0,0.7)').r(-w/2,-h/2,w,h); g.f('rgba(0,0,0,0.7)').r(-w/2,-h/2,w,h);
} else if (state === 'infected') {
g.f('rgba(255,0,0,0.3)').r(-w/2,-h/2,w,h);
} }
},this); },this);
}; };