Add Shape Tool for drawing polygons (#75)

* ⬠ Add polygon drawing tool

* 🔤 Minor fix of variable and function names

*  Remove stroke

* ⌨️ Use N key as polygo tool shortcut.

* ⌨️ Now using key Y for polygons.

* ⌨️ The tooltip for the shortcut is fixed
This commit is contained in:
0HyperCube
2021-04-17 11:08:44 -07:00
committed by GitHub
parent c94c2b3373
commit b30e9ce3ba
9 changed files with 324 additions and 95 deletions
+1
View File
@@ -84,6 +84,7 @@ pub fn translate_key(name: &str) -> events::Key {
"m" => K::KeyM,
"x" => K::KeyX,
"z" => K::KeyZ,
"y" => K::KeyY,
"0" => K::Key0,
"1" => K::Key1,
"2" => K::Key2,