mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Better comment formatting. Manual cast by default on Project DotA.
This commit is contained in:
parent
dcf7a0d1fd
commit
01374d63c4
3 changed files with 7 additions and 1 deletions
|
@ -95,3 +95,6 @@
|
|||
|
||||
.ace_identifier
|
||||
border-bottom: 1px dotted rgba(255, 128, 128, 0.45)
|
||||
|
||||
.ace_text-layer .ace_comment
|
||||
color: #EBFADA
|
||||
|
|
|
@ -15,6 +15,7 @@ module.exports = class CastButtonView extends View
|
|||
constructor: (options) ->
|
||||
super options
|
||||
@spells = options.spells
|
||||
@levelID = options.levelID
|
||||
isMac = navigator.platform.toUpperCase().indexOf('MAC') isnt -1
|
||||
@castShortcut = "⇧↩"
|
||||
@castShortcutVerbose = "Shift+Enter"
|
||||
|
@ -34,6 +35,8 @@ module.exports = class CastButtonView extends View
|
|||
# TODO: use a User setting instead of localStorage
|
||||
delay = localStorage.getItem 'autocastDelay'
|
||||
delay ?= 5000
|
||||
if @levelID is 'project-dota'
|
||||
delay = 90019001
|
||||
@setAutocastDelay delay
|
||||
|
||||
attachTo: (spellView) ->
|
||||
|
|
|
@ -63,7 +63,7 @@ module.exports = class TomeView extends View
|
|||
@createSpells programmableThangs, programmableThangs[0].world # Do before spellList, thangList, and castButton
|
||||
@spellList = @insertSubView new SpellListView spells: @spells, supermodel: @supermodel
|
||||
@thangList = @insertSubView new ThangListView spells: @spells, thangs: @options.thangs, supermodel: @supermodel
|
||||
@castButton = @insertSubView new CastButtonView spells: @spells
|
||||
@castButton = @insertSubView new CastButtonView spells: @spells, levelID: @options.levelID
|
||||
@teamSpellMap = @generateTeamSpellMap(@spells)
|
||||
else
|
||||
@cast()
|
||||
|
|
Loading…
Reference in a new issue