Totally hid code stepper toolbar for now, since it's proving difficult to make room for it in the new design.

This commit is contained in:
Nick Winter 2014-11-23 19:40:50 -08:00
parent c203ff15a2
commit df162080c3
2 changed files with 3 additions and 1 deletions

View file

@ -95,7 +95,8 @@ module.exports = LayerAdapter = class LayerAdapter extends CocoClass
if aLank = a.lank if aLank = a.lank
if aThang = aLank.thang if aThang = aLank.thang
aPos = aThang.pos aPos = aThang.pos
if aThang.health < 0 and aThang.pos.z <= aThang.depth / 2 # Nice for not being knee deep in the dead, but not nice for ogres flying behind trees if aThang.health < 0 and aThang.pos.z <= aThang.depth / 2
# Nice for not being knee deep in the dead, just not nice for ogres flying behind trees when exploded
--az --az
if bLank = b.lank if bLank = b.lank
if bThang = bLank.thang if bThang = bLank.thang

View file

@ -800,6 +800,7 @@ module.exports = class SpellView extends CocoView
@decoratedGutter[row] = '' @decoratedGutter[row] = ''
lastExecuted = _.last executed lastExecuted = _.last executed
showToolbarView = executed.length and @spellThang.castAether.metrics.statementsExecuted > 3 and not LevelOptions[@options.level.get('slug')]?.hidesCodeToolbar # Hide for a while showToolbarView = executed.length and @spellThang.castAether.metrics.statementsExecuted > 3 and not LevelOptions[@options.level.get('slug')]?.hidesCodeToolbar # Hide for a while
showToolbarView = false # TODO: fix toolbar styling in new design to have some space for it
if showToolbarView if showToolbarView
statementIndex = Math.max 0, lastExecuted.length - 1 statementIndex = Math.max 0, lastExecuted.length - 1