Moved around a few of the images and changed the dimensions of the start screen
This commit is contained in:
@@ -345,8 +345,8 @@ public class ShipWarfareGUI extends Player{
|
||||
title.setPadding(new Insets(6.0, 0.0, 0.0, 0.0));
|
||||
|
||||
|
||||
Image shipsAttacking = new Image(new FileInputStream("src/ShipsAttacking.gif"));
|
||||
Image shipsRunning = new Image(new FileInputStream("src/ShipsRunning.gif"));
|
||||
Image shipsAttacking = new Image(new FileInputStream("src/images/ShipsAttacking.gif"));
|
||||
Image shipsRunning = new Image(new FileInputStream("src/images/ShipsRunning.gif"));
|
||||
|
||||
|
||||
//Setting the image view
|
||||
@@ -433,7 +433,7 @@ public class ShipWarfareGUI extends Player{
|
||||
*/
|
||||
public void handle(ActionEvent event) {
|
||||
try{
|
||||
shipsAttackingOrRunningGif.setImage(new Image(new FileInputStream("src/ShipsAttacking.gif")));
|
||||
shipsAttackingOrRunningGif.setImage(new Image(new FileInputStream("src/images/ShipsAttacking.gif")));
|
||||
chooseFightOrRun.setText("Pressing forward in our attack!");
|
||||
|
||||
}catch (FileNotFoundException e) {
|
||||
@@ -469,7 +469,7 @@ public class ShipWarfareGUI extends Player{
|
||||
public void handle(ActionEvent event) {
|
||||
shipsAttackingOrRunningGif.setVisible(true);
|
||||
try{
|
||||
shipsAttackingOrRunningGif.setImage(new Image(new FileInputStream("src/ShipsRunning.gif")));
|
||||
shipsAttackingOrRunningGif.setImage(new Image(new FileInputStream("src/images/ShipsRunning.gif")));
|
||||
}catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.scene.layout.BorderPane;
|
||||
@@ -145,7 +146,7 @@ public class StartGUI extends Player{
|
||||
*
|
||||
*/
|
||||
authors.setPrefHeight(80.0);
|
||||
authors.setPrefWidth(499.0);
|
||||
authors.setPrefWidth(480.0);
|
||||
authors.setText("By Vikram Bawa, Haris Muhammad, Siddhant Dewani, Nathan Lum \nand Harkamal Randhawa");
|
||||
|
||||
/**
|
||||
@@ -153,6 +154,8 @@ public class StartGUI extends Player{
|
||||
*
|
||||
*/
|
||||
authors.setTextAlignment(javafx.scene.text.TextAlignment.CENTER);
|
||||
authors.setAlignment(Pos.CENTER);
|
||||
vBox0.setAlignment(Pos.CENTER);
|
||||
borderPane.setCenter(vBox0);
|
||||
|
||||
/**
|
||||
|
||||
|
Before Width: | Height: | Size: 606 KiB After Width: | Height: | Size: 606 KiB |
|
Before Width: | Height: | Size: 666 KiB After Width: | Height: | Size: 666 KiB |
Reference in New Issue
Block a user