Jon Atkins f22d185b5b updates to the portal detail level handling
- iitc now defaults to lower detail than the standard intel site when zoomed out - it loads much faster, shows more than enough for general use, and is less likely to trigger 'excessive requests' issues
- show more portals plugin: updated for interface changes
- show-less-portals-zoomed-out: deleted (this is now the IITC default)
- new plugin: default-intel-detail - restores the original IITC behaviour on zoom to portal detail level mapping. not recommended

for #656 number 3
2013-11-24 04:59:41 +00:00
..
2013-11-04 18:26:46 +00:00
2013-11-23 19:16:20 -08:00
2013-11-22 20:46:03 +00:00
2013-11-22 20:14:23 -08:00
2013-11-22 20:46:03 +00:00
2013-11-22 23:31:05 -08:00
2013-11-23 19:16:20 -08:00
2013-10-17 22:44:53 +02:00
2013-11-22 20:14:23 -08:00
2013-07-19 22:45:58 +02:00
2013-11-22 23:31:05 -08:00
2013-11-23 19:16:20 -08:00
2013-11-22 23:31:05 -08:00
2013-11-22 23:31:05 -08:00
2013-11-22 23:31:05 -08:00
2013-11-22 23:31:05 -08:00
2013-11-22 20:14:23 -08:00

USER DOCUMENTATION MOVED!

The plugins list has been moved to the wiki. Please see there!

What follows is developer documentation only.

Hacking

Plugins may be developed in the same way as the total conversion script. Plugins may provide features tailored to specific needs and are allowed to change things as they see fit. You can provide them separately or submit a pull request to have them managed in this repository. If you think a hook in the main script is required, simply open a bug report.

You can use the guess player level script as an example to get you started. Just update the names and the part between // PLUGIN START and // PLUGIN END and you should be able to develop your plugin. The other code ensures your plugin is executed after the main script. Read the common HACKING.md file for general tips and requirements.

If you happen the write general purpose functions for your plugin, consider adding them to the main script instead. For example, if you write a getResoCountFromPortal(details) function it may be very well added to code/portal_info.js.

External Dependencies

If you have external dependencies put them into external/ and add a version number to their filename. I will put them in dist/ once required. Dont forget to add a note about author and license in main README.md.

Available Hooks

Available hooks are documented in the code. Please refer to the boilerplate explanation in hooks.js to see which are available and how to listen for them. If you need additional hooks, open bug reports (preferably with patches attached).