diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-27 16:34:08 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-27 16:34:08 +0900 |
commit | b446655945ba1d9b92155f7fc43b37f0f2821c2a (patch) | |
tree | 40bbef4475132a4484c98463f219e7ca9dd19e5b /src/main/java/kr/syeyoung/dungeonsguide/roomedit | |
parent | 2baa6dc4a59db422415bfad996e11619093788c6 (diff) | |
download | Skyblock-Dungeons-Guide-b446655945ba1d9b92155f7fc43b37f0f2821c2a.tar.gz Skyblock-Dungeons-Guide-b446655945ba1d9b92155f7fc43b37f0f2821c2a.tar.bz2 Skyblock-Dungeons-Guide-b446655945ba1d9b92155f7fc43b37f0f2821c2a.zip |
SOLVE WATER PUZZLE TM
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/RoomDataDisplayPane.java | 8 |
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 |