Avatar's eyes can be set to open or closed in modals while in the Inn fixes #6282 (#7988)

* Avatar model can be set to have eyes open, eyes shut, or left to default by specifying the sleep parameter in generatedAvatar to be false, true, or null (respectively).

* Explicitly check true and false and switched to using triple equals for equality comparisons for avatar sleep setting.
This commit is contained in:
Alyssa Batula 2016-09-10 23:41:00 -04:00 committed by Blade Barringer
parent 3d53781bd3
commit aac38dda91

View file

@ -8,8 +8,10 @@ mixin generatedAvatar(options)
- options = options || {}
span(class='chair_{{profile.preferences.chair}}')
+costumeSetting('back')
if options.sleep
if options.sleep === true
span(ng-class="'skin_' + profile.preferences.skin + '_sleep'")
else if options.sleep === false
span(ng-class="'skin_' + profile.preferences.skin")
else
span(ng-class="profile.preferences.sleep ? 'skin_' + profile.preferences.skin + '_sleep' : 'skin_' + profile.preferences.skin")
span(class='{{profile.preferences.size}}_shirt_{{profile.preferences.shirt}}')