Adjusts to rack and plateau

master
Cemal Odabasioglu 2022-05-04 09:51:50 +02:00
parent b8bf1ab8a8
commit 172663cb13
2 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class LaticeApplicationWindow extends Application{
Rectangle r[] = new Rectangle[81];
for (int i=1; i<10 ; i++) {
for (int j=1; j < 10 ; j++) {
r[i] = new Rectangle(i*52+336,j*52+15,50,50);
r[i] = new Rectangle(i*52+336,j*52-17,50,50);
r[i].setFill(realColor.TRANSPARENT);
r[i].setStroke(realColor.BLACK);

View File

@ -61,6 +61,8 @@ public class Rack {
image = new Image(tile.getShape().getStringShape() + "_" + tile.getColor().getStringColor()+ ".png");
imageView = new ImageView(image);
imageView.setFitHeight(80);
imageView.setFitWidth(80);
rack.getChildren().add(imageView);
}