File tree 4 files changed +14
-2
lines changed
4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ public class KataminoBoardButton extends Pane {
17
17
@ FXML
18
18
ImageView boardImage3 ;
19
19
20
+ @ FXML
21
+ ImageView boardImage4 ;
22
+
20
23
private int id ;
21
24
22
25
public KataminoBoardButton () throws IOException {
@@ -32,21 +35,25 @@ public void setBoardButton(int value) {
32
35
boardImage1 .setVisible (true );
33
36
boardImage2 .setVisible (false );
34
37
boardImage3 .setVisible (false );
38
+ boardImage4 .setVisible (false );
35
39
} else if (value == 1 ) {
36
40
id = 1 ;
37
41
boardImage1 .setVisible (false );
38
42
boardImage2 .setVisible (true );
39
43
boardImage3 .setVisible (false );
44
+ boardImage4 .setVisible (false );
40
45
} else if (value == 2 ) {
41
46
id = 2 ;
42
47
boardImage1 .setVisible (false );
43
48
boardImage2 .setVisible (false );
44
49
boardImage3 .setVisible (true );
50
+ boardImage4 .setVisible (false );
45
51
} else {
46
52
id = value ;
47
- boardImage1 .setVisible (true );
53
+ boardImage1 .setVisible (false );
48
54
boardImage2 .setVisible (false );
49
55
boardImage3 .setVisible (false );
56
+ boardImage4 .setVisible (true );
50
57
}
51
58
}
52
59
Original file line number Diff line number Diff line change 5
5
<?import javafx .scene.image.ImageView?>
6
6
<?import javafx .scene.layout.Pane?>
7
7
8
- <fx : root maxHeight =" -Infinity" maxWidth =" -Infinity" minHeight =" -Infinity" minWidth =" -Infinity" type =" Pane" xmlns =" http://javafx.com/javafx/8 .0.171 " xmlns : fx =" http://javafx.com/fxml/1" >
8
+ <fx : root maxHeight =" -Infinity" maxWidth =" -Infinity" minHeight =" -Infinity" minWidth =" -Infinity" type =" Pane" xmlns =" http://javafx.com/javafx/10 .0.1 " xmlns : fx =" http://javafx.com/fxml/1" >
9
9
<children >
10
10
<ImageView fx : id =" boardImage1" fitHeight =" 130.0" fitWidth =" 130.0" pickOnBounds =" true" smooth =" false" >
11
11
<image >
21
21
<Image url =" @../resources/kataminoBoardButton3.png" />
22
22
</image >
23
23
</ImageView >
24
+ <ImageView fx : id =" boardImage4" fitHeight =" 130.0" fitWidth =" 130.0" pickOnBounds =" true" smooth =" false" >
25
+ <image >
26
+ <Image url =" @../resources/kataminoBoardButton4.png" />
27
+ </image >
28
+ </ImageView >
24
29
</children >
25
30
<cursor >
26
31
<Cursor fx : constant =" HAND" />
You can’t perform that action at this time.
0 commit comments