Skip to content

Commit 09b8a98

Browse files
committed
Store assets in appropriate dir
1 parent 2a131b2 commit 09b8a98

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/views/CivView.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ private void buildMenu(Stage stage) {
14951495
Platform.exit();
14961496
System.exit(0);
14971497
});
1498-
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/views/background.jpg",32,32,false,true),
1498+
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/assets/menus/background.jpg",32,32,false,true),
14991499
BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT, BackgroundPosition.DEFAULT,
15001500
BackgroundSize.DEFAULT);
15011501
MenuOptions.setBackground(new Background(myBI));
@@ -1538,7 +1538,7 @@ private void newGameMapSelection(Stage stage) {
15381538
garbageTop.setMinHeight(160);
15391539
Button map1 = new Button("Map 1");
15401540
Text label1 = new Text(" 2-4 Players");
1541-
Image image1 = new Image("file:./src/views/Map1.PNG", 110, 110, false, true);
1541+
Image image1 = new Image("file:./src/assets/menus/Map1.PNG", 110, 110, false, true);
15421542
Canvas canvas1 = new Canvas(110, 110);
15431543
GraphicsContext context1 = canvas1.getGraphicsContext2D();
15441544
context1.drawImage(image1, 0, 0);
@@ -1552,7 +1552,7 @@ private void newGameMapSelection(Stage stage) {
15521552
VBox col2 = new VBox();
15531553
Button map2 = new Button("Map 2");
15541554
Text label2 = new Text(" 2-3 Players");
1555-
Image image2 = new Image("file:./src/views/Map2.PNG", 110, 110, false, true);
1555+
Image image2 = new Image("file:./src/assets/menus/Map2.PNG", 110, 110, false, true);
15561556
Canvas canvas2 = new Canvas(110, 110);
15571557
GraphicsContext context2 = canvas2.getGraphicsContext2D();
15581558
context2.drawImage(image2, 0, 0);
@@ -1566,7 +1566,7 @@ private void newGameMapSelection(Stage stage) {
15661566
VBox col3 = new VBox();
15671567
Button map3 = new Button("Map 3");
15681568
Text label3 = new Text(" 2 Players ");
1569-
Image image3 = new Image("file:./src/views/Map3.PNG", 110, 110, false, true);
1569+
Image image3 = new Image("file:./src/assets/menus/Map3.PNG", 110, 110, false, true);
15701570
Canvas canvas3 = new Canvas(110,110);
15711571
GraphicsContext context3 = canvas3.getGraphicsContext2D();
15721572
context3.drawImage(image3, 0, 0);
@@ -1580,7 +1580,7 @@ private void newGameMapSelection(Stage stage) {
15801580
VBox col4 = new VBox();
15811581
Button map4 = new Button("Map 4");
15821582
Text label4 = new Text(" 2-4 Players");
1583-
Image image4 = new Image("file:./src/views/Map4.PNG", 110, 110, false, true);
1583+
Image image4 = new Image("file:./src/assets/menus/Map4.PNG", 110, 110, false, true);
15841584
Canvas canvas4 = new Canvas(110,110);
15851585
GraphicsContext context4 = canvas4.getGraphicsContext2D();
15861586
context4.drawImage(image4, 0, 0);
@@ -1595,7 +1595,7 @@ private void newGameMapSelection(Stage stage) {
15951595
col3.setSpacing(10);
15961596
col4.setSpacing(10);
15971597
mapSelection.getChildren().addAll(col1, col2, col3, col4);
1598-
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/views/background.jpg",32,32,false,true),
1598+
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/assets/menus/background.jpg",32,32,false,true),
15991599
BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT, BackgroundPosition.DEFAULT,
16001600
BackgroundSize.DEFAULT);
16011601
Window.setBackground(new Background(myBI));
@@ -1679,7 +1679,7 @@ private void queryMapSize(Stage stage) {
16791679
queryPlayerCount4(stage);
16801680
});
16811681
playerCountSelection.getChildren().addAll(button1, button2, button3, button4);
1682-
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/views/background.jpg",32,32,false,true),
1682+
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/assets/menus/background.jpg",32,32,false,true),
16831683
BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT, BackgroundPosition.DEFAULT,
16841684
BackgroundSize.DEFAULT);
16851685
Window.setBackground(new Background(myBI));
@@ -1749,7 +1749,7 @@ private void queryPlayerCount4(Stage stage) {
17491749
startGame(stage);
17501750
});
17511751
playerCountSelection.getChildren().addAll(button1, button2, button3, button4);
1752-
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/views/background.jpg",32,32,false,true),
1752+
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/assets/menus/background.jpg",32,32,false,true),
17531753
BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT, BackgroundPosition.DEFAULT,
17541754
BackgroundSize.DEFAULT);
17551755
Window.setBackground(new Background(myBI));
@@ -1812,7 +1812,7 @@ private void queryPlayerCount3(Stage stage) {
18121812
startGame(stage);
18131813
});
18141814
playerCountSelection.getChildren().addAll(button1, button2, button3);
1815-
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/views/background.jpg",32,32,false,true),
1815+
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/assets/menus/background.jpg",32,32,false,true),
18161816
BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT, BackgroundPosition.DEFAULT,
18171817
BackgroundSize.DEFAULT);
18181818
Window.setBackground(new Background(myBI));
@@ -1863,7 +1863,7 @@ private void queryPlayerCount2(Stage stage) {
18631863
startGame(stage);
18641864
});
18651865
playerCountSelection.getChildren().addAll(button1, button2);
1866-
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/views/background.jpg",32,32,false,true),
1866+
BackgroundImage myBI = new BackgroundImage(new Image("file:./src/assets/menus/background.jpg",32,32,false,true),
18671867
BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT, BackgroundPosition.DEFAULT,
18681868
BackgroundSize.DEFAULT);
18691869
Window.setBackground(new Background(myBI));

0 commit comments

Comments
 (0)