temp disable show more portals and default intel detail plugins - the code changes needed for protocol changes have broken them, and i need a bit of time to study the details before fixing them

This commit is contained in:
Jon Atkins 2014-02-22 02:59:32 +00:00
parent 9c3e47ec40
commit bfb0775360
2 changed files with 38 additions and 38 deletions

View File

@ -2,7 +2,7 @@
// @id iitc-plugin-default-intel-detail@jonatkins
// @name IITC plugin: Default intel detail level
// @category Tweaks
// @version 0.1.0.@@DATETIMEVERSION@@
// @version 0.1.1.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
@ -24,22 +24,22 @@ window.plugin.defaultIntelDetail = function() {};
window.plugin.defaultIntelDetail.setup = function() {
var stockIntelDetail = nemesis.dashboard.zoomlevel.ZOOM_TO_LOD_;
// save the original function - so we can chain to it for levels we don't modify
var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom;
// replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown
window.getMinPortalLevelForZoom = function(z) {
// for the further out zoom levels, use the stock intel site detail levels
if (z <= 11) {
return stockIntelDetail[z];
}
// for the closer zoom levels, stock intel and IITC default is the same. falling back
// in this case allows this plugin to work alongside show-more-portals
return origGetMinPortalLevelForZoom(z);
}
// var stockIntelDetail = nemesis.dashboard.zoomlevel.ZOOM_TO_LOD_;
//
// // save the original function - so we can chain to it for levels we don't modify
// var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom;
//
// // replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown
//
// window.getMinPortalLevelForZoom = function(z) {
// // for the further out zoom levels, use the stock intel site detail levels
// if (z <= 11) {
// return stockIntelDetail[z];
// }
// // for the closer zoom levels, stock intel and IITC default is the same. falling back
// // in this case allows this plugin to work alongside show-more-portals
// return origGetMinPortalLevelForZoom(z);
// }
};

View File

@ -2,7 +2,7 @@
// @id iitc-plugin-show-more-portals@jonatkins
// @name IITC plugin: Show more portals
// @category Tweaks
// @version 0.1.6.@@DATETIMEVERSION@@
// @version 0.1.7.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
@ -24,26 +24,26 @@ window.plugin.showMorePortals = function() {};
window.plugin.showMorePortals.setup = function() {
// save the original function - so we can chain to it for levels we don't modify
var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom;
// replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown
window.getMinPortalLevelForZoom = function(z) {
var level = origGetMinPortalLevelForZoom(z);
// as of 2013-10-16...
// the stock site uses the same tile size for both L1+ portals and all portals
// therefore, changing the L1+ zoom levels into all portals zoom level is not unfriendly to the servers
// and the same applies for L2+ and L3+ detail levels
// (in some ways it's nicer, as IITC caches better)
if (level == 1) level = 0;
if (level == 3) level = 2;
return level;
}
// // save the original function - so we can chain to it for levels we don't modify
// var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom;
//
// // replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown
//
// window.getMinPortalLevelForZoom = function(z) {
// var level = origGetMinPortalLevelForZoom(z);
//
// // as of 2013-10-16...
//
// // the stock site uses the same tile size for both L1+ portals and all portals
// // therefore, changing the L1+ zoom levels into all portals zoom level is not unfriendly to the servers
// // and the same applies for L2+ and L3+ detail levels
// // (in some ways it's nicer, as IITC caches better)
//
// if (level == 1) level = 0;
// if (level == 3) level = 2;
//
// return level;
// }
};