Add: initialized GUI using FXML file and controller

This commit is contained in:
2026-05-06 13:21:29 +02:00
parent 86a6300e37
commit dbdb6a0e3e
145 changed files with 192 additions and 73 deletions
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/26" xmlns:fx="http://javafx.com/fxml/1" fx:controller="it.polimi.ingsw.gc14.View.GUI.MainFXMLController">
<children>
<VBox prefHeight="400.0" prefWidth="478.0">
<children>
<HBox fx:id="upperList" prefHeight="100.0" prefWidth="200.0" style="-fx-background-color: #91352d;" />
<HBox fx:id="board" prefHeight="100.0" prefWidth="200.0" style="-fx-background-color: #2d3c91;" />
<HBox fx:id="lowerList" prefHeight="100.0" prefWidth="200.0" style="-fx-background-color: #2d915b;" />
<HBox fx:id="myHand" prefHeight="100.0" prefWidth="200.0" style="-fx-background-color: #8e912d;" />
</children>
</VBox>
<VBox fx:id="playersHand" prefHeight="400.0" prefWidth="126.0" style="-fx-background-color: #742d91;" />
</children>
</HBox>