From ec6f0ca529c470f64221e8fd99d757180ac6c088 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Wed, 18 Jan 2023 17:24:03 +0100 Subject: [PATCH] create panel for text adventure --- src/main/java/game/StartDarkSoulsGame.java | 23 +++++++++++++++++++ .../compile/default-compile/inputFiles.lst | 20 ++++++++-------- .../default-testCompile/inputFiles.lst | 10 ++++---- 3 files changed, 38 insertions(+), 15 deletions(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index cbeaa30..aa17c8d 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -1,5 +1,28 @@ package game; +import java.awt.Color; +import java.awt.Container; +import java.awt.Font; +import java.awt.GridLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import javax.swing.JPanel; +import javax.swing.JTextArea; + +import Gui.gui; + +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JLabel; public class StartDarkSoulsGame { + Container con; + public StartDarkSoulsGame() { + gui.Frame.setSize(800, 600); + gui.Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + gui.Frame.getContentPane().setBackground(Color.black); + gui.Frame.setLayout(null); + gui.Frame.setVisible(true); + con = gui.Frame.getContentPane(); + } } diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index f4e91a4..fd44bf8 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1,10 +1,10 @@ -C:\Users\Leon\MiniGameProject\src\main\java\Gui\ActionHandler.java -C:\Users\Leon\MiniGameProject\src\main\java\game\loadNextQuestion.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GameGuiInterface.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\gui.java -C:\Users\Leon\MiniGameProject\src\main\java\game\runGame.java -C:\Users\Leon\MiniGameProject\src\main\java\game\StartDarkSoulsGame.java -C:\Users\Leon\MiniGameProject\src\main\java\main.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\StartGameGui.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GameGui.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GuiInterface.java +C:\Users\yazan\MiniGameProject\src\main\java\game\StartDarkSoulsGame.java +C:\Users\yazan\MiniGameProject\src\main\java\game\runGame.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\gui.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\StartGameGui.java +C:\Users\yazan\MiniGameProject\src\main\java\game\loadNextQuestion.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\ActionHandler.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GameGui.java +C:\Users\yazan\MiniGameProject\src\main\java\main.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GameGuiInterface.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GuiInterface.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index 93bde8b..470a3c7 100644 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -1,5 +1,5 @@ -C:\Users\Leon\MiniGameProject\src\test\java\Gui\guiTest.java -C:\Users\Leon\MiniGameProject\src\test\java\game\loadNextQuestionTest.java -C:\Users\Leon\MiniGameProject\src\test\java\Gui\ActionHandlerTest.java -C:\Users\Leon\MiniGameProject\src\test\java\Gui\GameGuiTest.java -C:\Users\Leon\MiniGameProject\src\test\java\game\runGameTest.java +C:\Users\yazan\MiniGameProject\src\test\java\game\loadNextQuestionTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\guiTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\GameGuiTest.java +C:\Users\yazan\MiniGameProject\src\test\java\game\runGameTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\ActionHandlerTest.java