Put colors back if need be
This commit is contained in:
parent
bc7de777a2
commit
831ef240d4
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id iitc-plugin-show-portal-weakness@vita10gy
|
// @id iitc-plugin-show-portal-weakness@vita10gy
|
||||||
// @name iitc: show portal weakness
|
// @name iitc: show portal weakness
|
||||||
// @version 0.4
|
// @version 0.5
|
||||||
// @namespace https://github.com/breunigs/ingress-intel-total-conversion
|
// @namespace https://github.com/breunigs/ingress-intel-total-conversion
|
||||||
// @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/show-portal-weakness.user.js
|
// @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/show-portal-weakness.user.js
|
||||||
// @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/show-portal-weakness.user.js
|
// @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/show-portal-weakness.user.js
|
||||||
@ -74,6 +74,10 @@ window.plugin.portalWeakness.portalAdded = function(data) {
|
|||||||
params["dashArray"] = dash;
|
params["dashArray"] = dash;
|
||||||
}
|
}
|
||||||
data.portal.setStyle(params);
|
data.portal.setStyle(params);
|
||||||
|
} else {
|
||||||
|
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
||||||
|
fillOpacity: 0.5,
|
||||||
|
dashArray: null});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user