mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 08:29:56 -05:00
Autoplay when observing others' replays
This commit is contained in:
parent
8fd47535d1
commit
97043c4a25
1 changed files with 3 additions and 1 deletions
|
@ -357,7 +357,9 @@ module.exports = class PlayLevelView extends RootView
|
||||||
@selectHero()
|
@selectHero()
|
||||||
|
|
||||||
onLoadingViewUnveiled: (e) ->
|
onLoadingViewUnveiled: (e) ->
|
||||||
Backbone.Mediator.publish 'level:set-playing', playing: true if @level.get('type') in ['course-ladder', 'hero-ladder'] # We used to autoplay by default, but now we only do it if the level says to in the introduction script.
|
if @level.get('type') in ['course-ladder', 'hero-ladder'] or @observing
|
||||||
|
# We used to autoplay by default, but now we only do it if the level says to in the introduction script.
|
||||||
|
Backbone.Mediator.publish 'level:set-playing', playing: true
|
||||||
@loadingView.$el.remove()
|
@loadingView.$el.remove()
|
||||||
@removeSubView @loadingView
|
@removeSubView @loadingView
|
||||||
@loadingView = null
|
@loadingView = null
|
||||||
|
|
Loading…
Reference in a new issue