From 7f9399bbeb6f4d09ece38ce05f449375dc871527 Mon Sep 17 00:00:00 2001
From: Jon Atkins
Date: Sat, 21 Sep 2013 02:17:12 +0100
Subject: [PATCH 1/7] ensuure we don't store 'null' in the name->guid cache
object (an alternative to #572)
---
code/player_names.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/player_names.js b/code/player_names.js
index d8bfda37..e79cf874 100644
--- a/code/player_names.js
+++ b/code/player_names.js
@@ -43,11 +43,11 @@ window.playerNameToGuid = function(playerName) {
$.each(Object.keys(sessionStorage), function(ind,key) {
if(playerName === sessionStorage[key]) {
guid = key;
+ window._playerNameToGuidCache[playerName] = guid;
return false; //break from $.each
}
});
- window._playerNameToGuidCache[playerName] = guid;
return guid;
}
From 6a5d47f14622e2cab2ad68a67f61d6e67e00ce9b Mon Sep 17 00:00:00 2001
From: Jon Atkins
Date: Sat, 21 Sep 2013 02:42:13 +0100
Subject: [PATCH 2/7] remove unnecessary storing of the highlighter used within
the portal.options altarnative to the typo fix #571
---
code/portal_highlighter.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/code/portal_highlighter.js b/code/portal_highlighter.js
index 7e6feb15..ba72f52e 100644
--- a/code/portal_highlighter.js
+++ b/code/portal_highlighter.js
@@ -66,7 +66,6 @@ window.changePortalHighlights = function(name) {
window.highlightPortal = function(p) {
if(_highlighters !== null && _highlighters[_current_highlighter] !== undefined) {
- p.options.highligher = _current_highlighter;
_highlighters[_current_highlighter]({portal: p});
}
}
From 3336ca1edc9ebace6e1a6abc2bc73decd4847c93 Mon Sep 17 00:00:00 2001
From: Jon Atkins
Date: Sun, 22 Sep 2013 04:53:29 +0100
Subject: [PATCH 3/7] update website for 0.14.1
---
website/page/home.php | 38 ++++++++++++++++++++++++++------------
website/page/news.php | 31 +++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+), 12 deletions(-)
diff --git a/website/page/home.php b/website/page/home.php
index 24c8b3fe..47876d82 100644
--- a/website/page/home.php
+++ b/website/page/home.php
@@ -13,21 +13,35 @@ offers many more features. It is available for
Latest news
-2nd September 2013
+22nd September 2013
-IITC 0.14.0, and IITC Mobile 0.5.6, have just been released. This is (yet another) change required to work with
-the latest changes to the standard intel website.
-
-
-Also, as part of some long-term improvements, the data loading and portal rendering code has been completely rewritten.
-This should ensure much more reliable loading of portal data, and faster rendering when lots of portals are shown.
-However, this code is new, and may have bugs. Some known issues are:
+IITC 0.14.1 and IITC Mobile 0.6.4 have been released. Changes in this version include:
-- Resonators are not displayed when zoomed in.
-- Some smaller links/fields are not displayed. Often this is due to changes in the stock map (it doesn't show these
-links/fields either), but I think there are cases where IITC is getting it wrong.
+- Better performance when a very large number of portals are within view (country/continent level)
+- Add layer chooser options to hide resistance/enlightened portals/links/fields
+- Chat tab now remembers which was active when reloading IITC
+- Fix some shorter links not showing on the map
+- Add details of hack information (number/cooldown time, taking account of mods) and mitigation (from shields and links)
+to the portal information panel
+- Mobile
+
+ - increase the size of various links on the info page to make them easier to tap
+ - move the highlight selection dropdown to the native android app bar at the top
+
-However, as the current IITC release was broken I think it's better to release this build now rather than wait longer.
+And plugins:
+
+- Major update to bookmarks-by-zaso, including sync support
+- New features added to the resonators plugin
+- max-links plugin - start of rename to 'tidy links' - as this is a better description of what it does
+- show-linked-portals - indicate which are incoming/outgoing links in the tooltip
+- New Plugins
+
+ - show-link-direction, to indicate visually which portal a link was created from
+ - highlighter for portal mitigation - to show strength of defence from shields and links at a glance
+
+
+And, as always, numerous other bug fixes, tweaks and improvements.
Older news
diff --git a/website/page/news.php b/website/page/news.php
index a0a60527..00abaf86 100644
--- a/website/page/news.php
+++ b/website/page/news.php
@@ -1,5 +1,36 @@
News
+22nd September 2013
+
+IITC 0.14.1 and IITC Mobile 0.6.4 have been released. Changes in this version include:
+
+- Better performance when a very large number of portals are within view (country/continent level)
+- Add layer chooser options to hide resistance/enlightened portals/links/fields
+- Chat tab now remembers which was active when reloading IITC
+- Fix some shorter links not showing on the map
+- Add details of hack information (number/cooldown time, taking account of mods) and mitigation (from shields and links)
+to the portal information panel
+- Mobile
+
+ - increase the size of various links on the info page to make them easier to tap
+ - move the highlight selection dropdown to the native android app bar at the top
+
+
+And plugins:
+
+- Major update to bookmarks-by-zaso, including sync support
+- New features added to the resonators plugin
+- max-links plugin - start of rename to 'tidy links' - as this is a better description of what it does
+- show-linked-portals - indicate which are incoming/outgoing links in the tooltip
+- New Plugins
+
+ - show-link-direction, to indicate visually which portal a link was created from
+ - highlighter for portal mitigation - to show strength of defence from shields and links at a glance
+
+
+And, as always, numerous other bug fixes, tweaks and improvements.
+
+
2nd September 2013
IITC 0.14.0, and IITC Mobile 0.5.6, have just been released. This is (yet another) change required to work with
From ab76e4f1237257fe3710cf9d65ebe3c4704e45c7 Mon Sep 17 00:00:00 2001
From: Philipp Schaefer
Date: Sun, 22 Sep 2013 12:53:08 +0200
Subject: [PATCH 4/7] bugfix on multiPane - use dummy fragment for header
category - never select header category
---
mobile/AndroidManifest.xml | 4 +--
.../IITC_PluginPreferenceActivity.java | 32 +++++++++++++++++++
.../fragments/PluginsFragment.java | 28 ++++++++--------
3 files changed, 49 insertions(+), 15 deletions(-)
diff --git a/mobile/AndroidManifest.xml b/mobile/AndroidManifest.xml
index 2dc57bbc..fda15a23 100644
--- a/mobile/AndroidManifest.xml
+++ b/mobile/AndroidManifest.xml
@@ -1,8 +1,8 @@
+ android:versionCode="49"
+ android:versionName="0.6.5">
prefs =
- IITC_PluginPreferenceActivity.getPluginPreference(category);
+ if (getArguments() != null) {
+ // get plugins category for this fragments and plugins list
+ String category = getArguments().getString("category");
+ ArrayList prefs =
+ IITC_PluginPreferenceActivity.getPluginPreference(category);
- // add plugin checkbox preferences
- for (IITC_PluginPreference pref : prefs) {
- getPreferenceScreen().addPreference(pref);
+ // add plugin checkbox preferences
+ for (IITC_PluginPreference pref : prefs) {
+ getPreferenceScreen().addPreference(pref);
+ }
+
+ // set action bar stuff
+ ActionBar bar = getActivity().getActionBar();
+ category = category.replace(IITC_PluginPreferenceActivity.USER_PLUGIN, "User ");
+ bar.setTitle("IITC Plugins: " + category);
+ bar.setDisplayHomeAsUpEnabled(true);
}
-
- // set action bar stuff
- ActionBar bar = getActivity().getActionBar();
- category = category.replace(IITC_PluginPreferenceActivity.USER_PLUGIN, "User ");
- bar.setTitle("IITC Plugins: " + category);
- bar.setDisplayHomeAsUpEnabled(true);
}
}
From dfbe5d741219eeccbfe33a3e366727337ed9ca9a Mon Sep 17 00:00:00 2001
From: Philipp Schaefer
Date: Sun, 22 Sep 2013 14:00:57 +0200
Subject: [PATCH 5/7] count deleted plugins. needed for checkForNewPlugins()
---
.../com/cradle/iitc_mobile/IITC_PluginPreferenceActivity.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_PluginPreferenceActivity.java b/mobile/src/com/cradle/iitc_mobile/IITC_PluginPreferenceActivity.java
index 8b825002..209db065 100644
--- a/mobile/src/com/cradle/iitc_mobile/IITC_PluginPreferenceActivity.java
+++ b/mobile/src/com/cradle/iitc_mobile/IITC_PluginPreferenceActivity.java
@@ -32,6 +32,7 @@ public class IITC_PluginPreferenceActivity extends PreferenceActivity {
// we use a tree map to have a map with alphabetical order
private static TreeMap> sPlugins = null;
public static final String USER_PLUGIN = "00000";
+ private static int mDeletedPlugins = 0;
@Override
public void setListAdapter(ListAdapter adapter) {
@@ -138,7 +139,7 @@ public class IITC_PluginPreferenceActivity extends PreferenceActivity {
for (Map.Entry> entry : sPlugins.entrySet()) {
numPlugins += entry.getValue().size();
}
- if ((user.length + official.length) != numPlugins) {
+ if ((user.length + official.length) != (numPlugins + mDeletedPlugins)) {
Log.d("iitcm", "new or less plugins found since last start, rebuild preferences");
sPlugins.clear();
setUpPluginPreferenceScreen();
@@ -220,6 +221,7 @@ public class IITC_PluginPreferenceActivity extends PreferenceActivity {
// do not add deleted plugins
if (plugin_cat.equals("Deleted")) {
+ mDeletedPlugins++;
return;
}
From 96382a82627cad237e8138a5a94f9241347e2bb7 Mon Sep 17 00:00:00 2001
From: Jon Atkins
Date: Sun, 22 Sep 2013 15:52:58 +0100
Subject: [PATCH 6/7] website update for new release
---
website/page/home.php | 4 ++++
website/page/news.php | 3 +++
2 files changed, 7 insertions(+)
diff --git a/website/page/home.php b/website/page/home.php
index 47876d82..e8fd2093 100644
--- a/website/page/home.php
+++ b/website/page/home.php
@@ -15,6 +15,9 @@ offers many more features. It is available for
22nd September 2013
+Update: IITC Mobile 0.6.5 replaces 0.6.4. This fixes a crash on entering plugin preferences on some tablets.
+
+
IITC 0.14.1 and IITC Mobile 0.6.4 have been released. Changes in this version include:
- Better performance when a very large number of portals are within view (country/continent level)
@@ -44,4 +47,5 @@ And plugins:
And, as always, numerous other bug fixes, tweaks and improvements.
+
Older news
diff --git a/website/page/news.php b/website/page/news.php
index 00abaf86..fea95b02 100644
--- a/website/page/news.php
+++ b/website/page/news.php
@@ -2,6 +2,9 @@
22nd September 2013
+Update: IITC Mobile 0.6.5 replaces 0.6.4. This fixes a crash on entering plugin preferences on some tablets.
+
+
IITC 0.14.1 and IITC Mobile 0.6.4 have been released. Changes in this version include:
- Better performance when a very large number of portals are within view (country/continent level)
From 7657d74668495cefcc86b74f6f8a761b17a516c9 Mon Sep 17 00:00:00 2001
From: Philipp Schaefer
Date: Mon, 23 Sep 2013 10:08:48 +0200
Subject: [PATCH 7/7] sort highlighter selection
---
.../cradle/iitc_mobile/IITC_ActionBarHelper.java | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_ActionBarHelper.java b/mobile/src/com/cradle/iitc_mobile/IITC_ActionBarHelper.java
index 01b6ebe7..6d1ec23f 100644
--- a/mobile/src/com/cradle/iitc_mobile/IITC_ActionBarHelper.java
+++ b/mobile/src/com/cradle/iitc_mobile/IITC_ActionBarHelper.java
@@ -7,6 +7,8 @@ import android.preference.PreferenceManager;
import android.widget.ArrayAdapter;
import android.widget.Toast;
+import java.util.Comparator;
+
public class IITC_ActionBarHelper implements OnNavigationListener {
// Show/hide the up arrow on the very left
// getActionBar().setDisplayHomeAsUpEnabled(enabled);
@@ -21,6 +23,19 @@ public class IITC_ActionBarHelper implements OnNavigationListener {
// getActionBar().setHomeButtonEnabled(enabled);
private class HighlighterAdapter extends ArrayAdapter {
+
+ // Move "No Highlights" on top. Sort the rest alphabetically
+ private class HighlighterComparator implements Comparator {
+ @Override
+ public int compare(String lhs, String rhs) {
+ if (lhs.equals("No Highlights")) return -1000;
+ else if (rhs.equals("No Highlights")) return 1000;
+ else return lhs.compareTo(rhs);
+ }
+ }
+
+ private HighlighterComparator mComparator = new HighlighterComparator();
+
public HighlighterAdapter() {
super(mIitc, android.R.layout.simple_list_item_1);
clear();
@@ -30,6 +45,7 @@ public class IITC_ActionBarHelper implements OnNavigationListener {
public void add(String object) {
super.remove(object); // to avoid duplicates
super.add(object);
+ super.sort(mComparator);
}
@Override