Stores panel now persists on all non-world/non-space views.

This commit is contained in:
Matt Rasmus
2013-07-06 14:56:27 -07:00
parent 12258689e8
commit 8dabee851d
6 changed files with 59 additions and 7 deletions
+8 -1
View File
@@ -479,6 +479,10 @@ var Outside = {
}
this.setTitle();
if(Engine.activeModule === Outside && village.children().length > 1) {
$('#storesContainer').css({top: village.height() + 26 + 'px'});
}
},
checkWorker: function(name) {
@@ -583,13 +587,16 @@ var Outside = {
$('#location_outside').text(title);
},
onArrival: function() {
onArrival: function(transition_diff) {
Outside.setTitle();
if(!State.seenForest) {
Notifications.notify(Outside, "the sky is grey and the wind blows relentlessly");
State.seenForest = true;
}
Outside.updateTrapButton();
Outside.updateVillage();
Engine.moveStoresView($('#village'), transition_diff);
},
gatherWood: function() {