From 4833f9d4ee082c570030158ae02d85331cc68e77 Mon Sep 17 00:00:00 2001 From: badvision Date: Sun, 16 Jul 2017 21:47:20 -0500 Subject: [PATCH] Added script eraser tool to map editor --- .../org/badvision/outlaweditor/MapEditor.java | 17 ++++++++++++++- .../ui/MapEditorTabController.java | 5 ++++- .../ui/impl/MapEditorTabControllerImpl.java | 13 ++++++------ .../src/main/resources/mapEditorTab.fxml | 21 +++++++++++++++---- 4 files changed, 44 insertions(+), 12 deletions(-) diff --git a/OutlawEditor/src/main/java/org/badvision/outlaweditor/MapEditor.java b/OutlawEditor/src/main/java/org/badvision/outlaweditor/MapEditor.java index 675a32bc..36f8f23c 100644 --- a/OutlawEditor/src/main/java/org/badvision/outlaweditor/MapEditor.java +++ b/OutlawEditor/src/main/java/org/badvision/outlaweditor/MapEditor.java @@ -110,6 +110,9 @@ public class MapEditor extends Editor implements EventH case ScriptPencil: drawCanvas.setCursor(Cursor.CLOSED_HAND); break; + case ScriptEraser: + drawCanvas.setCursor(Cursor.OPEN_HAND); + break; default: setCurrentTile(getCurrentTile()); break; @@ -567,9 +570,14 @@ public class MapEditor extends Editor implements EventH throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } + private boolean hasScriptsAt(int x, int y) { + List