From 715723010bf48c61a68f7e6870c3eb663408d177 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Fri, 20 Jan 2023 20:41:29 +0100 Subject: [PATCH] create weapon label --- src/main/java/game/StartDarkSoulsGame.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 640a818..8d68167 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -22,6 +22,7 @@ public class StartDarkSoulsGame { JTextArea mainTextArea; JLabel hpLabel; JLabel hpLabelNumber; + JLabel weaponLabel; Font titelFont = new Font("Times new Roman", Font.PLAIN, 90); Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28); JButton startButton; @@ -120,7 +121,12 @@ public class StartDarkSoulsGame { hpLabelNumber = new JLabel(); hpLabelNumber.setFont(normalFont); hpLabelNumber.setForeground(Color.white); - playerPanel.add(hpLabelNumber); + playerPanel.add(hpLabelNumber); + + weaponLabel = new JLabel("Weapon:"); + weaponLabel.setFont(normalFont); + weaponLabel.setForeground(Color.white); + playerPanel.add(weaponLabel); con.add(playerPanel); }