Fix: correct layout layering in Game UI
This commit is contained in:
committed by
Mathis Ginkel
parent
826e58644a
commit
6471749133
@@ -76,12 +76,14 @@
|
|||||||
<HBox fx:id="communityCardsBox"
|
<HBox fx:id="communityCardsBox"
|
||||||
styleClass="community-cards-box"
|
styleClass="community-cards-box"
|
||||||
alignment="CENTER"
|
alignment="CENTER"
|
||||||
|
GridPane.columnIndex="2"
|
||||||
spacing="10"/>
|
spacing="10"/>
|
||||||
|
|
||||||
<!-- Pot Box -->
|
<!-- Pot Box -->
|
||||||
<HBox fx:id="potBox"
|
<HBox fx:id="potBox"
|
||||||
alignment="CENTER"
|
alignment="CENTER"
|
||||||
spacing="4"
|
spacing="4"
|
||||||
|
GridPane.columnIndex="2"
|
||||||
maxWidth="Infinity"
|
maxWidth="Infinity"
|
||||||
maxHeight="Infinity"/>
|
maxHeight="Infinity"/>
|
||||||
|
|
||||||
@@ -99,6 +101,7 @@
|
|||||||
styleClass="dealer-box"
|
styleClass="dealer-box"
|
||||||
fitWidth="100"
|
fitWidth="100"
|
||||||
fitHeight="100"
|
fitHeight="100"
|
||||||
|
GridPane.columnIndex="2"
|
||||||
preserveRatio="true"
|
preserveRatio="true"
|
||||||
visible="false"/>
|
visible="false"/>
|
||||||
|
|
||||||
@@ -117,56 +120,48 @@
|
|||||||
<!-- RIGHT SIDE (Chat Box) -->
|
<!-- RIGHT SIDE (Chat Box) -->
|
||||||
<AnchorPane fx:id="chatContainer" GridPane.columnIndex="2" />
|
<AnchorPane fx:id="chatContainer" GridPane.columnIndex="2" />
|
||||||
|
|
||||||
|
<HBox AnchorPane.topAnchor="45"
|
||||||
|
AnchorPane.leftAnchor="0"
|
||||||
|
AnchorPane.rightAnchor="0"
|
||||||
|
alignment="CENTER"
|
||||||
|
spacing="300">
|
||||||
|
|
||||||
|
<VBox HBox.hgrow="ALWAYS"
|
||||||
|
alignment="TOP_LEFT"
|
||||||
|
translateX="50"
|
||||||
|
translateY="50">
|
||||||
|
|
||||||
|
<fx:include fx:id="player1"
|
||||||
|
source="gameuicomponents/Playerstatus.fxml"/>
|
||||||
|
|
||||||
|
</VBox>
|
||||||
|
|
||||||
|
<VBox HBox.hgrow="ALWAYS"
|
||||||
|
alignment="TOP_CENTER"
|
||||||
|
translateY="20">
|
||||||
|
|
||||||
|
<fx:include fx:id="player2"
|
||||||
|
source="gameuicomponents/Playerstatus.fxml"/>
|
||||||
|
|
||||||
|
</VBox>
|
||||||
|
|
||||||
|
<VBox HBox.hgrow="ALWAYS"
|
||||||
|
alignment="TOP_RIGHT"
|
||||||
|
translateX="-50"
|
||||||
|
translateY="50">
|
||||||
|
|
||||||
|
<fx:include fx:id="player3"
|
||||||
|
source="gameuicomponents/Playerstatus.fxml"/>
|
||||||
|
|
||||||
|
</VBox>
|
||||||
|
|
||||||
|
</HBox>
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
|
|
||||||
<!-- movable taskbar -->
|
<!-- movable taskbar -->
|
||||||
<AnchorPane>
|
<AnchorPane>
|
||||||
<fx:include fx:id="taskbarInclude" source="gameuicomponents/Taskbar.fxml"/>
|
<fx:include fx:id="taskbarInclude" source="gameuicomponents/Taskbar.fxml" GridPane.columnIndex="1"/>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
|
||||||
<!-- Opponent Status 1: One of three panels displaying the opponent's icon, name, and account balance -->
|
|
||||||
<GridPane AnchorPane.leftAnchor="0.0"
|
|
||||||
AnchorPane.rightAnchor="0.0"
|
|
||||||
AnchorPane.topAnchor="50">
|
|
||||||
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints percentWidth="5"/>
|
|
||||||
<ColumnConstraints percentWidth="16"/>
|
|
||||||
</columnConstraints>
|
|
||||||
|
|
||||||
<children>
|
|
||||||
<fx:include fx:id="player1" source="gameuicomponents/Playerstatus.fxml" GridPane.columnIndex="1"/>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
|
|
||||||
<!-- Opponent Status 2: One of three panels displaying the opponent's icon, name, and account balance -->
|
|
||||||
<GridPane AnchorPane.leftAnchor="0.0"
|
|
||||||
AnchorPane.rightAnchor="0.0"
|
|
||||||
AnchorPane.topAnchor="20">
|
|
||||||
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints percentWidth="30"/>
|
|
||||||
<ColumnConstraints percentWidth="16"/>
|
|
||||||
</columnConstraints>
|
|
||||||
|
|
||||||
<children>
|
|
||||||
<fx:include fx:id="player2" source="gameuicomponents/Playerstatus.fxml" GridPane.columnIndex="1"/>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
|
|
||||||
<!-- Opponent Status 3: One of three panels that displays the opponent's icon, name, and account balance -->
|
|
||||||
<GridPane AnchorPane.leftAnchor="0.0"
|
|
||||||
AnchorPane.rightAnchor="0.0"
|
|
||||||
AnchorPane.topAnchor="50">
|
|
||||||
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints percentWidth="55"/>
|
|
||||||
<ColumnConstraints percentWidth="16"/>
|
|
||||||
</columnConstraints>
|
|
||||||
|
|
||||||
<children>
|
|
||||||
<fx:include fx:id="player3" source="gameuicomponents/Playerstatus.fxml" GridPane.columnIndex="1"/>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
|||||||
Reference in New Issue
Block a user