-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fxml dependencies for running UI from CML. Updated README for i…
…nstruction on UI. Added IntelliJ path setting.
- Loading branch information
1 parent
e12a76e
commit cdf7448
Showing
89 changed files
with
334 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.image.ImageView?> | ||
<?import javafx.scene.layout.BorderPane?> | ||
<?import javafx.scene.layout.HBox?> | ||
<?import javafx.scene.layout.VBox?> | ||
<?import javafx.scene.text.Font?> | ||
|
||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="560.0" prefWidth="480.0" xmlns="http://javafx.com/javafx/8.0.141" xmlns:fx="http://javafx.com/fxml/1" fx:controller="tsuro.admin.EndGameController"> | ||
<center> | ||
<ImageView fx:id="boardImageView" fitHeight="360.0" fitWidth="360.0" pickOnBounds="true" preserveRatio="true" BorderPane.alignment="CENTER" /> | ||
</center> | ||
<top> | ||
<VBox alignment="CENTER" prefHeight="160.0" prefWidth="480.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER"> | ||
<children> | ||
<Label alignment="CENTER" prefHeight="40.0" prefWidth="480.0" text="Game is now over! Congratulations to these winners! "> | ||
<font> | ||
<Font size="14.0" /> | ||
</font></Label> | ||
<Label fx:id="winnerList" alignment="CENTER" prefWidth="480.0" text="Label" textAlignment="CENTER"> | ||
<font> | ||
<Font size="24.0" /> | ||
</font></Label> | ||
</children></VBox> | ||
</top> | ||
<left> | ||
<VBox prefHeight="360.0" prefWidth="60.0" BorderPane.alignment="CENTER" /> | ||
</left> | ||
<right> | ||
<VBox prefHeight="360.0" prefWidth="60.0" BorderPane.alignment="CENTER" /> | ||
</right> | ||
<bottom> | ||
<HBox prefHeight="30.0" prefWidth="480.0" BorderPane.alignment="CENTER" /> | ||
</bottom> | ||
</BorderPane> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,236 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.geometry.Insets?> | ||
<?import javafx.scene.control.Button?> | ||
<?import javafx.scene.control.ChoiceBox?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.image.ImageView?> | ||
<?import javafx.scene.layout.BorderPane?> | ||
<?import javafx.scene.layout.HBox?> | ||
<?import javafx.scene.layout.VBox?> | ||
<?import javafx.scene.text.Font?> | ||
<?import javafx.scene.text.Text?> | ||
|
||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="560.0" prefWidth="480.0" xmlns="http://javafx.com/javafx/8.0.141" xmlns:fx="http://javafx.com/fxml/1" fx:controller="tsuro.admin.PlacePawnController"> | ||
<center> | ||
<ImageView fx:id="boardImageView" fitHeight="360.0" fitWidth="360.0" pickOnBounds="true" BorderPane.alignment="CENTER" /> | ||
</center> | ||
<top> | ||
<VBox prefHeight="140.0" prefWidth="480.0" BorderPane.alignment="CENTER"> | ||
<children> | ||
<VBox prefHeight="80.0" prefWidth="480.0" style="-fx-border-color: black;"> | ||
<children> | ||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Choose a starting position to place pawn" textAlignment="CENTER"> | ||
<VBox.margin> | ||
<Insets bottom="5.0" left="100.0" right="20.0" top="5.0" /> | ||
</VBox.margin> | ||
<font> | ||
<Font size="14.0" /> | ||
</font> | ||
</Text> | ||
<HBox alignment="CENTER" prefWidth="480.0"> | ||
<children> | ||
<VBox prefWidth="100.0"> | ||
<children> | ||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Side" textAlignment="CENTER" /> | ||
<ChoiceBox fx:id="sideDropdown" prefWidth="80.0" /> | ||
</children> | ||
<HBox.margin> | ||
<Insets left="60.0" /> | ||
</HBox.margin> | ||
<padding> | ||
<Insets right="20.0" /> | ||
</padding> | ||
</VBox> | ||
<VBox prefWidth="100.0"> | ||
<children> | ||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Index" /> | ||
<ChoiceBox fx:id="indexDropdown" prefWidth="80.0" /> | ||
</children> | ||
<HBox.margin> | ||
<Insets /> | ||
</HBox.margin> | ||
<padding> | ||
<Insets right="20.0" /> | ||
</padding> | ||
</VBox> | ||
<Button fx:id="submitButton" mnemonicParsing="false" text="Submit"> | ||
<HBox.margin> | ||
<Insets right="50.0" top="15.0" /> | ||
</HBox.margin> | ||
</Button> | ||
</children> | ||
</HBox> | ||
</children> | ||
</VBox> | ||
<HBox layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="480.0"> | ||
<children> | ||
<HBox prefHeight="60.0" prefWidth="60.0" /> | ||
<HBox prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="60.0" prefWidth="60.0" text="0 " /> | ||
<Label alignment="BOTTOM_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0" text=" 1" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="70.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="60.0" prefWidth="60.0" text="2 " /> | ||
<Label alignment="BOTTOM_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0" text=" 3" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="130.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="60.0" prefWidth="60.0" text="4 " /> | ||
<Label alignment="BOTTOM_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0" text=" 5" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="70.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="60.0" prefWidth="60.0" text="6 " /> | ||
<Label alignment="BOTTOM_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0" text=" 7" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="70.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="60.0" prefWidth="60.0" text="8 " /> | ||
<Label alignment="BOTTOM_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0" text=" 9" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="190.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="60.0" prefWidth="60.0" text="10 " /> | ||
<Label alignment="BOTTOM_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0" text=" 11" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0" /> | ||
</children> | ||
</HBox> | ||
</children></VBox> | ||
</top> | ||
<bottom> | ||
<HBox prefHeight="60.0" prefWidth="480.0" BorderPane.alignment="CENTER"> | ||
<children> | ||
<HBox prefHeight="60.0" prefWidth="60.0" /> | ||
<HBox layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="CENTER_RIGHT" prefHeight="30.0" prefWidth="60.0" text="0 " /> | ||
<Label layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 1" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="70.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="CENTER_RIGHT" prefHeight="30.0" prefWidth="60.0" text="2 " /> | ||
<Label layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 3" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="70.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="CENTER_RIGHT" prefHeight="30.0" prefWidth="60.0" text="4 " /> | ||
<Label layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 5" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="130.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="CENTER_RIGHT" prefHeight="30.0" prefWidth="60.0" text="6 " /> | ||
<Label layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 7" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="190.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="CENTER_RIGHT" prefHeight="30.0" prefWidth="60.0" text="8 " /> | ||
<Label layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 9" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="250.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0"> | ||
<children> | ||
<Label alignment="CENTER_RIGHT" prefHeight="30.0" prefWidth="60.0" text="10 " /> | ||
<Label layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 11" /> | ||
</children> | ||
</HBox> | ||
<HBox layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="60.0" /> | ||
</children></HBox> | ||
</bottom> | ||
<left> | ||
<VBox prefHeight="360.0" prefWidth="60.0" BorderPane.alignment="CENTER"> | ||
<children> | ||
<VBox prefHeight="60.0" prefWidth="30.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="60.0" text="0 " /> | ||
<Label alignment="TOP_RIGHT" layoutX="10.0" layoutY="40.0" prefHeight="30.0" prefWidth="60.0" text="1 " /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="10.0" prefHeight="60.0" prefWidth="30.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="60.0" text="2 " /> | ||
<Label alignment="TOP_RIGHT" layoutX="10.0" layoutY="40.0" prefHeight="30.0" prefWidth="60.0" text="3 " /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="70.0" prefHeight="60.0" prefWidth="30.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="60.0" text="4 " /> | ||
<Label alignment="TOP_RIGHT" layoutX="10.0" layoutY="40.0" prefHeight="30.0" prefWidth="60.0" text="5 " /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="70.0" prefHeight="60.0" prefWidth="30.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="60.0" text="6 " /> | ||
<Label alignment="TOP_RIGHT" layoutX="10.0" layoutY="40.0" prefHeight="30.0" prefWidth="60.0" text="7 " /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="130.0" prefHeight="60.0" prefWidth="30.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="60.0" text="8 " /> | ||
<Label alignment="TOP_RIGHT" layoutX="10.0" layoutY="40.0" prefHeight="30.0" prefWidth="60.0" text="9 " /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="190.0" prefHeight="60.0" prefWidth="30.0"> | ||
<children> | ||
<Label alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="60.0" text="10 " /> | ||
<Label alignment="TOP_RIGHT" layoutX="10.0" layoutY="40.0" prefHeight="30.0" prefWidth="60.0" text="11 " /> | ||
</children> | ||
</VBox> | ||
</children> | ||
</VBox> | ||
</left> | ||
<right> | ||
<VBox prefHeight="360.0" prefWidth="60.0" BorderPane.alignment="CENTER"> | ||
<children> | ||
<VBox prefHeight="200.0" prefWidth="100.0"> | ||
<children> | ||
<Label alignment="BOTTOM_LEFT" prefHeight="30.0" prefWidth="60.0" text=" 0" /> | ||
<Label alignment="TOP_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 1" /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="10.0" prefHeight="200.0" prefWidth="100.0"> | ||
<children> | ||
<Label alignment="BOTTOM_LEFT" prefHeight="30.0" prefWidth="60.0" text=" 2" /> | ||
<Label alignment="TOP_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 3" /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="190.0" prefHeight="200.0" prefWidth="100.0"> | ||
<children> | ||
<Label alignment="BOTTOM_LEFT" prefHeight="30.0" prefWidth="60.0" text=" 4" /> | ||
<Label alignment="TOP_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 5" /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="250.0" prefHeight="200.0" prefWidth="100.0"> | ||
<children> | ||
<Label alignment="BOTTOM_LEFT" prefHeight="30.0" prefWidth="60.0" text=" 6" /> | ||
<Label alignment="TOP_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 7" /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="190.0" prefHeight="200.0" prefWidth="100.0"> | ||
<children> | ||
<Label alignment="BOTTOM_LEFT" prefHeight="30.0" prefWidth="60.0" text=" 8" /> | ||
<Label alignment="TOP_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 9" /> | ||
</children> | ||
</VBox> | ||
<VBox layoutX="10.0" layoutY="82.0" prefHeight="200.0" prefWidth="100.0"> | ||
<children> | ||
<Label alignment="BOTTOM_LEFT" prefHeight="30.0" prefWidth="60.0" text=" 10" /> | ||
<Label alignment="TOP_LEFT" layoutX="10.0" layoutY="10.0" prefHeight="30.0" prefWidth="60.0" text=" 11" /> | ||
</children> | ||
</VBox> | ||
</children></VBox> | ||
</right> | ||
</BorderPane> |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.