-
Notifications
You must be signed in to change notification settings - Fork 0
/
levelMenu.fxml
190 lines (188 loc) · 9.41 KB
/
levelMenu.fxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane fx:id="field" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" onKeyPressed="#pressedHandle" onKeyReleased="#releaseHandle" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="finalProject.levelMenuControllor">
<children>
<ImageView fitHeight="400.0" fitWidth="600.0" opacity="0.6">
<image>
<Image url="@image/bg_menu.jpg" />
</image>
</ImageView>
<ImageView fitHeight="200.0" fitWidth="600.0" layoutY="203.0">
<image>
<Image url="@image/bd_path.png" />
</image>
</ImageView>
<Pane fx:id="levelOne" layoutX="239.0" layoutY="292.0" prefHeight="91.0" prefWidth="96.0" visible="false">
<children>
<ImageView fx:id="level1" fitHeight="71.0" fitWidth="80.0" layoutX="13.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@image/levelOne.png" />
</image>
</ImageView>
<GridPane layoutY="59.0" prefHeight="25.0" prefWidth="96.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fx:id="l11" fitHeight="30.0" fitWidth="33.0" pickOnBounds="true" preserveRatio="true" GridPane.rowIndex="1">
<image>
<Image url="@image/emptyStar.png" />
</image>
</ImageView>
<ImageView fx:id="l12" fitHeight="30.0" fitWidth="33.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="1" GridPane.rowIndex="1">
<image>
<Image url="@image/emptyStar.png" />
</image>
</ImageView>
<ImageView fx:id="l13" fitHeight="30.0" fitWidth="33.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="2" GridPane.rowIndex="1">
<image>
<Image url="@image/emptyStar.png" />
</image>
</ImageView>
</children>
</GridPane>
</children>
</Pane>
<Pane fx:id="levelTwo" layoutX="407.0" layoutY="263.0" prefHeight="91.0" prefWidth="96.0" visible="false">
<children>
<ImageView fx:id="level2" fitHeight="71.0" fitWidth="80.0" layoutX="13.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@image/levelTwo.png" />
</image>
</ImageView>
<GridPane layoutY="59.0" prefHeight="25.0" prefWidth="96.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fx:id="l21" fitHeight="30.0" fitWidth="33.0" pickOnBounds="true" preserveRatio="true" GridPane.rowIndex="1">
<image>
<Image url="@image/emptyStar.png" />
</image>
</ImageView>
<ImageView fx:id="l22" fitHeight="30.0" fitWidth="33.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="1" GridPane.rowIndex="1">
<image>
<Image url="@image/emptyStar.png" />
</image>
</ImageView>
<ImageView fx:id="l23" fitHeight="30.0" fitWidth="33.0" pickOnBounds="true" preserveRatio="true" GridPane.columnIndex="2" GridPane.rowIndex="1">
<image>
<Image url="@image/emptyStar.png" />
</image>
</ImageView>
</children>
</GridPane>
</children>
</Pane>
<ImageView fx:id="character" fitHeight="71.0" fitWidth="80.0" layoutX="32.0" layoutY="263.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@image/chrome_dinosaur.png" />
</image>
</ImageView>
<Pane fx:id="white" opacity="0.44" prefHeight="400.0" prefWidth="600.0" style="-fx-background-color: white;" visible="false" />
<Pane fx:id="readme" prefHeight="400.0" prefWidth="600.0" visible="false">
<children>
<ImageView fitHeight="44.0" fitWidth="51.0" layoutX="259.0" layoutY="44.0">
<image>
<Image url="@image/chrome_dinosaur.png" />
</image>
</ImageView>
<Text fill="#000000e7" layoutX="105.0" layoutY="82.0" strokeType="OUTSIDE" strokeWidth="0.0" text="移動小恐龍" wrappingWidth="163.0">
<font>
<Font name="JackeyFont" size="32.0" />
</font>
</Text>
<Text fill="#000000e7" layoutX="105.0" layoutY="262.0" strokeType="OUTSIDE" strokeWidth="0.0" text="和物件互動" wrappingWidth="163.0">
<font>
<Font name="JackeyFont" size="32.0" />
</font>
</Text>
<ImageView fitHeight="30.0" fitWidth="30.0" layoutX="404.0" layoutY="34.0">
<image>
<Image url="@image/keyboard_up.png" />
</image>
</ImageView>
<ImageView fitHeight="30.0" fitWidth="30.0" layoutX="404.0" layoutY="69.0" rotate="180.0">
<image>
<Image url="@image/keyboard_up.png" />
</image>
</ImageView>
<ImageView fitHeight="30.0" fitWidth="30.0" layoutX="439.0" layoutY="69.0" rotate="90.0">
<image>
<Image url="@image/keyboard_up.png" />
</image>
</ImageView>
<ImageView fitHeight="30.0" fitWidth="30.0" layoutX="369.0" layoutY="69.0" rotate="270.0">
<image>
<Image url="@image/keyboard_up.png" />
</image>
</ImageView>
<ImageView fitHeight="50.0" fitWidth="50.0" layoutX="399.0" layoutY="222.0">
<image>
<Image url="@image/keyboard.png" />
</image>
</ImageView>
<Text fill="#000000e7" layoutX="412.0" layoutY="259.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Q" wrappingWidth="25.206634521484375">
<font>
<Font name="JackeyFont" size="36.0" />
</font>
</Text>
<Text fill="#000000e7" layoutX="107.0" layoutY="357.0" strokeType="OUTSIDE" strokeWidth="0.0" text="操作介紹" wrappingWidth="163.0">
<font>
<Font name="JackeyFont" size="32.0" />
</font>
</Text>
<ImageView fitHeight="50.0" fitWidth="50.0" layoutX="402.0" layoutY="320.0">
<image>
<Image url="@image/keyboard.png" />
</image>
</ImageView>
<Text fill="#000000e7" layoutX="414.0" layoutY="353.0" strokeType="OUTSIDE" strokeWidth="0.0" text="E c" wrappingWidth="39.0850830078125">
<font>
<Font name="JackeyFont" size="22.0" />
</font>
</Text>
<Text fill="#000000e7" layoutX="424.0" layoutY="353.0" strokeType="OUTSIDE" strokeWidth="0.0" text="s" wrappingWidth="9.34552001953125">
<font>
<Font name="JackeyFont" size="17.0" />
</font>
</Text>
<Text fill="#000000e7" layoutX="105.0" layoutY="170.0" strokeType="OUTSIDE" strokeWidth="0.0" text="快走" wrappingWidth="163.0">
<font>
<Font name="JackeyFont" size="32.0" />
</font>
</Text>
<ImageView fitHeight="39.0" fitWidth="99.0" layoutX="371.0" layoutY="134.0">
<image>
<Image url="@image/keyboard.png" />
</image>
</ImageView>
<Text fill="#000000e7" layoutX="388.0" layoutY="162.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Shift" wrappingWidth="70.14090616288138">
<font>
<Font name="JackeyFont" size="27.0" />
</font>
</Text>
</children>
</Pane>
</children>
</AnchorPane>