Feat/ui switch lobby game #222
@@ -29,7 +29,7 @@ public class CasinoGameUI extends Application {
|
|||||||
@Override
|
@Override
|
||||||
public void start(Stage stage) throws IOException {
|
public void start(Stage stage) throws IOException {
|
||||||
FXMLLoader fxmlLoader =
|
FXMLLoader fxmlLoader =
|
||||||
new FXMLLoader(CasinoGameUI.class.getResource("/ui-structure/casinogameui.fxml"));
|
new FXMLLoader(CasinoGameUI.class.getResource("/ui-structure/Casinogameui.fxml"));
|
||||||
Scene scene = new Scene(fxmlLoader.load(), DEFAULT_WIDTH, DEFAULT_HEIGHT);
|
Scene scene = new Scene(fxmlLoader.load(), DEFAULT_WIDTH, DEFAULT_HEIGHT);
|
||||||
stage.setTitle("Casono (GAME)");
|
stage.setTitle("Casono (GAME)");
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -423,7 +423,7 @@ public class CasinoBrowserController {
|
|||||||
|
|
||||||
Scene scene = new Scene(root, WINDOW_WIDTH, WINDOW_HEIGHT);
|
Scene scene = new Scene(root, WINDOW_WIDTH, WINDOW_HEIGHT);
|
||||||
|
|
||||||
var css = CasinoBrowserController.class.getResource("/ui-structure/casinogameui.css");
|
var css = CasinoBrowserController.class.getResource("/ui-structure/Casinogameui.css");
|
||||||
|
|
||||||
if (css != null) {
|
if (css != null) {
|
||||||
scene.getStylesheets().add(css.toExternalForm());
|
scene.getStylesheets().add(css.toExternalForm());
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
<?import javafx.geometry.Insets?>
|
<?import javafx.geometry.Insets?>
|
||||||
<?import javafx.scene.image.*?>
|
<?import javafx.scene.image.*?>
|
||||||
|
|
||||||
<!-- Hauptcontainer: Verknüpft die UI mit dem CasinoGameController und lädt casinogameui.css -->
|
<!-- Hauptcontainer: Verknüpft die UI mit dem CasinoGameController und lädt Casinogameui.css -->
|
||||||
<AnchorPane xmlns="http://javafx.com/javafx/21"
|
<AnchorPane xmlns="http://javafx.com/javafx/21"
|
||||||
xmlns:fx="http://javafx.com/fxml/1"
|
xmlns:fx="http://javafx.com/fxml/1"
|
||||||
fx:controller="ch.unibas.dmi.dbis.cs108.casono.client.ui.gameui.CasinoGameController"
|
fx:controller="ch.unibas.dmi.dbis.cs108.casono.client.ui.gameui.CasinoGameController"
|
||||||
styleClass="background"
|
styleClass="background"
|
||||||
stylesheets="@casinogameui.css">
|
stylesheets="@Casinogameui.css">
|
||||||
|
|
||||||
<GridPane prefWidth="1200" prefHeight="800" AnchorPane.topAnchor="0" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0" AnchorPane.rightAnchor="0">
|
<GridPane prefWidth="1200" prefHeight="800" AnchorPane.topAnchor="0" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0" AnchorPane.rightAnchor="0">
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
@@ -78,14 +78,14 @@
|
|||||||
</VBox>
|
</VBox>
|
||||||
|
|
||||||
<!-- TODO: Platzhalter: Chat-Box in Spalte 2: -->
|
<!-- TODO: Platzhalter: Chat-Box in Spalte 2: -->
|
||||||
<fx:include source="components/chatbox.fxml" GridPane.columnIndex="2"/>
|
<fx:include source="components/Chatbox.fxml" GridPane.columnIndex="2"/>
|
||||||
|
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
|
|
||||||
<!-- verschiebbare Taskbar -->
|
<!-- verschiebbare Taskbar -->
|
||||||
<AnchorPane>
|
<AnchorPane>
|
||||||
<fx:include fx:id="taskbarInclude" source="gameuicomponents/taskbar.fxml"/>
|
<fx:include fx:id="taskbarInclude" source="gameuicomponents/Taskbar.fxml"/>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
|
||||||
<!-- Gegner-Status 1: Eines von drei Panels, das Icon, Name und Kontostand des Mitspielers anzeigt -->
|
<!-- Gegner-Status 1: Eines von drei Panels, das Icon, Name und Kontostand des Mitspielers anzeigt -->
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
|
|
||||||
<children>
|
<children>
|
||||||
<fx:include source="gameuicomponents/playerstatus.fxml" GridPane.columnIndex="1"/>
|
<fx:include source="gameuicomponents/Playerstatus.fxml" GridPane.columnIndex="1"/>
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
|
|
||||||
<children>
|
<children>
|
||||||
<fx:include source="gameuicomponents/playerstatus.fxml" GridPane.columnIndex="1"/>
|
<fx:include source="gameuicomponents/Playerstatus.fxml" GridPane.columnIndex="1"/>
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
|
|
||||||
<children>
|
<children>
|
||||||
<fx:include source="gameuicomponents/playerstatus.fxml" GridPane.columnIndex="1"/>
|
<fx:include source="gameuicomponents/Playerstatus.fxml" GridPane.columnIndex="1"/>
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@
|
|||||||
xmlns:fx="http://javafx.com/fxml/1"
|
xmlns:fx="http://javafx.com/fxml/1"
|
||||||
fx:controller="ch.unibas.dmi.dbis.cs108.casono.client.ui.chatui.ChatController"
|
fx:controller="ch.unibas.dmi.dbis.cs108.casono.client.ui.chatui.ChatController"
|
||||||
alignment="CENTER"
|
alignment="CENTER"
|
||||||
stylesheets="@chatui.css">
|
stylesheets="@Chatui.css">
|
||||||
|
|
||||||
<!-- Innenabstand: Schafft oben, rechts und unten 30 Pixel Platz, links nur 10 Pixel (asymmetrisch) -->
|
<!-- Innenabstand: Schafft oben, rechts und unten 30 Pixel Platz, links nur 10 Pixel (asymmetrisch) -->
|
||||||
<padding>
|
<padding>
|
||||||
Reference in New Issue
Block a user