Made the fight gif runnable by everyone hopefully
This commit is contained in:
@@ -345,10 +345,6 @@ public class ShipWarfareGUI extends Player{
|
||||
title.setPadding(new Insets(6.0, 0.0, 0.0, 0.0));
|
||||
|
||||
|
||||
//Creating an image
|
||||
|
||||
//Image image = new Image(new FileInputStream("/Users/harismuhammad/Desktop/ShipsAttacking.gif"));
|
||||
System.out.println(System.getProperty("user.dir"));
|
||||
Image image = new Image(new FileInputStream("src/ShipsAttacking.gif"));
|
||||
|
||||
//Setting the image view
|
||||
@@ -360,9 +356,6 @@ public class ShipWarfareGUI extends Player{
|
||||
shipsAttackingGif.setVisible(false);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BorderPane.setAlignment(hBox, javafx.geometry.Pos.CENTER);
|
||||
hBox.setAlignment(javafx.geometry.Pos.CENTER);
|
||||
hBox.setPrefHeight(100.0);
|
||||
|
||||
BIN
src/ShipsAttacking.gif
Normal file
BIN
src/ShipsAttacking.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 606 KiB |
Reference in New Issue
Block a user