New hitbox architecture. But need change function addListElement in class ListGUI and load in class Project

This commit is contained in:
2025-06-18 00:28:19 +03:00
parent f5bd320061
commit 3b81412eb2
8 changed files with 59 additions and 124 deletions

View File

@ -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