Continuities/adarkroom — pull request #25 by toofarapart (2013-07-06 22:36:05+00:00)
Title: Stores panel now persists on all non-world/non-space views.

While playing through the game I found myself annoyed at not being able to see my current stores when adjusting worker counts- so I decided to dive into the code and see what I could accomplish.

Here are the results! With these changes, the Stores panel stays locked on the right side of the screen, moving up or down (with animation) to make room for other panels (moving beneath the village panel while Outside, and beneath the perks panel while on the Path/embark screen).

Some things to note:

* I found and fixed a bug while working on this in which the Village panel would not expand past the first two items shortly after loading from a saved game (it does fix itself eventually though). If it turns out this new behavior isn't wanted, it can be fixed by adding a quick `Outside.updateVillage();` to `Outside.onArrival()`.
* I also experimented with keeping the Stores panel on top at all times, but found this version to be more...fun. I understand that might not be the best basis for design, however.
* I have almost no previous JavaScript/JQuery experience, so if I made any horrendous breaches of standard, let me know.