Added restricted hero button where the choose hero would normally go, for heroes unavailable to a particular level.

This commit is contained in:
Nick Winter 2014-12-04 13:43:19 -08:00
parent fa4f479107
commit a25d306be7
2 changed files with 6 additions and 1 deletions
app
styles/play/modal
templates/play/modal

View file

@ -287,7 +287,7 @@ $heroCanvasHeight: 265px
margin-top: 12px
margin-bottom: 5px
#purchase-hero-button
#restricted-hero-button, #purchase-hero-button
width: 209px
height: 110px
position: absolute
@ -299,6 +299,8 @@ $heroCanvasHeight: 265px
font-size: 24.5px
font-family: Open Sans Condensed
color: white
#purchase-hero-button
border: 3px solid rgb(7,65,83)
background: rgb(0,119,168)
border-radius: 0
@ -314,6 +316,8 @@ $heroCanvasHeight: 265px
&:hover > *
@include opacity(1)
//#restricted-hero-button
//- Programming select box
.form

View file

@ -68,6 +68,7 @@
span= visibleHero.name
span.spl(data-i18n="inventory.restricted_title") Restricted
span.spr(data-i18n="choose_hero.restricted_to_certain_heroes") Only certain heroes can play this level.
button.btn.disabled.btn-illustrated#restricted-hero-button(data-i18n="inventory.restricted_title") Restricted
else if visibleHero.purchasable
#purchasable-hero-explanation