mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-07 10:34:46 -04:00
Fixed bug returning to normal selection from talking portrait in HUD.
This commit is contained in:
parent
25d2f95db9
commit
69df0079af
1 changed files with 2 additions and 4 deletions
|
@ -65,7 +65,7 @@ module.exports = class HUDView extends View
|
|||
unless @speaker
|
||||
if not thang? and not @thang? then return
|
||||
if thang? and @thang? and thang.id is @thang.id then return
|
||||
|
||||
|
||||
@thang = thang
|
||||
@thangType = thangType
|
||||
@$el.toggleClass 'no-selection', not @thang?
|
||||
|
@ -91,7 +91,7 @@ module.exports = class HUDView extends View
|
|||
clearSpeaker: ->
|
||||
if not @thang
|
||||
@$el.addClass 'no-selection'
|
||||
@setThang @thang
|
||||
@setThang @thang, @thangType
|
||||
@switchToThangElements()
|
||||
@speaker = null
|
||||
@speakerSprite = null
|
||||
|
@ -108,8 +108,6 @@ module.exports = class HUDView extends View
|
|||
stage.update()
|
||||
@stage?.stopTalking()
|
||||
@stage = stage
|
||||
f = => console.log 'new canvas style timeout', newCanvas.attr 'style'
|
||||
setTimeout f, 1000
|
||||
|
||||
onThangBeganTalking: (e) ->
|
||||
return unless @stage and @thang is e.thang
|
||||
|
|
Loading…
Add table
Reference in a new issue