display avatar with closed eyes when sleeping

Display the sleeping version, when users are in the inn.

CAUTION: For this to work, this pull request will have to be merged first: https://github.com/HabitRPG/habitrpg-shared/pull/269
Otherwise the _sleep images are missing. ;)
This commit is contained in:
Phillip Thelen 2014-08-03 20:39:09 +02:00
parent 40fb17fdaf
commit 49d056fe14

View file

@ -19,8 +19,8 @@ mixin avatar(opts)
span(class='{{profile.items.gear.costume.back}}', ng-if='profile.preferences.costume')
// Avatar
span(class='skin_{{profile.preferences.skin}}')
span(class='skin_{{profile.preferences.skin}}', ng-if='!profile.preferences.sleep')
span(class='skin_{{profile.preferences.skin}}_sleep', ng-if='profile.preferences.sleep')
// Shirt
span(class='{{profile.preferences.size}}_shirt_{{profile.preferences.shirt}}')