Expand description
Implements placing a signal to a specific segment.
Structs§
- Position
Indicator - Simple indicator of the current location where the signal will be placed.
- Signal
Editor Plugin - Implements placing a signal to a specific segment.
- Target
Segment - Tracks to which track we want to place the signal.
Functions§
- input_
handler - Handles switching inputs for changing the side of the track where the signal is going to be placed and canceling the operation.
- on_
enter_ signal - Handles going into EditorState::Signal, spawning the position indicator and changing the state text.
- on_
exit_ signal - Handles going out of EditorState::Signal, removing the position indicator and going back to the segment’s window.
- place_
signal - Places the signal on left click.
- update_
pos_ indicator - Updates TrackPos of PositionIndicator to the current projection of the cursor position to the target segment.