Added the function of drawing rectangular hitboxes, as well as the ability to erase and save the result. You need to draw from left to right
This commit is contained in:
@ -84,11 +84,6 @@ public class DrawboxRectengleRenderingFunction implements ShapeRenderingFunction
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseMoved(MouseEvent e) {
|
||||
@ -147,7 +142,7 @@ public class DrawboxRectengleRenderingFunction implements ShapeRenderingFunction
|
||||
entity.setDrawbox(new Drawbox(drawboxPoints));
|
||||
}
|
||||
|
||||
public void setEntity(Entity e) {
|
||||
public void setEntityInDrawboxRectengle(Entity e) {
|
||||
entity = e;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user