Working version of the refactoring DrawboxEditor. Added ToolBar in Editor

This commit is contained in:
2026-03-24 17:19:32 +03:00
parent ab30acd69a
commit a0a69c3587
7 changed files with 96 additions and 66 deletions

View File

@ -21,8 +21,8 @@ public class DrawboxRectengleRenderingFunction implements ShapeRenderingFunction
private List<EntityDrawboxChangedListener> listeners = new ArrayList<>();
Entity entity;
Logger logger = Logger.getLogger("gui.DrawboxRectangleEditor");
public DrawboxRectengleRenderingFunction(Entity entity) {
this.entity = entity;
public DrawboxRectengleRenderingFunction() {
}
@Override
@ -147,4 +147,8 @@ public class DrawboxRectengleRenderingFunction implements ShapeRenderingFunction
entity.setDrawbox(new Drawbox(drawboxPoints));
}
public void setEntity(Entity e) {
entity = e;
}
}