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));
|
title.setPadding(new Insets(6.0, 0.0, 0.0, 0.0));
|
||||||
|
|
||||||
|
|
||||||
Image shipsAttacking = new Image(new FileInputStream("src/ShipsAttacking.gif"));
|
Image shipsAttacking = new Image(new FileInputStream("src/images/ShipsAttacking.gif"));
|
||||||
Image shipsRunning = new Image(new FileInputStream("src/ShipsRunning.gif"));
|
Image shipsRunning = new Image(new FileInputStream("src/images/ShipsRunning.gif"));
|
||||||
|
|
||||||
|
|
||||||
//Setting the image view
|
//Setting the image view
|
||||||
@@ -433,7 +433,7 @@ public class ShipWarfareGUI extends Player{
|
|||||||
*/
|
*/
|
||||||
public void handle(ActionEvent event) {
|
public void handle(ActionEvent event) {
|
||||||
try{
|
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!");
|
chooseFightOrRun.setText("Pressing forward in our attack!");
|
||||||
|
|
||||||
}catch (FileNotFoundException e) {
|
}catch (FileNotFoundException e) {
|
||||||
@@ -469,7 +469,7 @@ public class ShipWarfareGUI extends Player{
|
|||||||
public void handle(ActionEvent event) {
|
public void handle(ActionEvent event) {
|
||||||
shipsAttackingOrRunningGif.setVisible(true);
|
shipsAttackingOrRunningGif.setVisible(true);
|
||||||
try{
|
try{
|
||||||
shipsAttackingOrRunningGif.setImage(new Image(new FileInputStream("src/ShipsRunning.gif")));
|
shipsAttackingOrRunningGif.setImage(new Image(new FileInputStream("src/images/ShipsRunning.gif")));
|
||||||
}catch (FileNotFoundException e) {
|
}catch (FileNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import javafx.event.ActionEvent;
|
import javafx.event.ActionEvent;
|
||||||
import javafx.event.EventHandler;
|
import javafx.event.EventHandler;
|
||||||
|
import javafx.geometry.Pos;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.scene.control.*;
|
import javafx.scene.control.*;
|
||||||
import javafx.scene.layout.BorderPane;
|
import javafx.scene.layout.BorderPane;
|
||||||
@@ -145,7 +146,7 @@ public class StartGUI extends Player{
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
authors.setPrefHeight(80.0);
|
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");
|
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.setTextAlignment(javafx.scene.text.TextAlignment.CENTER);
|
||||||
|
authors.setAlignment(Pos.CENTER);
|
||||||
|
vBox0.setAlignment(Pos.CENTER);
|
||||||
borderPane.setCenter(vBox0);
|
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