Style: the boxes for the opponents should have a working hover effect.

This commit is contained in:
Julian Kropff
2026-05-08 15:08:13 +02:00
parent b304fa04ed
commit b63ce096fa
2 changed files with 12 additions and 9 deletions
@@ -7,7 +7,8 @@
<!-- Main container: Links the UI to the CasinoGameController and loads Casinogameui.css -->
<AnchorPane xmlns="http://javafx.com/javafx/21"
<AnchorPane fx:id="rootPane"
xmlns="http://javafx.com/javafx/21"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ch.unibas.dmi.dbis.cs108.casono.client.ui.gameui.CasinoGameController"
styleClass="background">
@@ -40,6 +41,8 @@
alignment="CENTER"
styleClass="casino-table"
spacing="20"
mouseTransparent="false"
pickOnBounds="false"
maxWidth="Infinity"
maxHeight="Infinity">
@@ -66,7 +69,7 @@
</Label>
<Label fx:id="tableText"
text="Welcome! The round is about to begin."
text="Welcome! The game starts when 4 players are present..."
styleClass="table-title" />
</VBox>
@@ -160,18 +163,18 @@
</GridPane>
<!-- movable taskbar -->
<AnchorPane>
<AnchorPane pickOnBounds="false">
<fx:include fx:id="taskbarInclude" source="gameuicomponents/Taskbar.fxml" GridPane.columnIndex="1"/>
</AnchorPane>
<!-- movable notebook (Tips Box) -->
<AnchorPane>
<fx:include fx:id="notebookInclude" source="gameuicomponents/Notebook.fxml"/>
<AnchorPane pickOnBounds="false">
<fx:include fx:id="notebookInclude" source="gameuicomponents/Notebook.fxml" GridPane.columnIndex="1"/>
</AnchorPane>
<!-- movable settings -->
<AnchorPane>
<fx:include fx:id="settingsInclude" source="gameuicomponents/Settings.fxml"/>
<AnchorPane pickOnBounds="false">
<fx:include fx:id="settingsInclude" source="gameuicomponents/Settings.fxml" GridPane.columnIndex="1"/>
</AnchorPane>
</AnchorPane>
@@ -14,7 +14,7 @@ and status displays will be dynamically populated with real-time data from the s
<VBox fx:id="playerStatusBox"
xmlns="http://javafx.com/javafx/21"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ch.unibas.dmi.dbis.cs108.casono.client.ui.gameui.gameuicomponents.PlayerStatusController"
fx:controller="ch.unibas.dmi.dbis.cs108.casono.client.ui.gameui.gameuicomponents.PlayerStatusController"
styleClass="player-status-pane"
prefWidth="200"
spacing="5">
@@ -25,7 +25,7 @@ and status displays will be dynamically populated with real-time data from the s
<HBox fx:id="statusInnerBoxTop"
styleClass="status-inner-box-top"
alignment="CENTER_LEFT"
prefHeight="40">
prefHeight="45">
<padding>
<Insets left="10"/>