iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 552 forks source link

Mod information not available in IITC API? #1086

Closed n4ru closed 8 years ago

n4ru commented 8 years ago

I'm trying to create a plugin, but I don't see any way to access the mod information on a portal (looking through this page: http://ingress-intel-total-conversion.readthedocs.org/en/latest/core.html#variables)

Short of reading it through jQuery selectors off the screen (obviously unreliable), is there a way to grab it? I thought it would be in window.portals[window.selectedPortal].options.data, but it isn't.

fkloft commented 8 years ago

It's not, see the FAQ on the homepage.

n4ru commented 8 years ago

I am looking for the mod information for selected portals - not all of them.

McBen commented 8 years ago

var details = portalDetail.get(selectedPortal); if (details) { $.each(details.mods, function(ind, mod) { if (mod) { ....

ryantheleach commented 8 years ago

Can you close this @n4ru if it's solved?