-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardView.fxml
80 lines (78 loc) · 4.36 KB
/
CardView.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
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<AnchorPane prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="PokerController">
<children>
<HBox layoutX="30.0" layoutY="68.0" prefHeight="100.0" prefWidth="200.0">
<children>
<ImageView fx:id="CommunityCard1" fitHeight="200.0" fitWidth="148.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="CommunityCard2" fitHeight="200.0" fitWidth="148.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="CommunityCard3" fitHeight="200.0" fitWidth="148.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="CommunityCard4" fitHeight="200.0" fitWidth="148.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="CommunityCard5" fitHeight="200.0" fitWidth="148.0" pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
<Button fx:id="fold" layoutX="357.0" layoutY="473.0" mnemonicParsing="false" onAction="#foldButtonClick" prefHeight="74.0" prefWidth="87.0" text="Fold" />
<Button fx:id="check" layoutX="357.0" layoutY="387.0" mnemonicParsing="false" onAction="#checkButtonClick" prefHeight="74.0" prefWidth="87.0" text="Check" textFill="#0a0a0a" />
<Label fx:id="player" layoutX="30.0" layoutY="268.0" prefHeight="32.0" prefWidth="87.0" text="Player Cards:">
<font>
<Font name="Times New Roman Bold" size="14.0" />
</font></Label>
<HBox layoutX="22.0" layoutY="303.0" prefHeight="200.0" prefWidth="289.0">
<children>
<ImageView fx:id="PlayerCard1" fitHeight="200.0" fitWidth="148.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="PlayerCard2" fitHeight="200.0" fitWidth="148.0" pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
<TextField fx:id="bet" layoutX="357.0" layoutY="300.0" onAction="#betting" prefHeight="74.0" prefWidth="87.0" promptText="Bet Amount" />
<VBox layoutX="475.0" layoutY="300.0" prefHeight="261.0" prefWidth="187.0">
<children>
<Label fx:id="Money" prefHeight="51.0" prefWidth="118.0" text="Money:">
<font>
<Font name="Times New Roman Bold" size="14.0" />
</font>
</Label>
<Label fx:id="TotalBet" prefHeight="51.0" prefWidth="118.0" text="Total Bet:">
<font>
<Font name="Times New Roman Bold" size="14.0" />
</font>
</Label>
<Label fx:id="CurrentBet" prefHeight="51.0" prefWidth="118.0" text="Current Bet:">
<font>
<Font name="Times New Roman Bold" size="14.0" />
</font>
</Label>
<Label fx:id="AiNumber" prefHeight="51.0" prefWidth="118.0" text="Number of AI: 5">
<font>
<Font name="Times New Roman Bold" size="14.0" />
</font>
</Label>
<Label fx:id="RoundWinStatement" prefHeight="48.0" prefWidth="193.0" text="Number Of Rounds Won:">
<font>
<Font name="Times New Roman Bold" size="14.0" />
</font>
</Label>
</children>
</VBox>
<Label fx:id="roundCount" layoutX="354.0" layoutY="14.0" prefHeight="48.0" prefWidth="131.0" text="Round 1:">
<font>
<Font name="Arial Bold" size="20.0" />
</font>
</Label>
<Label fx:id="CorrectionText" layoutX="662.0" layoutY="300.0" prefHeight="248.0" prefWidth="177.0" textAlignment="JUSTIFY" textFill="#ee0303">
<font>
<Font name="Times New Roman Bold" size="15.0" />
</font>
</Label>
</children>
<opaqueInsets>
<Insets />
</opaqueInsets>
</AnchorPane>