Weak Portal Plugin

At a glance high level indicator of portals in disrepair. Opacity is
used to denote how much it's hurting. (Bright means needs the most
attention.) Factors in current energy, missing shields, or missing
resonators. Red means it needs attention. Orange means the same thing,
except that it's down at least one resonator.

I realise this is in opposition to game convention where dim == almost
dead, but I tried it that way, and it just made no sense to me to do it
that way. The whole point is a high level way to quickly identify
portals that most need repairing. If opacity isn't done this way your
eyes are most drawn to the portals that least need your attention.
This commit is contained in:
vita10gy
2013-02-12 00:21:49 -06:00
parent bad7bc5cbe
commit 195dc611b2
3 changed files with 134 additions and 2 deletions

View File

@ -351,7 +351,7 @@ window.isResonatorsShow = function() {
}
window.portalResetColor = function(portal) {
portal.setStyle({color: portal.options.fillColor});
portal.setStyle({color: COLORS[getTeam(portal.options.details)]});
}
// renders a link on the map from the given entity