-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.fxml
94 lines (92 loc) · 4.5 KB
/
game.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
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ProgressBar?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="471.0" prefWidth="270.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Game">
<children>
<ImageView fitHeight="475.0" fitWidth="295.0" layoutX="-8.0" layoutY="-2.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@clashroyale.jpg" />
</image>
</ImageView>
<ProgressBar fx:id="progress" layoutX="31.0" layoutY="448.0" prefHeight="18.0" prefWidth="228.0" progress="0.0" />
<ImageView fx:id="bar" fitHeight="61.0" fitWidth="57.0" layoutX="28.0" layoutY="381.0" onMouseClicked="#barbar" opacity="0.5" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@barbarians.png" />
</image>
</ImageView>
<Button layoutX="28.0" layoutY="381.0" mnemonicParsing="false" prefHeight="12.0" prefWidth="9.0" style="-fx-background-color: #f147d8;" text="1" textFill="WHITE">
<font>
<Font name="System Bold" size="7.0" />
</font>
</Button>
<ImageView fx:id="can" fitHeight="61.0" fitWidth="57.0" layoutX="178.0" layoutY="381.0" onMouseClicked="#canon" opacity="0.5" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@dragon.png" />
</image>
</ImageView>
<Button layoutX="178.0" layoutY="381.0" mnemonicParsing="false" prefHeight="12.0" prefWidth="9.0" style="-fx-background-color: #f147d8;" text="1" textFill="WHITE">
<font>
<Font name="System Bold" size="7.0" />
</font>
</Button>
<ImageView fx:id="gia" fitHeight="61.0" fitWidth="57.0" layoutX="128.0" layoutY="381.0" onMouseClicked="#giant" opacity="0.5" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@giant.png" />
</image>
</ImageView>
<Button layoutX="128.0" layoutY="381.0" mnemonicParsing="false" prefHeight="12.0" prefWidth="9.0" style="-fx-background-color: #f147d8;" text="1" textFill="WHITE">
<font>
<Font name="System Bold" size="7.0" />
</font>
</Button>
<ImageView fx:id="arch" fitHeight="61.0" fitWidth="57.0" layoutX="78.0" layoutY="381.0" onMouseClicked="#archer" opacity="0.5" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@archers.png" />
</image>
</ImageView>
<Button layoutX="78.0" layoutY="381.0" mnemonicParsing="false" prefHeight="12.0" prefWidth="9.0" style="-fx-background-color: #f147d8;" text="1" textFill="WHITE">
<font>
<Font name="System Bold" size="7.0" />
</font>
</Button>
<ImageView fx:id="gh1" fitHeight="28.0" fitWidth="35.0" layoutX="39.0" layoutY="398.0" opacity="0.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@lock.png" />
</image>
</ImageView>
<ImageView fx:id="gh2" fitHeight="28.0" fitWidth="35.0" layoutX="93.0" layoutY="398.0" opacity="0.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@lock.png" />
</image>
</ImageView>
<ImageView fx:id="gh3" fitHeight="28.0" fitWidth="35.0" layoutX="139.0" layoutY="398.0" opacity="0.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@lock.png" />
</image>
</ImageView>
<ImageView fx:id="gh4" fitHeight="28.0" fitWidth="35.0" layoutX="189.0" layoutY="398.0" opacity="0.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@lock.png" />
</image>
</ImageView>
<Label fx:id="timer" layoutX="109.0" layoutY="70.0" text="03:00">
<font>
<Font name="System Bold" size="17.0" />
</font>
</Label>
<Button layoutX="228.0" layoutY="391.0" mnemonicParsing="false" prefHeight="43.0" prefWidth="36.0">
<graphic>
<ImageView fitHeight="22.0" fitWidth="23.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@lock.png" />
</image>
</ImageView>
</graphic>
</Button>
</children>
</AnchorPane>