File tree 2 files changed +46
-0
lines changed
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+
3
+ <?import java .lang.*?>
4
+ <?import java .net.*?>
5
+ <?import javafx .scene.layout.*?>
6
+ <?import javafx .scene.shape.*?>
7
+
8
+ <Pane xmlns : fx =" http://javafx.com/fxml/1" prefHeight =" 300.0" prefWidth =" 300.0" xmlns =" http://javafx.com/javafx/11.0.1" fx : controller =" obstacles.ObstaclesController" >
9
+ <Rectangle height =" 150.0" layoutX =" 135.0" width =" 30.0" >
10
+ <styleClass >
11
+ <String fx : value =" fill-blue" />
12
+ <String fx : value =" curve-rect-30" />
13
+ </styleClass >
14
+ </Rectangle >
15
+
16
+ <Rectangle rotate =" 90" height =" 150.0" layoutX =" 135.0" width =" 30.0" >
17
+ <styleClass >
18
+ <String fx : value =" fill-yellow" />
19
+ <String fx : value =" curve-rect-30" />
20
+ </styleClass >
21
+ </Rectangle >
22
+
23
+ <Rectangle height =" 150.0" layoutX =" 135.0" width =" 30.0" >
24
+ <styleClass >
25
+ <String fx : value =" fill-purple" />
26
+ <String fx : value =" curve-rect-30" />
27
+ </styleClass >
28
+ </Rectangle >
29
+
30
+ <Rectangle rotate =" 90" height =" 150.0" layoutX =" 135.0" width =" 30.0" >
31
+ <styleClass >
32
+ <String fx : value =" fill-pink" />
33
+ <String fx : value =" curve-rect-30" />
34
+ </styleClass >
35
+ </Rectangle >
36
+
37
+ <stylesheets >
38
+ <URL value =" @../style/style.css" />
39
+ </stylesheets >
40
+ </Pane >
Original file line number Diff line number Diff line change 37
37
-fx-scale-x : 1.1 ;
38
38
-fx-scale-y : 1.1 ;
39
39
}
40
+
41
+ .curve-rect-30 {
42
+ -fx-arc-height : 30 ;
43
+ -fx-arc-width : 30 ;
44
+ }
45
+
40
46
/* End of General Styling */
41
47
42
48
/* Home Scene */
You can’t perform that action at this time.
0 commit comments