Working version of the refactoring DrawboxEditor. Added ToolBar in Editor
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user