From 831ef240d4c1dd0c5a03e467de1cb81151bc93ab Mon Sep 17 00:00:00 2001 From: vita10gy Date: Fri, 1 Mar 2013 20:33:35 -0600 Subject: [PATCH 1/3] Put colors back if need be --- plugins/show-portal-weakness.user.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/show-portal-weakness.user.js b/plugins/show-portal-weakness.user.js index b10a70f5..c085f23e 100644 --- a/plugins/show-portal-weakness.user.js +++ b/plugins/show-portal-weakness.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @id iitc-plugin-show-portal-weakness@vita10gy // @name iitc: show portal weakness -// @version 0.4 +// @version 0.5 // @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 // @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; } data.portal.setStyle(params); + } else { + data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)], + fillOpacity: 0.5, + dashArray: null}); } } } From aabe76661c7147e9471c98a6b09b1af4588f6614 Mon Sep 17 00:00:00 2001 From: vita10gy Date: Fri, 1 Mar 2013 21:22:07 -0600 Subject: [PATCH 2/3] Plugin Compute AP - Missing team resonators Issue #358 --- plugins/compute-ap-stats.user.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/plugins/compute-ap-stats.user.js b/plugins/compute-ap-stats.user.js index 3c727f68..261061c6 100644 --- a/plugins/compute-ap-stats.user.js +++ b/plugins/compute-ap-stats.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @id iitc-plugin-compute-ap-stats@Hollow011 // @name iitc: Compute AP statistics -// @version 0.2.1 +// @version 0.3 // @namespace https://github.com/breunigs/ingress-intel-total-conversion // @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/compute-ap-stats.user.js // @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/compute-ap-stats.user.js @@ -44,6 +44,21 @@ window.plugin.compAPStats.onPositionMove = function() { + ''); } +window.plugin.compAPStats.missingResonatorAP = function(portal) { + var resAP = 0; + var missing_resonators = 0; + $.each(portal.resonatorArray.resonators, function(ind, reso) { + if(reso === null) { + missing_resonators++; + } + }); + if(missing_resonators > 0) { + resAP = window.DEPLOY_RESONATOR * missing_resonators; + resAP += window.COMPLETION_BONUS; + } + return(resAP); +}; + window.plugin.compAPStats.compAPStats = function() { var totalAP_RES = 0; @@ -78,6 +93,9 @@ window.plugin.compAPStats.compAPStats = function() { if(!field) return true; allEnlFields.push(field); }); + + totalAP_ENL += window.plugin.compAPStats.missingResonatorAP(d); + } else if (getTeam(d) === TEAM_RES) { totalAP_ENL += portalSum; @@ -91,6 +109,9 @@ window.plugin.compAPStats.compAPStats = function() { if(!field) return true; allResFields.push(field); }); + + totalAP_RES += window.plugin.compAPStats.missingResonatorAP(d); + } else { // it's a neutral portal, potential for both teams. by definition no fields or edges totalAP_ENL += portalSum; From 7207a1f50d8c95d7048551c9c29f7509ac0865e9 Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Sat, 2 Mar 2013 12:03:23 +0100 Subject: [PATCH 3/3] most likely fix #341. The fix has been ported to 0.7.x, too. The layer chooser should be much more compact on chrome now. --- dist/style.0.7.css | 4 ++++ style.css | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/dist/style.0.7.css b/dist/style.0.7.css index 43bc610c..942c733a 100644 --- a/dist/style.0.7.css +++ b/dist/style.0.7.css @@ -401,6 +401,10 @@ input { font-style: italic; } +.leaflet-control-layers input { + height: auto; + padding: 0; +} /* portal title and image */ h3 { diff --git a/style.css b/style.css index d4e30170..3ebf08bc 100644 --- a/style.css +++ b/style.css @@ -401,6 +401,11 @@ input { font-style: italic; } +.leaflet-control-layers input { + height: auto; + padding: 0; +} + /* portal title and image */ h3 {