From f941b529f1cb12312041516e6799ece0f6df2cac Mon Sep 17 00:00:00 2001 From: sowgro Date: Sun, 21 May 2023 17:12:06 -0400 Subject: add f11 fullscrn, comment gui, add scorecontroller --- src/gui/Leaderboard.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui/Leaderboard.java') 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 scores = new ListView(); @@ -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(); -- cgit v1.2.3