aboutsummaryrefslogtreecommitdiff
path: root/src/editor.rs
diff options
context:
space:
mode:
authorArne Dußin2020-11-01 22:53:24 +0100
committerArne Dußin2020-11-01 22:53:24 +0100
commit1ed00daee8f7cb0194d11a2aa32fc8ffc544ae98 (patch)
tree86c31f3bcb28be7d762e5d330e1c8aa195daaef5 /src/editor.rs
parent678406b21c14af2d1f1bd955368637f83f049011 (diff)
downloadgraf_karto-1ed00daee8f7cb0194d11a2aa32fc8ffc544ae98.tar.gz
graf_karto-1ed00daee8f7cb0194d11a2aa32fc8ffc544ae98.zip
Add basic deletion tool
Diffstat (limited to 'src/editor.rs')
-rw-r--r--src/editor.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/editor.rs b/src/editor.rs
index 09f7e0d..a68bb25 100644
--- a/src/editor.rs
+++ b/src/editor.rs
@@ -36,6 +36,8 @@ impl Editor {
ToolType::RoomTool as usize
} else if rl.is_key_pressed(KeyboardKey::KEY_W) {
ToolType::WallTool as usize
+ } else if rl.is_key_pressed(KeyboardKey::KEY_D) {
+ ToolType::DeletionTool as usize
} else {
self.active
};