aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/RoomDataDisplayPane.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/RoomDataDisplayPane.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/RoomDataDisplayPane.java
index 38d57eef..be517e81 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/RoomDataDisplayPane.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/RoomDataDisplayPane.java
@@ -76,6 +76,14 @@ public class RoomDataDisplayPane extends MPanel {
this.setBounds(new Rectangle(5,5,parentWidth-10,parentHeight-10));
}
+ @Override
+ public void keyTyped(char typedChar, int keyCode) {
+ int[][] blocks = dungeonRoom.getDungeonRoomInfo().getBlocks();
+ if (selectedX != -1 && selectedY != -1 && selectedY < blocks.length && selectedX < blocks[0].length) {
+ dungeonRoom.getDungeonRoomInfo().getBlocks()[selectedY][selectedX] = -1;
+ }
+ }
+
private int lastX;
private int lastY;
@Override