Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifier keys to vary the level of highlighting #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

selliott512
Copy link

Using 3D camera movement as a model the following modifier keys will affect the level (amount) of highlighting:
  Shift   - Minimal. Currently this means no highlighting.
  Control - Maximal. Draw lines connecting linedefs and sectors that
            are related via a tag.

As you probably know some level editors show the relationship between linedefs and the tagged sector with a line connecting them. Since you may have already made a design decision to not do that I wanted to share an idea about how it could be opt-in, and how it could be patterned after 3D camera movement.

Since shift results in less camera movement, and control more, I decided to apply that to highlighting as well.

The shift key turns off all highlighting. This can be helpful when the user wants to the the original color of a highlighted or selected item. It can also be helpful to make the highlighted or selected items flash, to make them easier to see.

The control key draws additional highlighting. In particular it draws a line between the tagged items.

I consider this to be a rough draft with a few "TODO"s in it. There are things that I need to understand better, like the way event handling should work. It's more proof of concept.

Here's an example of what it looks like with the control key pressed. The vertical linedef on the right side is a switch that activates the two sectors.

control-key-example

Also, the whitespace change to m_bitvec_test.cpp is because the C++ compiler on one of my Linux systems didn't like the transition from tabs to spaces.

Using 3D camera movement as a model the following modifier keys will
affect the level (amount) of highlighting:
  Shift   - Minimal. Currently this means no highlighting.
  Control - Maximal. Draw lines connecting linedefs and sectors that
            are related via a tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant