phrack / ShootOFF-legacy

An open source framework to enhance laser dry fire training.
BSD 4-Clause "Original" or "Old" License
30 stars 17 forks source link

The Target Editor needs a mode for drawing arbitrary polygons. #53

Closed phrack closed 10 years ago

phrack commented 10 years ago

This would allow users to create regions of shapes that aren't currently supported as long as the shapes represent regular polygons with only straight lines as edges (e.g. IDPA/USPSA targets).

In this mode, each click should add a vertex to the shape that is being drawn and a line should be drawn between the current vertex and the last vertex that was added. The vertex and line should be simulated until the user clicks. Right clicking in this mode should reset the drawing mode and make the shape that was being drawn a solid region. Hitting ctrl+z should remove the last vertex. If there are less than 3 vertexes, an error should be shown and the shape should be deleted.

phrack commented 10 years ago

The bulk of this issue is closed in 19b1d7a255c9738ca360d9a94902b97ea062d572.