mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 15:50:11 -04:00
Added restricted hero button where the choose hero would normally go, for heroes unavailable to a particular level.
This commit is contained in:
parent
fa4f479107
commit
a25d306be7
2 changed files with 6 additions and 1 deletions
app
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue