User Pref: Crosshair option #53
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SketchyMaze/doodle#53
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a setting to draw a + crosshair centered at the cursor, with configurable length as a percentage of the screen or so a maxed out length has the crosshair always reach the edges of the editor viewport.
% of screen algorithm:
Say the editor viewport is 800x600 pixels (inside of surrounding toolbars/UI)
Take the shorter edge (600) to use for the percent calculations.
Take the mouse cursor position over the viewport (e.g., 400x400) and compute the two vertical and two horizontal points to draw the lines. Constrain these points to the edges of the viewport if they run over.
Draw the lines.