From 01374d63c43bd4853f0bb02fa6a6ca389bc4c691 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Wed, 19 Feb 2014 14:00:54 -0800 Subject: [PATCH] Better comment formatting. Manual cast by default on Project DotA. --- app/styles/play/level/tome/spell.sass | 3 +++ app/views/play/level/tome/cast_button_view.coffee | 3 +++ app/views/play/level/tome/tome_view.coffee | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/styles/play/level/tome/spell.sass b/app/styles/play/level/tome/spell.sass index 751ddea22..ab3391bd8 100644 --- a/app/styles/play/level/tome/spell.sass +++ b/app/styles/play/level/tome/spell.sass @@ -95,3 +95,6 @@ .ace_identifier border-bottom: 1px dotted rgba(255, 128, 128, 0.45) + + .ace_text-layer .ace_comment + color: #EBFADA diff --git a/app/views/play/level/tome/cast_button_view.coffee b/app/views/play/level/tome/cast_button_view.coffee index 0a80e6a47..1b8452e42 100644 --- a/app/views/play/level/tome/cast_button_view.coffee +++ b/app/views/play/level/tome/cast_button_view.coffee @@ -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) -> diff --git a/app/views/play/level/tome/tome_view.coffee b/app/views/play/level/tome/tome_view.coffee index 76f65361d..151341e7c 100644 --- a/app/views/play/level/tome/tome_view.coffee +++ b/app/views/play/level/tome/tome_view.coffee @@ -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()