diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-21 17:12:06 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-21 17:12:06 -0400 |
commit | f941b529f1cb12312041516e6799ece0f6df2cac (patch) | |
tree | fc905d0dc1f67380c55c7053e22a76c1917821e9 /src/gui/Leaderboard.java | |
parent | f49a73c6af7445bb4ae92fcab87e13abba527048 (diff) | |
download | NPEhero-f941b529f1cb12312041516e6799ece0f6df2cac.tar.gz NPEhero-f941b529f1cb12312041516e6799ece0f6df2cac.tar.bz2 NPEhero-f941b529f1cb12312041516e6799ece0f6df2cac.zip |
add f11 fullscrn, comment gui, add scorecontroller
Diffstat (limited to 'src/gui/Leaderboard.java')
-rw-r--r-- | src/gui/Leaderboard.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/Leaderboard.java b/src/gui/Leaderboard.java index 4f5604d..36cbd90 100644 --- a/src/gui/Leaderboard.java +++ b/src/gui/Leaderboard.java @@ -12,6 +12,11 @@ import javafx.scene.layout.VBox; public class Leaderboard extends Pane { + /* + * this class is a layout class, most of its purpose is to place UI elements like Buttons within Panes like VBoxes. + * the creation of these UI elements are mostly not commented due to their repetitive and self explanatory nature. + * style classes are defined in the style.css file. + */ public Leaderboard() { ListView<String> scores = new ListView<String>(); @@ -23,7 +28,7 @@ public class Leaderboard extends Pane scores.prefHeightProperty().bind(super.prefHeightProperty().multiply(0.75)); Button exit = new Button(); - exit.setText("Exit"); + exit.setText("Back"); exit.setOnAction(e -> Driver.setMenu(new MainMenu())); VBox centerBox = new VBox(); |