mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Merge branch 'production'
This commit is contained in:
commit
5cefb8fc30
4 changed files with 9 additions and 4 deletions
app
lib/surface
styles/play/level
templates/play/level
views/play/level
|
@ -104,7 +104,7 @@ module.exports = class SpriteBoss extends CocoClass
|
|||
unless thangType = @thangTypeFor indieSprite.thangType
|
||||
console.warn "Need to convert #{indieSprite.id}'s ThangType #{indieSprite.thangType} to a ThangType reference. Until then, #{indieSprite.id} won't show up."
|
||||
return
|
||||
sprite = new IndieSprite thangType, @createSpriteOptions {thangID: indieSprite.id, pos: indieSprite.pos, sprites: @sprites}
|
||||
sprite = new IndieSprite thangType, @createSpriteOptions {thangID: indieSprite.id, pos: indieSprite.pos, sprites: @sprites, colorConfig: indieSprite.colorConfig}
|
||||
@addSprite sprite, sprite.thang.id
|
||||
|
||||
createWizardSprite: (options) ->
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
#music-button
|
||||
@include opacity(0.25)
|
||||
font-size: 20px
|
||||
span
|
||||
position: relative
|
||||
left: -3px
|
||||
top: -2px
|
||||
&:hover
|
||||
@include opacity(0.50)
|
||||
&.music-on
|
||||
|
|
|
@ -8,7 +8,7 @@ button.btn.btn-xs.btn-inverse#volume-button(title="Adjust volume")
|
|||
i.icon-volume-down.icon-white.big
|
||||
i.icon-volume-up.icon-white.big
|
||||
button.btn.btn-xs.btn-inverse#music-button(title="Toggle Music")
|
||||
| ♫
|
||||
span ♫
|
||||
|
||||
.scrubber
|
||||
.progress.secret
|
||||
|
|
|
@ -93,7 +93,7 @@ module.exports = class HUDView extends View
|
|||
return if speakerSprite is @speakerSprite
|
||||
@speakerSprite = speakerSprite
|
||||
@speaker = @speakerSprite.thang.id
|
||||
@createAvatar @speakerSprite.thangType, @speakerSprite.thang
|
||||
@createAvatar @speakerSprite.thangType, @speakerSprite.thang, @speakerSprite.options.colorConfig
|
||||
@$el.removeClass 'no-selection'
|
||||
@switchToDialogueElements()
|
||||
|
||||
|
@ -107,9 +107,10 @@ module.exports = class HUDView extends View
|
|||
@bubble = null
|
||||
@update()
|
||||
|
||||
createAvatar: (thangType, thang) ->
|
||||
createAvatar: (thangType, thang, colorConfig) ->
|
||||
options = thang.getSpriteOptions() or {}
|
||||
options.async = false
|
||||
options.colorConfig = colorConfig
|
||||
stage = thangType.getPortraitStage options
|
||||
wrapper = @$el.find '.thang-canvas-wrapper'
|
||||
newCanvas = $(stage.canvas).addClass('thang-canvas')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue