mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
feat(flower): add flower customization option
This commit is contained in:
parent
2661034fbd
commit
531fe5eb31
3 changed files with 11 additions and 0 deletions
|
|
@ -241,6 +241,7 @@ var UserSchema = new Schema({
|
|||
bangs: {type: Number, 'default': 0},
|
||||
beard: {type: Number, 'default': 0},
|
||||
mustache: {type: Number, 'default': 0},
|
||||
flower: Number
|
||||
},
|
||||
hideHeader: {type:Boolean, 'default':false},
|
||||
skin: {type:String, 'default':'c06534'},
|
||||
|
|
|
|||
|
|
@ -65,6 +65,13 @@ script(id='partials/options.profile.avatar.html', type='text/ng-template')
|
|||
|
||||
button.btn.btn-sm.btn-primary(ng-hide='user.purchased.hair.base.2 && user.purchased.hair.base.4 && user.purchased.hair.base.5 && user.purchased.hair.base.6 && user.purchased.hair.base.7 && user.purchased.hair.base.8', ng-click='unlock("hair.base.2,hair.base.4,hair.base.5,hair.base.6,hair.base.7,hair.base.8")')!= env.t('unlockSet5') + ' <span class="Pet_Currency_Gem1x inline-gems"/>'
|
||||
|
||||
// Flower
|
||||
li.customize-menu
|
||||
menu(label="Flower")
|
||||
button(class='head_0 customize-option', type='button', ng-click='set({"preferences.hair.flower":0})')
|
||||
each num in [1,2,3,4,5,6]
|
||||
button(class='hair_flower_#{num} customize-option', type='button', ng-click='set({"preferences.hair.flower":#{num}})')
|
||||
|
||||
h5=env.t('bodyFacialHair')
|
||||
|
||||
// Beard
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ figure.herobox(ng-click='spell ? castEnd(profile, "user", $event) : clickMember(
|
|||
span(class='{{profile.items.gear.equipped.head}}', ng-if='!profile.preferences.costume')
|
||||
span(class='{{profile.items.gear.costume.head}}', ng-if='profile.preferences.costume')
|
||||
|
||||
// Head Accessory
|
||||
span(class='hair_flower_{{profile.preferences.hair.flower}}')
|
||||
|
||||
// Shield
|
||||
span(class='{{profile.items.gear.equipped.shield}}', ng-if='!profile.preferences.costume')
|
||||
span(class='{{profile.items.gear.costume.shield}}', ng-if='profile.preferences.costume')
|
||||
|
|
|
|||
Loading…
Reference in a new issue