Property for tab navigation

Added Engine.tabNavigation property. When true, it enables keyboard navigation to/from tabs. It is disabled on world and enabled some milliseconds after Path.onArrival(), so that when player returns s/he finds him/herself on Path tab instead of navigating.
This commit is contained in:
Andrea Rendine
2015-05-12 00:34:51 +02:00
committed by Blake Grotewold
parent 64a02c162c
commit daf5de3973
2 changed files with 30 additions and 16 deletions
+2
View File
@@ -823,6 +823,7 @@ var World = {
$('#outerSlider').animate({opacity:'1'}, 600, 'linear');
Button.cooldown($('#embarkButton'));
Engine.keyLock = false;
Engine.restoreNavigation();
}, 2000, true);
});
}
@@ -865,6 +866,7 @@ var World = {
$('#outerSlider').animate({left: '0px'}, 300);
Engine.activeModule = Path;
Path.onArrival();
Engine.restoreNavigation();
},
leaveItAtHome: function(thing) {