-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Improve visibility of currently-executing-line indicator #6
Description
Aether can (in some levels) highlight the currently executing line, as well as indicating which lines have been executed already:
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:
- It should be totally obvious which line is currently executing.
- It should be clear that that's what the indicator is trying to indicate.
- We should be able to indicate which statements have already executed (not just lines, since we can be more specific than that).
- 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:
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.


