-
Notifications
You must be signed in to change notification settings - Fork 3
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
be4afc8
commit 858919f
Showing
22 changed files
with
3,927 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
package generator; | ||
|
||
import java.io.IOException; | ||
|
||
import javafx.application.Application; | ||
import javafx.fxml.FXMLLoader; | ||
import javafx.scene.Parent; | ||
import javafx.scene.Scene; | ||
import javafx.stage.Stage; | ||
|
||
public class DocNginFX extends Application{ | ||
@Override | ||
public void start(Stage meineStage) throws Exception { | ||
//eine Instanz von FXMLLoader erzeugen | ||
FXMLLoader meinLoader = new FXMLLoader(getClass().getResource("Generatorv3.fxml")); | ||
//die Datei laden | ||
Parent root = meinLoader.load(); | ||
//den Controller beschaffen | ||
FXMLController meinController = meinLoader.getController(); | ||
//und die Bühne übergeben | ||
meinController.setMeineStage(meineStage); | ||
//die Szene erzeugen | ||
//an den Konstruktor werden der oberste Knoten und die Größe übergeben | ||
Scene meineScene = new Scene(root, 1400,848); | ||
//den Titel über stage setzen | ||
meineStage.setTitle("DOC:NGIN:FX \t by HellGateCorp"); | ||
meineStage.setResizable(true); | ||
//die Szene setzen | ||
meineStage.setScene(meineScene); | ||
//und anzeigen | ||
meineStage.show(); | ||
meinController.start(); | ||
meinController.playAudio(); | ||
} | ||
public void zeichneNeuDark(Stage meineStage) throws IOException { | ||
|
||
//eine Instanz von FXMLLoader erzeugen | ||
FXMLLoader meinLoader = new FXMLLoader(getClass().getResource("Generatorv3-dark.fxml")); | ||
//die Datei laden | ||
Parent root = meinLoader.load(); | ||
//den Controller beschaffen | ||
FXMLController meinController = meinLoader.getController(); | ||
//und die Bühne übergeben | ||
meinController.setMeineStage(meineStage); | ||
//die Szene erzeugen | ||
//an den Konstruktor werden der oberste Knoten und die Größe übergeben | ||
Scene meineScene = new Scene(root, 1400,848); | ||
//den Titel über stage setzen | ||
meineStage.setTitle("DOC:NGIN:FX \t by HellGateCorp"); | ||
meineStage.setResizable(true); | ||
//die Szene setzen | ||
meineStage.setScene(meineScene); | ||
//und anzeigen | ||
meineStage.show(); | ||
meinController.start(); | ||
|
||
} | ||
public void zeichneNeuGirlie(Stage meineStage) throws IOException { | ||
|
||
//eine Instanz von FXMLLoader erzeugen | ||
FXMLLoader meinLoader = new FXMLLoader(getClass().getResource("Generatorv3-girlie.fxml")); | ||
//die Datei laden | ||
Parent root = meinLoader.load(); | ||
//den Controller beschaffen | ||
FXMLController meinController = meinLoader.getController(); | ||
//und die Bühne übergeben | ||
meinController.setMeineStage(meineStage); | ||
//die Szene erzeugen | ||
//an den Konstruktor werden der oberste Knoten und die Größe übergeben | ||
Scene meineScene = new Scene(root, 1400,848); | ||
//den Titel über stage setzen | ||
meineStage.setTitle("DOC:NGIN:FX \t by HellGateCorp"); | ||
meineStage.setResizable(true); | ||
//die Szene setzen | ||
meineStage.setScene(meineScene); | ||
//und anzeigen | ||
meineStage.show(); | ||
meinController.start(); | ||
} | ||
} |
Oops, something went wrong.