b6bf5669a5
portal may become unselected
...
This simplifies the logic a bit, hopefully making it easier to debug the
issue See #404 . It seems to be related to when the portal changed because
I could trigger it easily on zooming in/out when there was a cache bug
that gave me an R portal in one zoom level and an E one in the other.
2013-03-07 11:30:58 +01:00
d591b714a3
Bug fix: handleDataResponse in map_data
...
It throw error when val.deletedGameEntityGuids or val.gameEntities is null
2013-03-06 13:35:18 +08:00
dbda13112e
Bug fix in "isSameResonator"
...
It was throwing error when only one of the resonator is null.
2013-03-05 23:10:49 +08:00
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
01f7b7099d
Use LineUtil.simplify, rearange some code
2013-03-03 19:17:17 -08:00
898f0c37ce
One more nit
2013-03-03 01:21:50 -08:00
e3b9a2b1ec
Fix up nits
2013-03-03 01:08:46 -08:00
9889e0988f
Fix to use identity operators
2013-03-02 22:27:45 -08:00
7c019e1eb8
Fix tabs and add comment about crazy equation
2013-03-02 21:51:12 -08:00
d4903c6ce7
Code breaking bug fix
2013-03-02 21:38:13 -08:00
5513ea13eb
Resolve conflict and sync
2013-03-02 21:31:12 -08:00
0ba8631b82
MU counts for fields with limiting for small fields
...
Only at higher zoom levels will counts for small fields show.
2013-03-02 21:25:03 -08:00
420ec8de16
Save Game info with links and fields
...
Useful for plugins/extending
2013-03-02 10:23:38 -06:00
1e21bbb94d
Add thousands separator and bug fix
2013-03-02 06:29:35 -08:00
75dea672f3
Inital stab at mu counts for fields
...
Still needs work on when not to display, maybe based on field area and
zoom level?
2013-03-02 05:56:29 -08:00
4113991201
Code restructure 3
2013-03-01 15:31:15 +08:00
a679710198
Code restructure 2
2013-03-01 15:00:49 +08:00
c9d7300a05
Code Restructure
2013-03-01 14:40:30 +08:00
c75caa91dd
Fix flicker portal in portal render limit handler
...
Change:
Extract portal handle process from "handleDataResponse" to "handlePortalData"
Add "action" property to object returned by $.ajax() to identity type of request
Delay low level portal render until no active request of map data.
2013-02-28 15:10:13 +08:00
f4f3e7791f
Code restructure of portal render limit handler
2013-02-27 01:14:18 +08:00
82792cf4be
Bug Fix: minLevel of Portal Render Limit handler now persistent in same batch of request.
2013-02-26 21:56:30 +08:00
17a81c09d9
New Feature: Remove lower level portal when portal render limit reached
2013-02-26 18:44:16 +08:00
f213a481e8
avoid rendering small fields and links for improved perf. This change is experimental, so please report any rendering issues that could be related to this.
2013-02-24 10:54:08 +01:00
f8215107fc
Portal size tweak
...
Slight change so that level 1 and level 2 portals aren't the same size
anymore. Also, make exception for unclaimed portals so they aren't a
tiny dot.
2013-02-23 16:20:55 -06:00
0ada93ea75
merge parts of #236 (by ShawnTuatara)
2013-02-23 14:02:19 +01:00
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
5bc83953a1
Merge pull request #186 from Xelio/patch-selected-portal-unselect-bug
...
Bug fix: selected portal unselect if portal re-render
2013-02-16 06:57:12 -08:00
fd7940c2ae
Bug Fix: selected portal unselect if portal re-render
...
Add a checking: if portal is not visible on map, don't preserve "selectedPortal"
2013-02-16 22:38:43 +08:00
6a85f34725
use identity comparator
2013-02-16 15:12:06 +01:00
55506b7207
Bug fix: selected portal unselect if portal re-render
...
Preserve and restore "selectedPortal" between re-render
2013-02-16 21:33:29 +08:00
346d3ae0a1
implement basic support for smartphones
2013-02-16 13:52:17 +01:00
05c716d12e
Merge pull request #183 from Xelio/patch-reso-update-delete
...
Bug fix: resonator update should remove old resonator
2013-02-16 04:20:30 -08:00
9ef8448d22
Bug fix: resonator update should remove old resonator
...
"window.renderResonators" should remove resonator if "isSameResonator()" return false.
2013-02-16 20:03:27 +08:00
e1fd13e4af
print more info for duplicate resos (see #182 )
2013-02-16 12:53:30 +01:00
4e837a4084
maybe related to #182
2013-02-16 12:50:32 +01:00
e9fd2e1a2e
ensure portal is rendered above resos
2013-02-15 19:12:15 +01:00
e69ba16a23
draw resonator lines below resonators when selecting a portal. Also reduce code duplication
2013-02-15 19:01:18 +01:00
5bde912c7a
Code restructure - 4
2013-02-16 01:35:34 +08:00
d632fdd2d3
Code restructure - 3
2013-02-16 01:28:19 +08:00
65b0e0113b
Code restructure - 2
2013-02-16 01:19:36 +08:00
eab812fbf6
Code restructure
2013-02-16 01:16:20 +08:00
1ed2ee8e8c
Performance tuning
...
Merge multiple setStyle into one command
2013-02-16 00:34:02 +08:00
c127bf0b6d
New feature: Highlight resonators of selected portal
2013-02-16 00:01:59 +08:00
6de035b0ab
likely fix #173
...
If I understood everything correctly, the reason was that the for-loop
doesn’t create a separate context, thus the reference to r was made for
the whole renderResonator function. This obviously references the latest
r after the loop has finished. Switching this to $.each where each
iteration is a new anonymous function and thus a closure, r is referenced
correctly.
Please reopen if this does not fix the problem.
2013-02-15 16:04:10 +01:00
eb23123ae8
resos should not be clickable
2013-02-14 11:19:22 +01:00
4ceacf719d
Merge pull request #155 from Xelio/patch-reso-line-tune
...
Resonator line tuning
2013-02-13 23:27:21 -08:00
767354b83f
Resonator line tuning - 2
...
Lower opacity 0.35 -> 0.25
Tweak color to a bit lighter #FF7700 -> #FFA000
2013-02-14 12:43:41 +08:00
c9e2c12784
Resonator line tuning - bug fix
...
Need to draw from portal for new dashArray to work
2013-02-14 03:40:32 +08:00
24c5d45efc
Resonator line tuning
...
Change color #FFFFFF -> #FF7700
Change opactiy 0.2 -> 0.35
Change dashArray to move line out of portal circle
2013-02-14 03:29:39 +08:00
841223f837
the patches to avoid re-rendering would not update the portal details
...
if there were only minor changes (resos destroyed or energy level
changed). This likely lead to the sidebar showing outdates information.
The patch should solve #154 , but please check carefully.
2013-02-13 20:20:29 +01:00