Browse Source

create weapon label name

master
Yazan Alaamer 2 years ago
parent
commit
502ebfbadf
  1. 6
      src/main/java/game/StartDarkSoulsGame.java

6
src/main/java/game/StartDarkSoulsGame.java

@ -23,6 +23,7 @@ public class StartDarkSoulsGame {
JLabel hpLabel; JLabel hpLabel;
JLabel hpLabelNumber; JLabel hpLabelNumber;
JLabel weaponLabel; JLabel weaponLabel;
JLabel weaponLabelName;
Font titelFont = new Font("Times new Roman", Font.PLAIN, 90); Font titelFont = new Font("Times new Roman", Font.PLAIN, 90);
Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28); Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28);
JButton startButton; JButton startButton;
@ -128,6 +129,11 @@ public class StartDarkSoulsGame {
weaponLabel.setForeground(Color.white); weaponLabel.setForeground(Color.white);
playerPanel.add(weaponLabel); playerPanel.add(weaponLabel);
weaponLabelName = new JLabel();
weaponLabelName.setFont(normalFont);
weaponLabelName.setForeground(Color.white);
playerPanel.add(weaponLabelName);
con.add(playerPanel); con.add(playerPanel);
} }
public class TitelScreenHandler implements ActionListener{ public class TitelScreenHandler implements ActionListener{

Loading…
Cancel
Save