2014-11-05 22:03:05 -05:00
|
|
|
.modal-dialog
|
|
|
|
.modal-content
|
2014-09-17 21:56:08 -04:00
|
|
|
|
2014-11-07 10:04:10 -05:00
|
|
|
img(src="/images/pages/play/modal/heroes-background.png")#play-heroes-background
|
2014-11-05 22:03:05 -05:00
|
|
|
|
|
|
|
h1(data-i18n="choose_hero.choose_hero")
|
2014-09-17 21:56:08 -04:00
|
|
|
|
2014-11-05 22:03:05 -05:00
|
|
|
div#close-modal
|
|
|
|
span.glyphicon.glyphicon-remove
|
|
|
|
|
|
|
|
#hero-carousel.carousel.slide(data-interval=0)
|
|
|
|
.carousel-indicator-container
|
|
|
|
ol.carousel-indicators
|
|
|
|
for hero, index in heroes
|
2014-11-15 10:40:10 -05:00
|
|
|
li(data-hero-id=hero.get('original'), title=hero.name, data-slide-to=index, data-target="#hero-carousel", class="hero-indicator hero-index-" + index + (hero.locked ? " locked" : ""))
|
2014-11-05 22:03:05 -05:00
|
|
|
.hero-avatar
|
|
|
|
if hero.locked
|
|
|
|
img.lock-indicator(src="/images/pages/game-menu/lock.png")
|
|
|
|
.carousel-inner
|
|
|
|
for hero in heroes
|
|
|
|
div(class="item hero-item" + (hero.locked ? " locked" : ""), data-hero-id=hero.get('original'))
|
|
|
|
canvas.hero-canvas
|
|
|
|
.hero-feature-image
|
|
|
|
img
|
|
|
|
.hero-stats
|
|
|
|
h2= hero.name
|
|
|
|
.hero-description= hero.description
|
|
|
|
|
|
|
|
.hero-stat-row
|
|
|
|
.stat-label(data-i18n='choose_hero.status')
|
|
|
|
.stat-value(data-i18n=hero.locked ? 'play.locked' : 'play.available')
|
|
|
|
|
|
|
|
.hero-stat-row
|
|
|
|
.stat-label(data-i18n='choose_hero.weapons')
|
|
|
|
.stat-value(data-i18n='choose_hero.weapons_'+hero.class)
|
|
|
|
|
|
|
|
if hero.stats
|
|
|
|
if hero.stats.skills.length
|
|
|
|
.hero-stat-row
|
|
|
|
.stat-label(data-i18n='choose_hero.skills')
|
|
|
|
.stat-value= hero.stats.skills.join(', ')
|
|
|
|
for stat in ['attack', 'health', 'speed']
|
|
|
|
.hero-stat-row(class=stat)
|
|
|
|
.stat-label(data-i18n='choose_hero.'+stat)
|
|
|
|
.stat-value
|
|
|
|
.stat-progress
|
|
|
|
.stat-progress-bar(style="width: " + (parseInt(hero.stats[stat]*100)) + "%")
|
|
|
|
|
|
|
|
a.left(role="button", data-slide="prev", href="#hero-carousel")
|
|
|
|
span.glyphicon.glyphicon-play
|
|
|
|
a.right(role="button", data-slide="next", href="#hero-carousel")
|
|
|
|
span.glyphicon.glyphicon-play
|
|
|
|
|
|
|
|
|
|
|
|
.form
|
|
|
|
.form-group.select-group
|
|
|
|
span.help-block(data-i18n="choose_hero.programming_language_description") Which programming language do you want to use?
|
|
|
|
//label.control-label(for="option-code-language", data-i18n="choose_hero.programming_language") Programming Language
|
|
|
|
select#option-code-language(name="code-language")
|
|
|
|
for option in codeLanguages
|
|
|
|
option(value=option.id, selected=codeLanguage === option.id)= option.name
|
|
|
|
|
|
|
|
a#confirm-button(data-i18n=confirmButtonI18N)
|