Fix color resetting in plugins

Remove defaulting in highlighters, which isn't needed, and was setting
the wrong thing anyway.  Also a little new hightlighter
This commit is contained in:
vita10gy
2013-09-12 20:20:16 -05:00
parent e9d173402b
commit 7eaf196dee
5 changed files with 37 additions and 26 deletions

View File

@ -38,10 +38,7 @@ window.plugin.portalHighligherPortalsMyLevel.colorLevel = function(below,data) {
if((below && portal_level <= player_level) ||
(!below && portal_level >= player_level)) {
data.portal.setStyle({fillColor: 'red', fillOpacity: opacity});
} else {
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
fillOpacity: 0.5});
}
}
}
var setup = function() {