Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Credits {
- private Text name1;
- private Text name2;
- private Text name3;
- private Text name4;
- private Text title;
- private Text logo;
- private Text font;
- private Text image;
- private Text email1;
- private Text email2;
- private Text email3;
- private Text email4;
- private HBox developersBox;
- private HBox emailBox;
- private VBox infoBox;
- private Button menuButton;
- public Credits(){
- this.name1 = new Text ("Jonny Bauer");
- this.name2 = new Text ("Cody Pollard");
- this.name3 = new Text ("Joe B");
- this.name3 = new Text ("Grant");
- this.title = new Text ("Fit4Life");
- this.email1 = new Text ("jonny@hotmail.com");
- this.email2 = new Text ("cody@hotmail.com");
- this.email3 = new Text ("joe@hotmail.com");
- this.email4 = new Text ("grant@hotmail.com");
- this.image = new Text ("Image Used: NameHere");
- this.logo = new Text ("Logo Created By: NameHere");
- this.font = new Text ("Font Used: NameHere");
- //This HBox Holds The information of Cody, Jonny, Joe & Grant
- this.developersBox = new HBox();
- this.developersBox.getChildren().addAll(name1, name2, name3, name4);
- this.developersBox.setSpacing(5);
- //this.developersBox.setAlignment(Pos.BOTTOM_CENTER);
- //This HBox Holds the Email of Cody, Jonny, & Joe
- this.emailBox = new HBox();
- this.emailBox.getChildren().addAll(email1, email2, email3, email4);
- this.emailBox.setSpacing(5);
- //this.emailBox.setAlignment(Pos.BOTTOM_CENTER);
- //This VBox Holds the information of the font,logo,images
- this.infoBox = new VBox();
- this.infoBox.getChildren().addAll(title, image, logo, font);
- this.infoBox.setSpacing(5);
- this.infoBox.setAlignment(Pos.CENTER);
- //This button will send you to the main menu
- this.menuButton = new Button("Main Menu");
- this.menuButton.setAlignment(Pos.BOTTOM_RIGHT);
- // this.menuButton.setOnAction(e->{
- // Main.mainStage.setScene(new MainMenu());
- // });
- GridPane pane = new GridPane();
- pane.add(infoBox, 1, 1);
- pane.add(developersBox, 2, 2);
- pane.add(emailBox, 3, 3);
- }
- public Text getName1() {
- return name1;
- }
- public void setName1(Text name1) {
- this.name1 = name1;
- }
- public Text getName2() {
- return name2;
- }
- public void setName2(Text name2) {
- this.name2 = name2;
- }
- public Text getName3() {
- return name3;
- }
- public void setName3(Text name3) {
- this.name3 = name3;
- }
- public Text getName4() {
- return name4;
- }
- public void setName4(Text name4) {
- this.name3 = name4;
- }
- public Text getTitle() {
- return title;
- }
- public void setTitle(Text title) {
- this.title = title;
- }
- public Text getLogo() {
- return logo;
- }
- public void setLogo(Text logo) {
- this.logo = logo;
- }
- public Text getFont() {
- return font;
- }
- public void setFont(Text font) {
- this.font = font;
- }
- public Text getImage() {
- return image;
- }
- public void setImage(Text image) {
- this.image = image;
- }
- public Text getEmail1() {
- return email1;
- }
- public void setEmail1(Text email1) {
- this.email1 = email1;
- }
- public Text getEmail2() {
- return email2;
- }
- public void setEmail2(Text email2) {
- this.email2 = email2;
- }
- public Text getEmail3() {
- return email3;
- }
- public void setEmail3(Text email3) {
- this.email3 = email3;
- }
- public Text getEmail4() {
- return email4;
- }
- public void setEmail4(Text email4) {
- this.email4 = email4;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement