Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Hauptmenü angepasst
Browse files Browse the repository at this point in the history
  • Loading branch information
Finnomator committed Jun 20, 2023
1 parent a103a50 commit 7eb05ef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
4 changes: 4 additions & 0 deletions src/main/java/cardnight/MainMenuView.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,8 @@ public void marcClick() {
public void davidClick() {
openLinkInBrowser("https://github.com/Dav1dW1");
}

public void usedMusikKlick() {
openLinkInBrowser("https://www.youtube.com/watch?v=5aQhFul3FNk");
}
}
29 changes: 18 additions & 11 deletions src/main/resources/cardnight/main-menu-view.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.shape.Box?>
<StackPane xmlns:fx="http://javafx.com/fxml/1" fx:id="root" minHeight="800" minWidth="1422"
styleClass="colored-pane" xmlns="http://javafx.com/javafx/11.0.14-internal"
<StackPane fx:id="root" minHeight="800" minWidth="1422" styleClass="colored-pane"
xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="cardnight.MainMenuView">

<ImageView fx:id="hintergrundImageView" preserveRatio="true"/>
Expand Down Expand Up @@ -80,17 +80,24 @@

<fx:include source="sound-menu.fxml" StackPane.alignment="TOP_RIGHT"/>

<VBox alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" StackPane.alignment="BOTTOM_RIGHT">
<Label text="Developed by" textFill="white"/>
<Hyperlink onAction="#finnClick" text="Finn"/>
<Hyperlink onAction="#chrisClick" text="Chris"/>
<Hyperlink onAction="#marcClick" text="Marc"/>
<Hyperlink onAction="#davidClick" text="David"/>
</VBox>
<HBox alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" StackPane.alignment="BOTTOM_RIGHT">
<Label rotate="-90.0" text="Entwickelt von" textFill="white">
<HBox.margin>
<Insets left="-30.0" right="-25.0"/>
</HBox.margin>
</Label>
<VBox alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity">
<Hyperlink onAction="#finnClick" text="Finn"/>
<Hyperlink onAction="#chrisClick" text="Chris"/>
<Hyperlink onAction="#marcClick" text="Marc"/>
<Hyperlink onAction="#davidClick" text="David"/>
</VBox>
</HBox>

<VBox maxHeight="-Infinity" maxWidth="-Infinity" StackPane.alignment="BOTTOM_LEFT">
<Hyperlink fx:id="debugLink" onAction="#debugClick" text="Debug"/>
<Hyperlink fx:id="debugLink" onAction="#debugClick" text="Debug" visible="false"/>
<Hyperlink onAction="#githubRepoLinkClick" text="GitHub Repo"/>
<Hyperlink onAction="#reportBugLinkClick" text="Report Bug"/>
<Hyperlink onAction="#usedMusikKlick" text="Verwendete Musik"/>
<Hyperlink onAction="#reportBugLinkClick" text="Melde einen Fehler"/>
</VBox>
</StackPane>

0 comments on commit 7eb05ef

Please sign in to comment.