Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Exalted Sheet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pr1n19
Exalted Sheet
Commits
1b95956d
Commit
1b95956d
authored
Jul 13, 2021
by
keyno10
Browse files
Options
Downloads
Patches
Plain Diff
Abilities list titles & structure added
parent
e162c67a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main/java/Character/Abilities.java
+13
-0
13 additions, 0 deletions
src/main/java/Character/Abilities.java
src/main/java/UI/AbilitiesList.java
+24
-1
24 additions, 1 deletion
src/main/java/UI/AbilitiesList.java
src/main/java/UI/Sheet.java
+3
-1
3 additions, 1 deletion
src/main/java/UI/Sheet.java
with
40 additions
and
2 deletions
src/main/java/Character/Abilities.java
+
13
−
0
View file @
1b95956d
...
...
@@ -46,4 +46,17 @@ public class Abilities {
public
int
getWisdomAbility
(
int
selector
)
{
return
wisdomAbilities
[
selector
];
}
/**
* Set value of given numbered ability
*/
public
void
setWarAbility
(
int
selector
,
int
value
)
{
warAbilities
[
selector
]
=
value
;
}
public
void
setLifeAbility
(
int
selector
,
int
value
)
{
lifeAbilities
[
selector
]
=
value
;
}
public
void
setWisdomAbility
(
int
selector
,
int
value
)
{
wisdomAbilities
[
selector
]
=
value
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/UI/AbilitiesList.java
+
24
−
1
View file @
1b95956d
package
UI
;
import
javafx.scene.control.ScrollPane
;
import
javafx.scene.layout.HBox
;
import
javafx.scene.layout.StackPane
;
import
javafx.scene.text.Text
;
public
class
AbilitiesList
extends
ScrollPane
{
private
final
Sheet
sheet
;
private
final
HBox
container
;
public
AbilitiesList
()
{
public
AbilitiesList
(
Sheet
sheet
)
{
//Set sheet
this
.
sheet
=
sheet
;
//Set HBox into scroll pane to hold Names & values
container
=
new
HBox
();
this
.
getChildren
().
add
(
container
);
}
/**
* Set title into list
*/
private
void
addTitle
(
String
title
)
{
StackPane
pane
=
new
StackPane
();
container
.
getChildren
().
add
(
pane
);
Text
text
=
new
Text
(
title
);
pane
.
getChildren
().
add
(
text
);
}
}
This diff is collapsed.
Click to expand it.
src/main/java/UI/Sheet.java
+
3
−
1
View file @
1b95956d
...
...
@@ -14,8 +14,10 @@ public class Sheet extends BorderPane {
header
.
getChildren
().
add
(
new
AttributeHeader
());
header
.
getChildren
().
add
(
new
MoteDisplay
());
this
.
setTop
(
header
);
this
.
setBottom
(
new
HealthBar
(
this
));
this
.
setRight
(
blankInteract
);
this
.
setLeft
(
new
AbilitiesList
(
this
));
this
.
setBottom
(
new
HealthBar
(
this
));
}
public
void
returnToNeutral
()
{
...
...
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