Better comment formatting. Manual cast by default on Project DotA.

This commit is contained in:
Nick Winter 2014-02-19 14:00:54 -08:00
parent dcf7a0d1fd
commit 01374d63c4
3 changed files with 7 additions and 1 deletions

View file

@ -95,3 +95,6 @@
.ace_identifier
border-bottom: 1px dotted rgba(255, 128, 128, 0.45)
.ace_text-layer .ace_comment
color: #EBFADA

View file

@ -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) ->

View file

@ -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()