bc1adeb127
Step 1 toward fixing some of our mount sprite positioning issues. If the avatar always moves up when mounted, we gain substantial freedom to reposition the mount, especially on the vertical axis.
51 lines
4.0 KiB
Plaintext
51 lines
4.0 KiB
Plaintext
//- FIXME the commented-out figure.herobox used to have a functioning popover, but angular-ui-bootstrap doesn't support
|
|
html in popovers. Figure out what to do here. Also, {isUser:..} class seems to bring the user too far down with mounts.
|
|
Removing it will remove the user's name, but will allow more room for mounts & helms. IMO this is the lesser of two evils, revisit
|
|
//-figure.herobox(ng-click='clickMember(profile._id)', data-name='{{profile.profile.name}}', ng-class='{isUser: profile.id==user.id, hasPet: profile.items.currentPet}', data-level='{{profile.stats.lvl}}', data-uid='{{profile.id}}', rel='popover', data-placement='bottom', data-trigger='hover', data-html='true', data-content="<div ng-hide='profile.id == user.id'> <div class='progress progress-danger' style='height:5px;'> <div class='bar' style='height: 5px; width: {{percent(profile.stats.hp, 50)}}%;'></div> </div> <div class='progress progress-warning' style='height:5px;'> <div class='bar' style='height: 5px; width: {{percent(profile.stats.exp, tnl(profile.stats.lvl))}}%;'></div> </div> <div>Level: {{profile.stats.lvl}}</div> <div>GP: {{profile.stats.gp | number:0}}</div> <div>{{count(profile.items.pets)}} / 90 Pets Found</div> </div>")
|
|
|
|
figure.herobox(ng-click='spell ? castEnd(profile, "user", $event) : clickMember(profile._id)', data-name='{{profile.profile.name}}', ng-class='{isUser: (user._id==profile._id && !user.items.currentMount), hasPet: profile.items.currentMount, "cast-target": applyingAction, isLeader: party.leader==profile._id}')
|
|
.character-sprites
|
|
// Mount Body
|
|
span(ng-if='profile.items.currentMount', class='Mount_Body_{{profile.items.currentMount}}')
|
|
|
|
span(ng-if='profile.stats.buffs.snowball')
|
|
span.snowman
|
|
span(ng-if='!profile.stats.buffs.snowball')
|
|
// Avatar
|
|
span(class='skin_{{profile.preferences.skin}}')
|
|
|
|
span(class='{{profile.preferences.size}}_shirt_{{profile.preferences.shirt}}')
|
|
span(class='{{profile.preferences.size}}_{{profile.items.gear.equipped.armor}}', ng-if='!profile.preferences.costume')
|
|
span(class='{{profile.preferences.size}}_{{profile.items.gear.costume.armor}}', ng-if='profile.preferences.costume')
|
|
|
|
span(class='head_0')
|
|
span(class='hair_base_{{profile.preferences.hair.base}}_{{profile.preferences.hair.color}}')
|
|
span(class='hair_bangs_{{profile.preferences.hair.bangs}}_{{profile.preferences.hair.color}}')
|
|
|
|
span(class='hair_mustache_{{profile.preferences.hair.mustache}}_{{profile.preferences.hair.color}}')
|
|
span(class='hair_beard_{{profile.preferences.hair.beard}}_{{profile.preferences.hair.color}}')
|
|
|
|
span(class='{{profile.items.gear.equipped.head}}', ng-if='!profile.preferences.costume')
|
|
span(class='{{profile.items.gear.costume.head}}', ng-if='profile.preferences.costume')
|
|
|
|
|
|
span(class='{{profile.items.gear.equipped.shield}}', ng-if='!profile.preferences.costume')
|
|
span(class='{{profile.items.gear.costume.shield}}', ng-if='profile.preferences.costume')
|
|
|
|
span(class='{{profile.items.gear.equipped.weapon}}', ng-if='!profile.preferences.costume')
|
|
span(class='{{profile.items.gear.costume.weapon}}', ng-if='profile.preferences.costume')
|
|
|
|
|
|
// Mount Head
|
|
span(ng-if='profile.items.currentMount', class='Mount_Head_{{profile.items.currentMount}}')
|
|
|
|
// Resting
|
|
span(ng-class='{zzz:profile.preferences.sleep}')
|
|
// FIXME handle @minimal, this might have to be a directive
|
|
span.current-pet(class='Pet-{{profile.items.currentPet}}', ng-show='profile.items.currentPet && !minimal')
|
|
.avatar-level(ng-class='userLevelStyle(profile,"label")')
|
|
i.icon-circle-arrow-up.icon-white(ng-show='profile.stats.buffs.str || profile.stats.buffs.per || profile.stats.buffs.con || profile.stats.buffs.int || profile.stats.buffs.stealth', tooltip=env.t('buffed'), style='margin-right:5px;')
|
|
=env.t('lvl')
|
|
| {{profile.stats.lvl}}
|
|
i.icon-plus-sign.icon-white(ng-show='profile.achievements.rebirths', tooltip=env.t('reborn') + '{{profile.achievements.rebirthLevel}}', style='margin-left:5px')
|