Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
paths
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolai Hollup Brand
paths
Commits
9bd9fb2c
Commit
9bd9fb2c
authored
2 years ago
by
Nicolai Hollup Brand
Browse files
Options
Downloads
Patches
Plain Diff
fix: add javadoc
parent
a8ea8763
No related branches found
No related tags found
2 merge requests
!30
feat: help page
,
!7
Feat/part three
Pipeline
#230233
passed
2 years ago
Stage: checkstyle
Stage: compile
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/edu/ntnu/idatt2001/group_30/paths/view/views/HelpView.java
+13
-1
13 additions, 1 deletion
...du/ntnu/idatt2001/group_30/paths/view/views/HelpView.java
with
13 additions
and
1 deletion
src/main/java/edu/ntnu/idatt2001/group_30/paths/view/views/HelpView.java
+
13
−
1
View file @
9bd9fb2c
...
@@ -13,7 +13,9 @@ import javafx.scene.layout.VBox;
...
@@ -13,7 +13,9 @@ import javafx.scene.layout.VBox;
import
javafx.scene.text.Text
;
import
javafx.scene.text.Text
;
/**
/**
* Unfinished Help page.
* The Help page for the application.
* This page contains information on how to play the game.
* It also contains buttons for going back to the home page.
* @author Nicolai H. Brand.
* @author Nicolai H. Brand.
*/
*/
public
class
HelpView
extends
View
<
VBox
>
{
public
class
HelpView
extends
View
<
VBox
>
{
...
@@ -32,6 +34,10 @@ public class HelpView extends View<VBox> {
...
@@ -32,6 +34,10 @@ public class HelpView extends View<VBox> {
addAll
(
getButtons
());
addAll
(
getButtons
());
}
}
/**
* Creates a scroll pane containing the help text.
* @return A scroll pane containing the help text.
*/
private
Node
helpText
()
{
private
Node
helpText
()
{
ScrollPane
scrollPane
=
new
ScrollPane
();
ScrollPane
scrollPane
=
new
ScrollPane
();
scrollPane
.
prefWidth
(
600
);
scrollPane
.
prefWidth
(
600
);
...
@@ -52,6 +58,12 @@ public class HelpView extends View<VBox> {
...
@@ -52,6 +58,12 @@ public class HelpView extends View<VBox> {
return
scrollPane
;
return
scrollPane
;
}
}
/**
* Creates the buttons for the help page.
* The buttons are for going back to the home page and going back to the previous page.
* The previous page is the page the user was on before going to the help page.
* @return A list of buttons for the help page.
*/
private
List
<
Node
>
getButtons
()
{
private
List
<
Node
>
getButtons
()
{
List
<
Node
>
buttons
=
new
ArrayList
<>();
List
<
Node
>
buttons
=
new
ArrayList
<>();
add
(
DefaultButton
.
medium
(
"Home"
,
controller
.
goTo
(
HomeView
.
class
)));
add
(
DefaultButton
.
medium
(
"Home"
,
controller
.
goTo
(
HomeView
.
class
)));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment