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/MainMenu.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/MainMenu.java')
-rw-r--r-- | src/gui/MainMenu.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/MainMenu.java b/src/gui/MainMenu.java index 347ab3c..03e1b95 100644 --- a/src/gui/MainMenu.java +++ b/src/gui/MainMenu.java @@ -9,20 +9,25 @@ import javafx.scene.layout.VBox; import javafx.scene.paint.Color; import javafx.scene.text.Text; + public class MainMenu 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 MainMenu() { DropShadow dropShadow = new DropShadow(); dropShadow.setRadius(50.0); dropShadow.setColor(Color.WHITE); dropShadow.setBlurType(BlurType.GAUSSIAN); - + Text title = new Text(); title.setText("NPE Hero"); - title.setStyle("-fx-font-size: 125;"); + title.getStyleClass().add("t0"); title.setEffect(dropShadow); - title.setFill(Color.WHITE); Button play = new Button(); play.setText("Play"); |