New hitbox architecture. But need change function addListElement in class ListGUI and load in class Project
This commit is contained in:
@ -21,7 +21,7 @@ public class HitboxEditor extends Editable {
|
||||
|
||||
@Override
|
||||
public void drawing(Graphics2D g) {
|
||||
Hitbox nowHitbox = entity.getHitbox();
|
||||
/*Hitbox nowHitbox = entity.getHitbox();
|
||||
//if(firstIsoPoint != null) {
|
||||
int x1,y1,x2,y2;
|
||||
int size = nowHitbox.getListPointsIso().size();
|
||||
@ -38,7 +38,7 @@ public class HitboxEditor extends Editable {
|
||||
y2 = (int)nowHitbox.getListPointsIso().get(3).y;
|
||||
g.drawLine(x1, y1, x2, y2);
|
||||
//}
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -69,7 +69,7 @@ public class HitboxEditor extends Editable {
|
||||
|
||||
@Override
|
||||
public void mouseMoved(MouseEvent e) {
|
||||
currentIsoPoint.x = e.getX();
|
||||
/*currentIsoPoint.x = e.getX();
|
||||
currentIsoPoint.y = e.getY();
|
||||
if(entity!=null) {
|
||||
Hitbox nowHitbox = entity.getHitbox();
|
||||
@ -83,7 +83,7 @@ public class HitboxEditor extends Editable {
|
||||
nowHitbox.convertCartesianPointsToIso();
|
||||
repaint();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user