-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0411c23
commit 6a4aa45
Showing
10 changed files
with
101 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,51 @@ | ||
package com.example.conway; | ||
|
||
import javafx.event.ActionEvent; | ||
import javafx.scene.control.Hyperlink; | ||
import javafx.scene.control.MenuButton; | ||
import javafx.scene.control.ScrollPane; | ||
import javafx.scene.input.MouseEvent; | ||
import javafx.scene.text.Text; | ||
|
||
public class HelpController { | ||
public Text textArea; | ||
public Text aboutText; | ||
public Text rulesText; | ||
public Text controlsText; | ||
public ScrollPane aboutPane; | ||
public ScrollPane rulesPane; | ||
public ScrollPane controlPane; | ||
public MenuButton menuButton; | ||
public Hyperlink lexiconLink; | ||
|
||
public void glowstickClicked(ActionEvent event) { | ||
Main.getHS().showDocument("https://github.com/glowstick0017"); | ||
} | ||
|
||
public void onAboutClick(ActionEvent event) { | ||
menuButton.setText("About"); | ||
aboutPane.setVisible(true); | ||
rulesPane.setVisible(false); | ||
controlPane.setVisible(false); | ||
lexiconLink.setVisible(false); | ||
} | ||
|
||
public void onRulesClick(ActionEvent event) { | ||
menuButton.setText("Rules"); | ||
aboutPane.setVisible(false); | ||
rulesPane.setVisible(true); | ||
controlPane.setVisible(false); | ||
lexiconLink.setVisible(false); | ||
} | ||
|
||
public void onControlsClick(ActionEvent event) { | ||
menuButton.setText("Controls"); | ||
aboutPane.setVisible(false); | ||
rulesPane.setVisible(false); | ||
controlPane.setVisible(true); | ||
lexiconLink.setVisible(true); | ||
} | ||
|
||
public void lexiconClick(MouseEvent mouseEvent) { | ||
Main.getHS().showDocument("https://bitstorm.org/gameoflife/lexicon/"); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.