mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
mixin costumeSetting(type, options)
|
|
- options = options || {}
|
|
- var costume = (options.prefix || '') + 'profile.items.gear.costume.' + type + (options.suffix || '')
|
|
- var equipped = (options.prefix || '') + 'profile.items.gear.equipped.' + type + (options.suffix || '')
|
|
span(ng-class="profile.preferences.costume ? #{costume} : #{equipped}")
|
|
|
|
// Back accessory
|
|
+costumeSetting('back')
|
|
|
|
span(ng-class="profile.preferences.sleep ? 'skin_' + profile.preferences.skin + '_sleep' : 'skin_' + profile.preferences.skin")
|
|
|
|
// Shirt
|
|
span(class='{{profile.preferences.size}}_shirt_{{profile.preferences.shirt}}')
|
|
|
|
// Armor
|
|
+costumeSetting('armor', {prefix: "profile.preferences.size + '_' + "})
|
|
|
|
// Cape collar
|
|
+costumeSetting('back', {suffix: " + '_collar'"})
|
|
|
|
// Body
|
|
+costumeSetting('body')
|
|
|
|
// Empty outline of head
|
|
span(class='head_0')
|
|
|
|
// Hair
|
|
- var hairTypes = ['base', 'bangs', 'mustache', 'beard']
|
|
each type in hairTypes
|
|
span(class='hair_#{type}_{{profile.preferences.hair.#{type}}}_{{profile.preferences.hair.color}}')
|
|
|
|
// Head
|
|
+costumeSetting('eyewear')
|
|
+costumeSetting('head')
|
|
+costumeSetting('headAccessory')
|
|
|
|
// Flower
|
|
span(class='hair_flower_{{profile.preferences.hair.flower}}')
|
|
|
|
// Items held in hands
|
|
+costumeSetting('shield')
|
|
+costumeSetting('weapon')
|