605391e4e7
* Changed files to fix Bug 7958: - website/client-old/.../userCtrl.js#38: removed to keep inventory constant - website/common/.../changeClass.js#33: removed to stop 'classes' introduction * Adjustments following Bug Review - Removed remaining 'foundKey' logic - Adjusted test logic to reflect feature change * Reverting userCtrl.js to development version - Reintroduces "classes" Guide tour * New version of Fixes #7958 - Changed logic to only notify user the first time they choose a class - Changed message to represent this change in logic - #LINT: Cleaned interface for changing class - New method: enableClasses() -- because, really, should we be calling User.changeClass({}) from the UX? - New method: payForNewClass() -- handles prompting the user to confirm that they want to change class * Remove new User Flag, use flags.tour.classes * Whoopsie. Fix PR conflict. * Changed files to fix Bug 7958: - website/client-old/.../userCtrl.js#38: removed to keep inventory constant - website/common/.../changeClass.js#33: removed to stop 'classes' introduction * Adjustments following Bug Review - Removed remaining 'foundKey' logic - Adjusted test logic to reflect feature change * Reverting userCtrl.js to development version - Reintroduces "classes" Guide tour * New version of Fixes #7958 - Changed logic to only notify user the first time they choose a class - Changed message to represent this change in logic - #LINT: Cleaned interface for changing class - New method: enableClasses() -- because, really, should we be calling User.changeClass({}) from the UX? - New method: payForNewClass() -- handles prompting the user to confirm that they want to change class * Remove new User Flag, use flags.tour.classes * Whoopsie. Fix PR conflict. * Removed Extraneous Flag * Removed Extraneous Flag * Changed files to fix Bug 7958: - website/client-old/.../userCtrl.js#38: removed to keep inventory constant - website/common/.../changeClass.js#33: removed to stop 'classes' introduction * New version of Fixes #7958 - Changed logic to only notify user the first time they choose a class - Changed message to represent this change in logic - #LINT: Cleaned interface for changing class - New method: enableClasses() -- because, really, should we be calling User.changeClass({}) from the UX? - New method: payForNewClass() -- handles prompting the user to confirm that they want to change class Remove new User Flag, use flags.tour.classes Whoopsie. Fix PR conflict. Removed Extraneous Flag * Fixes handling architecture change * Updates following Review 20170418-0602 * Remove cause of mocha/no-exclusive-tests lint failure
74 lines
4.4 KiB
Plaintext
74 lines
4.4 KiB
Plaintext
script(type='text/ng-template', id='modals/chooseClass.html')
|
|
.modal-header
|
|
h4=env.t('chooseClassHeading')
|
|
.modal-body.select-class
|
|
.container-fluid
|
|
.row
|
|
.col-md-3(ng-click='selectedClass = "warrior"')
|
|
h5!=env.t('warriorWiki')
|
|
figure.herobox(ng-class='{"selected-class": selectedClass=="warrior"}')
|
|
.character-sprites
|
|
span(class='skin_{{user.preferences.skin}}')
|
|
span(class='{{user.preferences.size}}_armor_warrior_5')
|
|
span(class='head_0')
|
|
span(class='hair_base_{{user.preferences.hair.base}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_bangs_{{user.preferences.hair.bangs}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_beard_{{user.preferences.hair.beard}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_mustache_{{user.preferences.hair.mustache}}_{{user.preferences.hair.color}}')
|
|
span(class='head_warrior_5')
|
|
span(class='shield_warrior_5')
|
|
span(class='weapon_warrior_6')
|
|
.col-md-3(ng-click='selectedClass = "wizard"')
|
|
h5!=env.t('mageWiki')
|
|
figure.herobox(ng-class='{"selected-class": selectedClass=="wizard"}')
|
|
.character-sprites
|
|
span(class='skin_{{user.preferences.skin}}')
|
|
span(class='{{user.preferences.size}}_armor_wizard_5')
|
|
span(class='head_0')
|
|
span(class='hair_base_{{user.preferences.hair.base}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_bangs_{{user.preferences.hair.bangs}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_beard_{{user.preferences.hair.beard}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_mustache_{{user.preferences.hair.mustache}}_{{user.preferences.hair.color}}')
|
|
span(class='head_wizard_5')
|
|
span(class='shield_wizard_5')
|
|
span(class='weapon_wizard_6')
|
|
.col-md-3(ng-click='selectedClass = "rogue"')
|
|
h5!=env.t('rogueWiki')
|
|
figure.herobox(ng-class='{"selected-class": selectedClass=="rogue"}')
|
|
.character-sprites
|
|
span(class='skin_{{user.preferences.skin}}')
|
|
span(class='{{user.preferences.size}}_armor_rogue_5')
|
|
span(class='head_0')
|
|
span(class='hair_base_{{user.preferences.hair.base}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_bangs_{{user.preferences.hair.bangs}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_beard_{{user.preferences.hair.beard}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_mustache_{{user.preferences.hair.mustache}}_{{user.preferences.hair.color}}')
|
|
span(class='head_rogue_5')
|
|
span(class='shield_rogue_6')
|
|
span(class='weapon_rogue_6')
|
|
.col-md-3(ng-click='selectedClass = "healer"')
|
|
h5!=env.t('healerWiki')
|
|
figure.herobox(ng-class='{"selected-class": selectedClass=="healer"}')
|
|
.character-sprites
|
|
span(class='skin_{{user.preferences.skin}}')
|
|
span(class='{{user.preferences.size}}_armor_healer_5')
|
|
span(class='head_0')
|
|
span(class='hair_base_{{user.preferences.hair.base}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_bangs_{{user.preferences.hair.bangs}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_beard_{{user.preferences.hair.beard}}_{{user.preferences.hair.color}}')
|
|
span(class='hair_mustache_{{user.preferences.hair.mustache}}_{{user.preferences.hair.color}}')
|
|
span(class='head_healer_5')
|
|
span(class='shield_healer_5')
|
|
span(class='weapon_healer_6')
|
|
br
|
|
.well(ng-show='selectedClass=="warrior"')=env.t('warriorText')
|
|
.well(ng-show='selectedClass=="wizard"')=env.t('mageText')
|
|
.well(ng-show='selectedClass=="rogue"')=env.t('rogueText')
|
|
.well(ng-show='selectedClass=="healer"')=env.t('healerText')
|
|
|
|
.modal-footer
|
|
span(popover-placement='left', popover-trigger='mouseenter', popover=env.t('optOutOfClassesText'))
|
|
button.btn.btn-danger(ng-click='User.disableClasses({}); $close()')=env.t('optOutOfClasses')
|
|
button.btn.btn-primary(ng-disabled='!selectedClass' ng-click='changeClass(selectedClass); selectedClass = undefined; $close()')=env.t('select')
|
|
.pull-left!=env.t('chooseClassLearn')
|