Skip to content

Commit b9f002a

Browse files
author
abecirovic3
committed
basic layout of Helo view done
1 parent ffc0167 commit b9f002a

File tree

3 files changed

+93
-7
lines changed

3 files changed

+93
-7
lines changed

out/production/Jumpy/fxml/help.fxml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,54 @@
33
<?import javafx.geometry.*?>
44
<?import javafx.scene.control.*?>
55
<?import javafx.scene.layout.*?>
6+
<?import javafx.scene.text.*?>
67

7-
8-
<VBox alignment="TOP_CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" spacing="5.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1">
8+
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" spacing="5.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1">
99
<children>
10-
<Label text="Help is on the way :D" />
10+
<Label text="Jumpy">
11+
<font>
12+
<Font size="18.0" />
13+
</font>
14+
</Label>
15+
<Label prefHeight="55.0" prefWidth="590.0" text="Jumpy is a simple puzzle game, which is based on the original Skocko game found as a part in the quiz gaming show Slagalica. The game is free to play, and feel free to contribute if you like :)." textAlignment="JUSTIFY" wrapText="true" />
16+
<Separator layoutX="15.0" layoutY="209.0" prefWidth="200.0" />
17+
<Label text="Game Play">
18+
<font>
19+
<Font size="18.0" />
20+
</font>
21+
</Label>
22+
<HBox spacing="5.0">
23+
<children>
24+
<Hyperlink text="Game rules" />
25+
<Hyperlink layoutX="10.0" layoutY="10.0" text="Start a new game" />
26+
</children>
27+
</HBox>
28+
<Separator prefWidth="200.0" />
29+
<Label layoutX="15.0" layoutY="15.0" text="Useful Tips">
30+
<font>
31+
<Font size="18.0" />
32+
</font>
33+
</Label>
34+
<HBox layoutX="15.0" layoutY="41.0" spacing="5.0">
35+
<children>
36+
<Hyperlink text="High scores" />
37+
<Hyperlink layoutX="10.0" layoutY="10.0" text="Watch the time" />
38+
</children>
39+
</HBox>
40+
<Separator layoutX="15.0" layoutY="41.0" prefWidth="200.0" />
41+
<Label layoutX="15.0" layoutY="86.0" text="Get Involved">
42+
<font>
43+
<Font size="18.0" />
44+
</font>
45+
</Label>
46+
<HBox layoutX="15.0" layoutY="104.0" spacing="5.0">
47+
<children>
48+
<Hyperlink text="Report bugs" />
49+
<Hyperlink layoutX="10.0" layoutY="10.0" text="Help develop" />
50+
</children>
51+
</HBox>
52+
<Separator layoutX="15.0" layoutY="133.0" prefWidth="200.0" />
53+
<TextArea prefHeight="233.0" prefWidth="590.0" />
1154
<ButtonBar prefHeight="40.0" prefWidth="200.0">
1255
<buttons>
1356
<Button mnemonicParsing="false" onAction="#closeAction" text="Close" />

resources/fxml/help.fxml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,54 @@
33
<?import javafx.geometry.*?>
44
<?import javafx.scene.control.*?>
55
<?import javafx.scene.layout.*?>
6+
<?import javafx.scene.text.*?>
67

7-
8-
<VBox alignment="TOP_CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" spacing="5.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1">
8+
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" spacing="5.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1">
99
<children>
10-
<Label text="Help is on the way :D" />
10+
<Label text="Jumpy">
11+
<font>
12+
<Font size="18.0" />
13+
</font>
14+
</Label>
15+
<Label prefHeight="55.0" prefWidth="590.0" text="Jumpy is a simple puzzle game, which is based on the original game Skocko found as a part in the quiz gaming show Slagalica. The game is free to play, and feel free to contribute if you like :)." textAlignment="JUSTIFY" wrapText="true" />
16+
<Separator layoutX="15.0" layoutY="209.0" prefWidth="200.0" />
17+
<Label text="Game Play">
18+
<font>
19+
<Font size="18.0" />
20+
</font>
21+
</Label>
22+
<HBox spacing="5.0">
23+
<children>
24+
<Hyperlink text="Game rules" />
25+
<Hyperlink layoutX="10.0" layoutY="10.0" text="Start a new game" />
26+
</children>
27+
</HBox>
28+
<Separator prefWidth="200.0" />
29+
<Label layoutX="15.0" layoutY="15.0" text="Useful Tips">
30+
<font>
31+
<Font size="18.0" />
32+
</font>
33+
</Label>
34+
<HBox layoutX="15.0" layoutY="41.0" spacing="5.0">
35+
<children>
36+
<Hyperlink text="High scores" />
37+
<Hyperlink layoutX="10.0" layoutY="10.0" text="Watch the time" />
38+
</children>
39+
</HBox>
40+
<Separator layoutX="15.0" layoutY="41.0" prefWidth="200.0" />
41+
<Label layoutX="15.0" layoutY="86.0" text="Get Involved">
42+
<font>
43+
<Font size="18.0" />
44+
</font>
45+
</Label>
46+
<HBox layoutX="15.0" layoutY="104.0" spacing="5.0">
47+
<children>
48+
<Hyperlink text="Report bugs" />
49+
<Hyperlink layoutX="10.0" layoutY="10.0" text="Help develop" />
50+
</children>
51+
</HBox>
52+
<Separator layoutX="15.0" layoutY="133.0" prefWidth="200.0" />
53+
<TextArea editable="false" prefHeight="233.0" prefWidth="590.0" />
1154
<ButtonBar prefHeight="40.0" prefWidth="200.0">
1255
<buttons>
1356
<Button mnemonicParsing="false" onAction="#closeAction" text="Close" />

src/sample/HelpController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import javafx.stage.Stage;
66

77
public class HelpController {
8-
8+
99
public void closeAction(ActionEvent actionEvent) {
1010
Node node = (Node) actionEvent.getSource();
1111
Stage currStage = (Stage) node.getScene().getWindow();

0 commit comments

Comments
 (0)