mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-02 08:53:38 -04:00
Messed around with some of the new modals' scroll bars.
This commit is contained in:
parent
2e413700dd
commit
9b074841d6
5 changed files with 30 additions and 27 deletions
app
styles
templates/play/modal
views
|
@ -61,6 +61,6 @@
|
||||||
left: 219px
|
left: 219px
|
||||||
top: 21px
|
top: 21px
|
||||||
width: 571px
|
width: 571px
|
||||||
height: 518px
|
height: 514px
|
||||||
padding: 50px
|
padding: 50px
|
||||||
overflow: scroll
|
overflow-y: scroll
|
||||||
|
|
|
@ -260,9 +260,8 @@
|
||||||
left: 860px
|
left: 860px
|
||||||
top: 126px
|
top: 126px
|
||||||
width: 330px
|
width: 330px
|
||||||
height: 453px
|
height: 449px
|
||||||
//background: rgba(100,100,100,0.5)
|
//background: rgba(100,100,100,0.5)
|
||||||
overflow: scroll
|
|
||||||
|
|
||||||
#item-container
|
#item-container
|
||||||
height: 163px
|
height: 163px
|
||||||
|
|
|
@ -4,31 +4,33 @@
|
||||||
|
|
||||||
#item-details-body
|
#item-details-body
|
||||||
if item
|
if item
|
||||||
#item-container
|
.nano
|
||||||
img.item-img(src=item.getPortraitURL())
|
.nano-content
|
||||||
img.item-shadow(src=item.getPortraitURL())
|
#item-container
|
||||||
|
img.item-img(src=item.getPortraitURL())
|
||||||
img.hr(src="/images/pages/play/modal/hr.png")
|
img.item-shadow(src=item.getPortraitURL())
|
||||||
|
|
||||||
for stat in stats
|
|
||||||
div.stat-row.big-font
|
|
||||||
div.stat-label= stat.name
|
|
||||||
div.stat= stat.display
|
|
||||||
img.hr(src="/images/pages/play/modal/hr.png" class=stat.isLast ? "" : "faded")
|
|
||||||
|
|
||||||
if props.length
|
img.hr(src="/images/pages/play/modal/hr.png")
|
||||||
#skills
|
|
||||||
h3.big-font(data-i18n="play.skills-granted")
|
|
||||||
for prop in props
|
|
||||||
p
|
|
||||||
strong.big-font= prop.name
|
|
||||||
span.spr :
|
|
||||||
span!= prop.description
|
|
||||||
|
|
||||||
if item.comingSoon
|
for stat in stats
|
||||||
.text-center
|
div.stat-row.big-font
|
||||||
h3 This item has no stats.
|
div.stat-label= stat.name
|
||||||
p Only admins will see it for now.
|
div.stat= stat.display
|
||||||
|
img.hr(src="/images/pages/play/modal/hr.png" class=stat.isLast ? "" : "faded")
|
||||||
|
|
||||||
|
if props.length
|
||||||
|
#skills
|
||||||
|
h3.big-font(data-i18n="play.skills-granted")
|
||||||
|
for prop in props
|
||||||
|
p
|
||||||
|
strong.big-font= prop.name
|
||||||
|
span.spr :
|
||||||
|
span!= prop.description
|
||||||
|
|
||||||
|
if item.comingSoon
|
||||||
|
.text-center
|
||||||
|
h3 This item has no stats.
|
||||||
|
p Only admins will see it for now.
|
||||||
|
|
||||||
if item && !item.owned
|
if item && !item.owned
|
||||||
button#selected-item-unlock-button.btn.big-font.unlock-button(disabled=!item.affordable, data-item-id=item.id, data-i18n="play.unlock") Unlock
|
button#selected-item-unlock-button.btn.big-font.unlock-button(disabled=!item.affordable, data-item-id=item.id, data-i18n="play.unlock") Unlock
|
|
@ -51,6 +51,7 @@ module.exports = class GameMenuModal extends ModalView
|
||||||
firstView.$el.addClass 'active'
|
firstView.$el.addClass 'active'
|
||||||
firstView.onShown?()
|
firstView.onShown?()
|
||||||
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'game-menu-open', volume: 1
|
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'game-menu-open', volume: 1
|
||||||
|
@$el.find('.nano:visible').nanoScroller()
|
||||||
|
|
||||||
onTabShown: (e) ->
|
onTabShown: (e) ->
|
||||||
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'game-menu-tab-switch', volume: 1
|
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'game-menu-tab-switch', volume: 1
|
||||||
|
|
|
@ -192,6 +192,7 @@ class ItemDetailsView extends CocoView
|
||||||
propertyNames: props.join(',')
|
propertyNames: props.join(',')
|
||||||
}})
|
}})
|
||||||
@listenToOnce docs, 'sync', @onDocsLoaded
|
@listenToOnce docs, 'sync', @onDocsLoaded
|
||||||
|
@$el.find('.nano:visible').nanoScroller()
|
||||||
|
|
||||||
onDocsLoaded: (levelComponents) ->
|
onDocsLoaded: (levelComponents) ->
|
||||||
for component in levelComponents.models
|
for component in levelComponents.models
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue