Browse Source

refactoring: change cardDeck to HBox

main
fdai7736 11 months ago
parent
commit
bbf07e337b
  1. 17
      src/main/java/de/hsfulda/onses/controllers/CardDeckController.java
  2. 13
      src/main/resources/de/hsfulda/onses/views/cardDeck.fxml
  3. 4
      src/main/resources/de/hsfulda/onses/views/player.fxml

17
src/main/java/de/hsfulda/onses/controllers/CardDeckController.java

@ -1,17 +0,0 @@
package de.hsfulda.onses.controllers;
import de.hsfulda.onses.Main;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import java.io.IOException;
import java.util.Objects;
public class CardDeckController implements Controller {
@Override
public Parent render() throws IOException {
final Parent parent = FXMLLoader.load(Objects.requireNonNull(Main.class.getResource("views/cardDeck.fxml")));
return parent;
}
}

13
src/main/resources/de/hsfulda/onses/views/cardDeck.fxml

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>

4
src/main/resources/de/hsfulda/onses/views/player.fxml

@ -2,7 +2,7 @@
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.text.Font?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="220.0" prefWidth="950.0" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1">
@ -12,6 +12,6 @@
<Font size="17.0" />
</font>
</Label>
<Pane fx:id="cardsPane" layoutX="7.0" layoutY="28.0" prefHeight="200.0" prefWidth="935.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="3.0" AnchorPane.rightAnchor="8.0" AnchorPane.topAnchor="20.0" />
<HBox fx:id="cardsHBox" layoutY="22.0" prefHeight="200.0" prefWidth="940.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="20.0" />
</children>
</AnchorPane>
Loading…
Cancel
Save