Skip to content

Improve visibility of currently-executing-line indicator #6

@nwinter

Description

@nwinter

Aether can (in some levels) highlight the currently executing line, as well as indicating which lines have been executed already:

screenshot 2013-12-31 19 43 39

See the black gutter arrow and light blue highlight on line five, and the lighter blue highlight on line three? Really? You're the only one.

In our UX testing, players almost never see this even when it would be really helpful, so it's clearly not obvious enough. Also, I just made up the design as a placeholder, but I didn't make it ugly enough to warrant immediate redesign, so no one has come along to do a better job. If you have an idea for a design that meets these objectives, then let's hear it:

  1. It should be totally obvious which line is currently executing.
  2. It should be clear that that's what the indicator is trying to indicate.
  3. We should be able to indicate which statements have already executed (not just lines, since we can be more specific than that).
  4. It looks cool. (Wizardly magic animation?!)

Currently, we're using dynamic marker ranges in ACE to add "executing" or "executed" classes to spans of text (stacking up to three of the "executed" markers to indicate multiple executions), as well as adding the "executing" class to the gutter cell for the current line:

screenshot 2013-12-31 19 51 29

screenshot 2013-12-31 19 49 46

We could get more complicated if this CSS doesn't cut it, but if you have an idea that can be done just by tweaking the effects of those classes, then it'll be easy to try out by tweaking app/styles/play/level/tome/spell.sass

Otherwise, check out how the ranges are done in app/views/play/level/tome/spell_view.coffee:highlightCurrentLine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions