mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 00:19:50 -05:00
Finished refactoring of LevelGuideModal (renamed from docs_modal)
This commit is contained in:
parent
2e3234fc58
commit
39c01c0bcb
3 changed files with 6 additions and 6 deletions
|
@ -135,9 +135,9 @@ module.exports = class SpectateLevelView extends RootView
|
|||
|
||||
showGuide: ->
|
||||
@seenDocs = true
|
||||
DocsModal = require './level/modal/docs_modal'
|
||||
LevelGuideModal = require './level/modal/LevelGuideModal'
|
||||
options = {docs: @levelLoader.level.get('documentation'), supermodel: @supermodel}
|
||||
@openModalView(new DocsModal(options), true)
|
||||
@openModalView(new LevelGuideModal(options), true)
|
||||
Backbone.Mediator.subscribeOnce 'modal-closed', @onLevelLoaderLoaded, @
|
||||
return true
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CocoView = require 'views/kinds/CocoView'
|
||||
template = require 'templates/play/level/control_bar'
|
||||
|
||||
DocsModal = require './modal/LevelGuideModal'
|
||||
LevelGuideModal = require './modal/LevelGuideModal'
|
||||
MultiplayerModal = require './modal/MultiplayerModal'
|
||||
ReloadLevelModal = require './modal/ReloadLevelModal'
|
||||
|
||||
|
@ -76,7 +76,7 @@ module.exports = class ControlBarView extends CocoView
|
|||
|
||||
showGuideModal: ->
|
||||
options = {docs: @level.get('documentation'), supermodel: @supermodel}
|
||||
@openModalView(new DocsModal(options))
|
||||
@openModalView(new LevelGuideModal(options))
|
||||
clearInterval @guideHighlightInterval
|
||||
@guideHighlightInterval = null
|
||||
|
||||
|
|
|
@ -133,12 +133,12 @@ module.exports = class PlayLevelView extends RootView
|
|||
|
||||
showGuide: ->
|
||||
@seenDocs = true
|
||||
DocsModal = require './modal/docs_modal'
|
||||
LevelGuideModal = require './modal/LevelGuideModal'
|
||||
options =
|
||||
docs: @levelLoader.level.get('documentation')
|
||||
supermodel: @supermodel
|
||||
firstOnly: true
|
||||
@openModalView(new DocsModal(options), true)
|
||||
@openModalView(new LevelGuideModal(options), true)
|
||||
onGuideOpened = ->
|
||||
@guideOpenTime = new Date()
|
||||
onGuideClosed = ->
|
||||
|
|
Loading…
Reference in a new issue