Compass relocation

This commit carries some changes.
* the compass is now a "special" item, not "good". It allows a different placing
* Store block is now divided into 2 parts. All the script is adapted to make room for it, including empty block check and insert animation for the new #store children divs
** Above: stackable storable items (resources), whose tooltip shows updated income/consumption rates
** Below: special storable items. As of now, it only contains the compass. Special block has a special style, with some distance from resources block if that one exists.
* Compass row has an empty tooltip which is filled in by World
This commit is contained in:
Andrea Rendine
2015-05-06 20:44:53 +02:00
committed by Blake Grotewold
parent 7208b845b1
commit 03fae08ff2
4 changed files with 100 additions and 24 deletions
+1
View File
@@ -423,6 +423,7 @@ var StateManager = {
case 'tool':
case 'weapon':
case 'upgrade':
case 'special':
return $SM.get('stores["'+name+'"]', true);
case 'building':
return $SM.get('game.buildings["'+name+'"]', true);