385 Commits

Author SHA1 Message Date
Stefan Breunig
5fb8a04147 Merge pull request #149 from sorgo/patch-2
Added capture AP to AP Gain
2013-02-13 08:51:33 -08:00
Stefan Breunig
1f00e70419 add draw plugin. See #135 2013-02-13 17:46:25 +01:00
Stefan Breunig
ae9eaba8c2 further refine tooltips to be more visible against the map 2013-02-13 17:45:07 +01:00
Stefan Breunig
1e6161ad2e make layerChooser available to plugins so they can add layers of their own 2013-02-13 17:44:41 +01:00
Stefan Breunig
cf17fef699 maybe fix #152 (haven’t checked) 2013-02-13 16:28:20 +01:00
Peter Sorger
d9463de1e4 typo 2013-02-13 16:17:31 +01:00
Peter Sorger
4ff027a22e typo 2013-02-13 16:16:58 +01:00
Peter Sorger
82029efa2b added constants 2013-02-13 16:11:24 +01:00
Peter Sorger
5876d0cab6 use constants 2013-02-13 16:10:24 +01:00
Peter Sorger
63127f7890 Added capture AP to AP Gain
Added AP for capturing a portal (500), deploying a resonator (8×125) and Competition bonus (250).
Actually no more shield AP's in Ingress.
2013-02-13 15:21:52 +01:00
Stefan Breunig
fbd892e88d also show anonymous messages such as 'field decyed'. Fixes #145 2013-02-13 12:36:06 +01:00
Stefan Breunig
164d067d4a fix scroll back issues for public chats 2013-02-13 12:35:51 +01:00
Stefan Breunig
86a58afc86 Merge pull request #146 from saithis/contribs
Added saithis to the contributors list
2013-02-13 03:24:03 -08:00
saithis
fc3ee9395d Added saithis to the contributors list 2013-02-13 12:13:56 +01:00
Stefan Breunig
090e527203 add leaflet.draw to available dependencies 2013-02-13 10:07:08 +01:00
Stefan Breunig
d32dd2d80c support more external files and images 2013-02-13 10:04:43 +01:00
Stefan Breunig
939c87cf20 add note about how to handle external dependencies 2013-02-13 10:04:27 +01:00
Stefan Breunig
aa89e348f4 fixes in readme, also add Leaflet.draw attribution 2013-02-13 10:04:10 +01:00
Stefan Breunig
596095d067 Merge pull request #131 from vita10gy/weak-portal-plugin
Weak Portal Plugin
2013-02-13 00:27:42 -08:00
vita10gy
7e70c0a8bb Ditched orange, introduced dashes
Ditched orange as the indicator of missing resonator in favor of dashed
circle.

Corrected /plugin/Readme.md
2013-02-12 23:44:10 -06:00
vita10gy
4358dbfd77 Merge remote-tracking branch 'upstream/gh-pages' into weak-portal-plugin 2013-02-12 22:14:46 -06:00
Stefan Breunig
43a6adad14 make many variables overwritable by plugins 2013-02-13 04:59:36 +01:00
vita10gy
21943d7155 Change Selected color back to red 2013-02-12 21:39:56 -06:00
Stefan Breunig
ff28f8d5ed Merge pull request #143 from Xelio/patch-map-resonator-bug-1-rebased
Add resonator re-render logic
2013-02-12 19:15:19 -08:00
Stefan Breunig
ae65dff2d9 * ditch jQueryUI vanilla styles in favor of own ones.
* disable tracking for tooltips and make them behave more like regular ones
  (this also stops my fan from spinning up when using the intel map)

Improvements welcome. Tooltips are currently placed at the bottom of the
element instead of next to cursor. It seems it’s either tracking or placing
it not anywhere where one would expect a tooltip. I immediately regret
having chosen jQueryUI. It’s not very flexible and has awkward defaults.
2013-02-13 04:10:40 +01:00
Stefan Breunig
79b917c8f1 divider bar too short 2013-02-13 03:22:01 +01:00
Stefan Breunig
4f931a11c7 Merge pull request #142 from saithis/tooltip
Added jQuery UI tooltips; fixes #42; patch by saithis
2013-02-12 18:19:33 -08:00
Xelio
4ca80b877e Add resonator re-render logic
Resonator will re-render if it's level/energy/distance changed
Bring portal to front after resonators re-rendered.
2013-02-13 10:09:50 +08:00
Stefan Breunig
360f6f8336 rework chat handling completely
The old system was getting too complicated to add new features to.
The new one should be easier to understand and will be explained
below. This patch should fix #140 and fix #16.

There are several places where new data requests may come from:
- chat.needMoreMessages checks if we are scrolled too far up or
  there is no scrollbar. It then requests new messages.
- scrolling up
- switching the chat tab via chat.chooser
- auto refresh
- once on boot
The latter two always request both types of chat.

Faction and public are handled the same way. Public is later split
into categories. I will explain the faction chat here because it’s
easier.

It starts in chat.requestFaction. This will initialize the query to
the server for data. The exact query is determined by chat.
genPostData. There can only be one faction chat request at a time.
Clearing on map move is handled automatically in code/requests.js.

Let’s assume the data query is successful. It is now passed to
chat.handleFaction which runs some basic checks before the data is
processed and stored in chat._factionData. This is done by chat.
writeDataToHash. The hash keys are the message GUIDs to avoid
duplicates. The hash values are an array of timestamp, processed
message and other meta data.

There is only one way to render faction chat, so data is directly
handed to chat.renderFaction which immediately hands it to chat
.renderData. renderData discards the GUIDs and sorts the values
by their timestamp. It then iterates over the data to insert
date break lines and finally renders the data in the DOM. It also
does some magic to keep the correct scrolling position.

Chat data will be cleared on map move or zoom. However, the
display is not refreshed, so the old, invalid chat data is still
displayed. Only once the data query is finished the data is
rendered. The upside is that small map operations within your
local area appear to never lose their chat data. Downside is that
there’s invalid chat for some time when changing cities.
2013-02-13 02:52:27 +01:00
Stefan Breunig
4c07fb12ae properly check if portal details are available 2013-02-13 02:49:13 +01:00
Stefan Breunig
847a3d5fc1 warn when chat message didn’t make it but the server actually send a response 2013-02-12 23:22:45 +01:00
saithis
039f9c14b5 * The jQuery UI js/css file is now taken from ajax.googleapis.com instead of code.jquery.com
* Table or not is now autodetected, removed data-tooltip attributes
* Empty table cells are now possible
* Removed duplicated \t's on some titles
* Some tooltip code cleanup
2013-02-12 23:16:12 +01:00
Stefan Breunig
139e06d86c fix typo 2013-02-12 23:12:41 +01:00
Stefan Breunig
0d0bd4b26a fix indenting 2013-02-12 23:12:28 +01:00
saithis
e0bb10f989 Added missing space between 'span' and 'title' 2013-02-12 19:46:04 +01:00
saithis
10da1dee83 Added jQuery UI tooltips 2013-02-12 19:34:16 +01:00
vita10gy
0c6f0a97e2 Description Added
Description added to plugins readme
2013-02-12 09:27:47 -06:00
Stefan Breunig
6edf2210f8 add example for decay message JSON (see #137) 2013-02-12 11:54:58 +01:00
Stefan Breunig
8fc2a891db Merge branch 'gh-pages' of github.com:breunigs/ingress-intel-total-conversion into gh-pages 2013-02-12 10:01:49 +01:00
Stefan Breunig
331d9a3781 add debugging/console capability to devices where it is not available or easily accessibile 2013-02-12 10:01:21 +01:00
Stefan Breunig
52306b033d fix indenting 2013-02-12 09:20:08 +01:00
vita10gy
195dc611b2 Weak Portal Plugin
At a glance high level indicator of portals in disrepair. Opacity is
used to denote how much it's hurting. (Bright means needs the most
attention.) Factors in current energy, missing shields, or missing
resonators. Red means it needs attention. Orange means the same thing,
except that it's down at least one resonator.

I realise this is in opposition to game convention where dim == almost
dead, but I tried it that way, and it just made no sense to me to do it
that way. The whole point is a high level way to quickly identify
portals that most need repairing. If opacity isn't done this way your
eyes are most drawn to the portals that least need your attention.
2013-02-12 00:21:49 -06:00
Stefan Breunig
bad7bc5cbe Merge pull request #126 from cmrn/bug/124
Added details on how to find updates to error message (Fixes #124)
2013-02-11 14:39:33 -08:00
Cameron Moon
f9f1cc1266 Added details on how to find updates to error message 2013-02-12 09:23:28 +11:00
Stefan Breunig
20ac194d90 Merge pull request #125 from cmrn/sidebar-css-fixes
Fixed various minor sidebar layout issues
2013-02-11 14:10:31 -08:00
Cameron Moon
e761a01aed fixed various minor sidebar layout issues 2013-02-12 08:58:06 +11:00
Jon Atkins
ff85ad6871 Merge remote-tracking branch 'upstream/gh-pages' into gh-pages 2013-02-11 20:00:20 +00:00
Stefan Breunig
7112e74a8a don’t put version number in title because this leads to multiple installations on chrome 2013-02-11 20:07:12 +01:00
Stefan Breunig
dcc860fa14 remove superfluous delete function 2013-02-11 19:48:23 +01:00
Stefan Breunig
f3bcc3ef03 release v0.51 which contains some fixes for recent breakages 2013-02-11 19:37:35 +01:00