|
@ -22,6 +22,7 @@ public class StartDarkSoulsGame { |
|
|
Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28); |
|
|
Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28); |
|
|
JButton startButton; |
|
|
JButton startButton; |
|
|
Container con; |
|
|
Container con; |
|
|
|
|
|
TitelScreenHandler tsHandler= new TitelScreenHandler(); |
|
|
|
|
|
|
|
|
public StartDarkSoulsGame() { |
|
|
public StartDarkSoulsGame() { |
|
|
gui.Frame.setSize(800, 600); |
|
|
gui.Frame.setSize(800, 600); |
|
@ -43,6 +44,7 @@ public class StartDarkSoulsGame { |
|
|
startButton = new JButton("START"); |
|
|
startButton = new JButton("START"); |
|
|
startButton.setBackground(Color.black); |
|
|
startButton.setBackground(Color.black); |
|
|
startButton.setForeground(Color.white); |
|
|
startButton.setForeground(Color.white); |
|
|
|
|
|
startButton.addActionListener(tsHandler); |
|
|
|
|
|
|
|
|
titleNamePanel.add(titelNameLabel); |
|
|
titleNamePanel.add(titelNameLabel); |
|
|
StartButtonPanel.add(startButton); |
|
|
StartButtonPanel.add(startButton); |
|
@ -65,4 +67,10 @@ public class StartDarkSoulsGame { |
|
|
mainTextArea.setLineWrap(true); |
|
|
mainTextArea.setLineWrap(true); |
|
|
mainTextPanel.add(mainTextArea); |
|
|
mainTextPanel.add(mainTextArea); |
|
|
} |
|
|
} |
|
|
|
|
|
public class TitelScreenHandler implements ActionListener{ |
|
|
|
|
|
public void actionPerformed(ActionEvent event) { |
|
|
|
|
|
createGameScreen(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |