|
10 | 10 | <?import javafx.scene.shape.*?>
|
11 | 11 | <?import javafx.scene.text.*?>
|
12 | 12 |
|
13 |
| -<BorderPane prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="view.gui.DuelMenuGui"> |
| 13 | +<BorderPane prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/11.0.1" |
| 14 | + xmlns:fx="http://javafx.com/fxml/1" fx:controller="view.gui.DuelMenuGui"> |
14 | 15 |
|
15 | 16 | <stylesheets>
|
16 |
| - <URL value="@styles/DuelMenuGui.css" /> |
| 17 | + <URL value="@styles/DuelMenuGui.css"/> |
17 | 18 | </stylesheets>
|
18 | 19 |
|
19 | 20 | <center>
|
|
26 | 27 | <BorderPane prefHeight="600" prefWidth="210">
|
27 | 28 | <top>
|
28 | 29 | <VBox style="-fx-background-color: #eee0b1">
|
29 |
| - <ProgressBar fx:id="opponentProgressBar" minWidth="210" progress="1" style="-fx-accent: green" /> |
30 |
| - <Text fx:id="opponentNickNameText" style="-fx-fill: black; -fx-font-weight: bold;" text="opponent nickname: " /> |
31 |
| - <Text fx:id="opponentUserNameText" style="-fx-fill: black; -fx-font-weight: bold;" text="opponent username: " /> |
| 30 | + <ProgressBar fx:id="opponentProgressBar" minWidth="210" progress="1" style="-fx-accent: green"/> |
| 31 | + <Text fx:id="opponentNickNameText" style="-fx-fill: black; -fx-font-weight: bold;" |
| 32 | + text="opponent nickname: "/> |
| 33 | + <Text fx:id="opponentUserNameText" style="-fx-fill: black; -fx-font-weight: bold;" |
| 34 | + text="opponent username: "/> |
32 | 35 | </VBox>
|
33 | 36 | </top>
|
34 | 37 | <center>
|
35 | 38 | <VBox alignment="CENTER" style="-fx-background-color: black">
|
36 | 39 | <HBox alignment="CENTER">
|
37 |
| - <Rectangle fx:id="selectedCard" height="307" width="210" /> |
| 40 | + <Rectangle fx:id="selectedCard" height="307" width="210"/> |
38 | 41 | </HBox>
|
39 | 42 | <HBox alignment="CENTER">
|
40 |
| - <Label fx:id="selectedCardDescription" alignment="TOP_LEFT" prefHeight="193" prefWidth="210" textAlignment="JUSTIFY" wrapText="true"> |
| 43 | + <Label fx:id="selectedCardDescription" alignment="TOP_LEFT" prefHeight="193" prefWidth="210" |
| 44 | + textAlignment="JUSTIFY" wrapText="true"> |
41 | 45 | <padding>
|
42 |
| - <Insets bottom="5.0" left="10.0" right="10.0" top="5.0" /> |
| 46 | + <Insets bottom="5.0" left="10.0" right="10.0" top="5.0"/> |
43 | 47 | </padding>
|
44 | 48 | </Label>
|
45 | 49 | </HBox>
|
46 | 50 | </VBox>
|
47 | 51 | </center>
|
48 | 52 | <bottom>
|
49 | 53 | <VBox style="-fx-background-color: #eee0b1">
|
50 |
| - <ProgressBar fx:id="playerProgressBar" minWidth="210" progress="1" style="-fx-accent: green" /> |
51 |
| - <Text fx:id="playerNickNameText" style="-fx-fill: black; -fx-font-weight: bold;" text="player nickname: " /> |
52 |
| - <Text fx:id="playerUserNameText" style="-fx-fill: black; -fx-font-weight: bold;" text="player username: " /> |
| 54 | + <ProgressBar fx:id="playerProgressBar" minWidth="210" progress="1" style="-fx-accent: green"/> |
| 55 | + <Text fx:id="playerNickNameText" style="-fx-fill: black; -fx-font-weight: bold;" |
| 56 | + text="player nickname: "/> |
| 57 | + <Text fx:id="playerUserNameText" style="-fx-fill: black; -fx-font-weight: bold;" |
| 58 | + text="player username: "/> |
53 | 59 | </VBox>
|
54 | 60 | </bottom>
|
55 | 61 | </BorderPane>
|
56 | 62 |
|
57 | 63 | <BorderPane fx:id="buttonPane" prefHeight="600" prefWidth="120">
|
58 | 64 | <top>
|
59 | 65 | <HBox>
|
60 |
| - <Button alignment="CENTER" onMouseClicked="#pause" prefHeight="26.0" prefWidth="110.0" text="pause"> |
| 66 | + <Button alignment="CENTER" onMouseClicked="#pause" prefHeight="26.0" prefWidth="110.0" |
| 67 | + text="pause"> |
61 | 68 | <cursor>
|
62 |
| - <Cursor fx:constant="HAND" /> |
| 69 | + <Cursor fx:constant="HAND"/> |
63 | 70 | </cursor>
|
64 | 71 | <effect>
|
65 | 72 | <DropShadow>
|
66 | 73 | <color>
|
67 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 74 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
68 | 75 | </color>
|
69 | 76 | </DropShadow>
|
70 | 77 | </effect>
|
71 | 78 | <HBox.margin>
|
72 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 79 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
73 | 80 | </HBox.margin>
|
74 | 81 | </Button>
|
75 | 82 | </HBox>
|
76 | 83 | </top>
|
77 | 84 | <center>
|
78 | 85 | <VBox alignment="CENTER">
|
79 | 86 | <HBox>
|
80 |
| - <Button alignment="CENTER" onMouseClicked="#nextPhase" prefHeight="26.0" prefWidth="110.0" text="Next Phase"> |
| 87 | + <Button alignment="CENTER" onMouseClicked="#nextPhase" prefHeight="26.0" prefWidth="110.0" |
| 88 | + text="Next Phase"> |
81 | 89 | <cursor>
|
82 |
| - <Cursor fx:constant="HAND" /> |
| 90 | + <Cursor fx:constant="HAND"/> |
83 | 91 | </cursor>
|
84 | 92 | <effect>
|
85 | 93 | <DropShadow>
|
86 | 94 | <color>
|
87 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 95 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
88 | 96 | </color>
|
89 | 97 | </DropShadow>
|
90 | 98 | </effect>
|
91 | 99 | <HBox.margin>
|
92 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 100 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
93 | 101 | </HBox.margin>
|
94 | 102 | </Button>
|
95 | 103 | </HBox>
|
96 | 104 | <HBox>
|
97 |
| - <Button alignment="CENTER" onMouseClicked="#summonCard" prefHeight="26.0" prefWidth="110.0" text="Summon"> |
| 105 | + <Button alignment="CENTER" onMouseClicked="#summonCard" prefHeight="26.0" prefWidth="110.0" |
| 106 | + text="Summon"> |
98 | 107 | <cursor>
|
99 |
| - <Cursor fx:constant="HAND" /> |
| 108 | + <Cursor fx:constant="HAND"/> |
100 | 109 | </cursor>
|
101 | 110 | <effect>
|
102 | 111 | <DropShadow>
|
103 | 112 | <color>
|
104 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 113 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
105 | 114 | </color>
|
106 | 115 | </DropShadow>
|
107 | 116 | </effect>
|
108 | 117 | <HBox.margin>
|
109 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 118 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
110 | 119 | </HBox.margin>
|
111 | 120 | </Button>
|
112 | 121 | </HBox>
|
113 | 122 | <HBox>
|
114 |
| - <Button alignment="CENTER" onMouseClicked="#setCard" prefHeight="26.0" prefWidth="110.0" text="Set"> |
| 123 | + <Button alignment="CENTER" onMouseClicked="#setCard" prefHeight="26.0" prefWidth="110.0" |
| 124 | + text="Set"> |
115 | 125 | <cursor>
|
116 |
| - <Cursor fx:constant="HAND" /> |
| 126 | + <Cursor fx:constant="HAND"/> |
117 | 127 | </cursor>
|
118 | 128 | <effect>
|
119 | 129 | <DropShadow>
|
120 | 130 | <color>
|
121 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 131 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
122 | 132 | </color>
|
123 | 133 | </DropShadow>
|
124 | 134 | </effect>
|
125 | 135 | <HBox.margin>
|
126 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 136 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
127 | 137 | </HBox.margin>
|
128 | 138 | </Button>
|
129 | 139 | </HBox>
|
130 | 140 | <HBox>
|
131 |
| - <Button alignment="CENTER" onMouseClicked="#changePosition" prefHeight="26.0" prefWidth="110.0" text="Change Position"> |
| 141 | + <Button alignment="CENTER" onMouseClicked="#changePosition" prefHeight="26.0" |
| 142 | + prefWidth="110.0" text="Change Position"> |
132 | 143 | <cursor>
|
133 |
| - <Cursor fx:constant="HAND" /> |
| 144 | + <Cursor fx:constant="HAND"/> |
134 | 145 | </cursor>
|
135 | 146 | <effect>
|
136 | 147 | <DropShadow>
|
137 | 148 | <color>
|
138 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 149 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
139 | 150 | </color>
|
140 | 151 | </DropShadow>
|
141 | 152 | </effect>
|
142 | 153 | <HBox.margin>
|
143 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 154 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
144 | 155 | </HBox.margin>
|
145 | 156 | </Button>
|
146 | 157 | </HBox>
|
147 | 158 | <HBox>
|
148 |
| - <Button alignment="CENTER" onMouseClicked="#attack" prefHeight="26.0" prefWidth="110.0" text="Attack"> |
| 159 | + <Button alignment="CENTER" onMouseClicked="#attack" prefHeight="26.0" prefWidth="110.0" |
| 160 | + text="Attack"> |
149 | 161 | <cursor>
|
150 |
| - <Cursor fx:constant="HAND" /> |
| 162 | + <Cursor fx:constant="HAND"/> |
151 | 163 | </cursor>
|
152 | 164 | <effect>
|
153 | 165 | <DropShadow>
|
154 | 166 | <color>
|
155 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 167 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
156 | 168 | </color>
|
157 | 169 | </DropShadow>
|
158 | 170 | </effect>
|
159 | 171 | <HBox.margin>
|
160 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 172 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
161 | 173 | </HBox.margin>
|
162 | 174 | </Button>
|
163 | 175 | </HBox>
|
164 | 176 | <HBox>
|
165 |
| - <Button alignment="CENTER" onMouseClicked="#activateEffect" prefHeight="26.0" prefWidth="110.0" text="Activate Effect"> |
| 177 | + <Button alignment="CENTER" onMouseClicked="#activateEffect" prefHeight="26.0" |
| 178 | + prefWidth="110.0" text="Activate Effect"> |
166 | 179 | <cursor>
|
167 |
| - <Cursor fx:constant="HAND" /> |
| 180 | + <Cursor fx:constant="HAND"/> |
168 | 181 | </cursor>
|
169 | 182 | <effect>
|
170 | 183 | <DropShadow>
|
171 | 184 | <color>
|
172 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 185 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
173 | 186 | </color>
|
174 | 187 | </DropShadow>
|
175 | 188 | </effect>
|
176 | 189 | <HBox.margin>
|
177 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 190 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
178 | 191 | </HBox.margin>
|
179 | 192 | </Button>
|
180 | 193 | </HBox>
|
181 | 194 | <HBox>
|
182 |
| - <Button alignment="CENTER" onMouseClicked="#showGraveyard" prefHeight="26.0" prefWidth="110.0" text="Show Graveyard"> |
| 195 | + <Button alignment="CENTER" onMouseClicked="#showGraveyard" prefHeight="26.0" |
| 196 | + prefWidth="110.0" text="Show Graveyard"> |
183 | 197 | <cursor>
|
184 |
| - <Cursor fx:constant="HAND" /> |
| 198 | + <Cursor fx:constant="HAND"/> |
185 | 199 | </cursor>
|
186 | 200 | <effect>
|
187 | 201 | <DropShadow>
|
188 | 202 | <color>
|
189 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 203 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
190 | 204 | </color>
|
191 | 205 | </DropShadow>
|
192 | 206 | </effect>
|
193 | 207 | <HBox.margin>
|
194 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 208 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
195 | 209 | </HBox.margin>
|
196 | 210 | </Button>
|
197 | 211 | </HBox>
|
198 | 212 | <HBox>
|
199 |
| - <Button alignment="CENTER" onMouseClicked="#surrender" prefHeight="26.0" prefWidth="110.0" text="Surrender"> |
| 213 | + <Button alignment="CENTER" onMouseClicked="#surrender" prefHeight="26.0" prefWidth="110.0" |
| 214 | + text="Surrender"> |
200 | 215 | <cursor>
|
201 |
| - <Cursor fx:constant="HAND" /> |
| 216 | + <Cursor fx:constant="HAND"/> |
202 | 217 | </cursor>
|
203 | 218 | <effect>
|
204 | 219 | <DropShadow>
|
205 | 220 | <color>
|
206 |
| - <Color red="1.0" green="1.0" blue="1.0" opacity="0.15" /> |
| 221 | + <Color red="1.0" green="1.0" blue="1.0" opacity="0.15"/> |
207 | 222 | </color>
|
208 | 223 | </DropShadow>
|
209 | 224 | </effect>
|
210 | 225 | <HBox.margin>
|
211 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 226 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
212 | 227 | </HBox.margin>
|
213 | 228 | </Button>
|
214 | 229 | </HBox>
|
215 | 230 | </VBox>
|
216 | 231 | </center>
|
| 232 | + |
| 233 | + <bottom> |
| 234 | + <HBox alignment="CENTER"> |
| 235 | + <Label fx:id="phaseLabel" alignment="CENTER" prefWidth="110" prefHeight="26"> |
| 236 | + <HBox.margin> |
| 237 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> |
| 238 | + </HBox.margin> |
| 239 | + </Label> |
| 240 | + </HBox> |
| 241 | + </bottom> |
217 | 242 | </BorderPane>
|
218 | 243 | </HBox>
|
219 | 244 | </left>
|
|
222 | 247 | <!-- chatBox-->
|
223 | 248 | </right>
|
224 | 249 |
|
225 |
| - |
226 | 250 | </BorderPane>
|
0 commit comments