User Pref: Crosshair option #53
Labels
No labels
bug
doodad
enhancement
levels & doodads
security
ui toolkit
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SketchyMaze/doodle#53
Loading…
Add table
Add a link
Reference in a new issue
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.