40 Commits

Author SHA1 Message Date
Dave Ingram
f9ff49eb26 Merge pull request #977 from Meaglin/removeevents
Added "remove" events for portals/links/fields.
2016-06-13 14:25:06 -07:00
Ssergni Smith
b00bb17748 Add hook for artifact details being updated 2015-10-15 15:06:14 -07:00
fkloft
d367cff8c5 Fix pull request 2015-10-10 23:56:46 +02:00
T. Thiery
05a84c6630 Add removeHook method.
- Removes a previously attached hook.
- Must be the SAME function to unregister.
2015-10-10 23:38:05 +02:00
Jon Atkins
570f7a0f9a plugin: cache recently loaded portal details and always render on the map 2015-06-29 19:02:11 +01:00
Joseph Verburg
de5b689ee6 Added remove events for portals/links/fields. 2015-04-08 17:03:53 +02:00
fkloft
4c7b8e0e70 new search 2015-02-12 16:06:48 +01:00
fkloft
2def40c847 Remove old hook 2014-09-13 19:54:12 +02:00
Jon Atkins
2e4b54e868 helper function for plugins to create new hooks 2014-07-04 19:38:21 +01:00
Jon Atkins
9fde200f70 add a js debugger breakpoint into 'unknown hook' error case 2013-12-17 03:25:03 +00:00
fkloft
ad6a447bde Allow plugins to add panes to mobile nav drawer 2013-12-02 23:40:25 +01:00
Jon Atkins
c5b93234a9 Merge pull request #672 from nexushoratio/to-push
To push
2013-12-02 09:57:25 -08:00
Mike Castle
4d8054c0d4 Merge branch 'to-push' of github.com:nexushoratio/ingress-intel-total-conversion into to-push
Conflicts:
	plugins/portal-defense.user.js
	plugins/show-linked-portals.user.js
2013-12-02 02:18:03 -08:00
Jon Atkins
7d923ee64e add a debugger breakpoint in hook exception handling 2013-12-02 06:08:39 +00:00
Jon Atkins
138a37d777 first attempt at loading portal details, and displaying in the sidebar once loaded 2013-12-01 00:08:25 +00:00
Mike Castle
7a07f622de Fix a variety of typos. 2013-11-26 23:55:08 -08:00
Xelio
dfd91de6dc New hook: playerNameResolved
Called when unresolved player name get resolved. Argument is {names: object} which names[guid] is the resolved player name
2013-09-20 13:42:49 +08:00
Jon Atkins
aad3c77ff9 add linkAdded and fieldAdded hooks, to mirror the portalAdded hook 2013-09-17 07:33:14 +01:00
Jon Atkins
ac9d9cfaf0 trap exceptions when running hooks, log the error, and continue
should reduce issues caused when plugins are broken
2013-09-05 03:42:36 +01:00
Xelio
8f1442e1dd Refactor code of select/unselect portal. Add hook 'portalSelected' with guid of selected and unselected portal. 2013-09-05 01:59:30 +08:00
Jon Atkins
ff5134e45e remove comments describing a removed hook 2013-08-30 17:40:56 +01:00
Jon Atkins
ffd0258a7c call the requestFinished hook in the new request handling code - for plugins that need it
also make a request to hook something that doesn't exist a non-fatal error - to reduce plugin breakage for removed hooks
2013-08-29 06:36:48 +01:00
Jon Atkins
571a17d84b work-in-progress - committing to switch to other work 2013-08-27 21:04:28 +01:00
Jon Atkins
3c90960e4c work-in-progress - checking in while looking at other code on master. may be broken 2013-08-25 17:50:28 +01:00
Xelio
6cd3328389 Add 'iitcLoaded' hook to notify that IITC and all plugins loaded. 2013-05-08 20:47:41 +08:00
Fragger
1f10846c6b Update hook documentation 2013-04-13 21:34:56 -07:00
Jon Atkins
dcd88cd502 add comment clarifying "return false" in "$.each" acts as a "break" - not obvious to those less familiar with jQuery 2013-04-11 16:21:14 +01:00
Julien Roncaglia
c6118a47c2 Fix click on player name in chat doing nothing
It only worked when player tracker wasn't installed
2013-04-10 07:10:29 +02:00
Julien Roncaglia
1a8d15d1c5 Add 2 new hooks: geoSearch and nicknameClicked
For both of them returning false will interupt the default action

'geoSearch' is called when something is entered in the search box.
The argument is the string entered in the search box

'nicknameClicked' is called when a nickname is cliked.
The argument is an object with 2 properties:
 - 'event' contain the standard event object
 - 'nickname' contain the nick of the user
2013-04-09 22:40:34 +02:00
Bruno Barão
a0bc896559 Add a new hook after receiving new faction messages 2013-03-12 12:33:44 +00:00
Xelio
eb3ec79852 Add hook: requestFinished
Called after each request finished. Argument is {success: boolean} indicated the request success or fail.
2013-03-05 03:17:46 +08:00
Florian Sundermann
459c4b422b new hook to let plugins indicate a renderlimit 2013-02-25 08:44:43 +01:00
saithis
0c854bf9f5 Added beforePortalReRender to VALID_HOOKS 2013-02-23 17:57:40 +01:00
Stefan Breunig
0ada93ea75 merge parts of #236 (by ShawnTuatara) 2013-02-23 14:02:19 +01:00
Shawn Clark
a922bd36bf Adding hook portalDataLoaded
- portalDataLoaded is called during the
code/map_data.js#handleDataResponse to allow plugins to manipulate the
portals prior to rendering.
2013-02-19 22:35:32 -08:00
Stefan Breunig
f2c6c609ef Merge branch 'gh-pages' of github.com:breunigs/ingress-intel-total-conversion into gh-pages
Conflicts:
	code/hooks.js
2013-02-18 11:13:52 +01:00
Stefan Breunig
044b5f2147 add hook for chat data 2013-02-18 11:12:26 +01:00
master0yoshigr
132573e6ea Update code/hooks.js 2013-02-17 21:02:21 -05:00
Stefan Breunig
cd23248576 add portalDetailsUpdated hook 2013-02-16 13:43:37 +01:00
Stefan Breunig
1bbbe05a86 add hooks framework and add hook for portal added (fixes #87) 2013-02-10 23:07:33 +01:00