Skip to content

Commit a0b79ea

Browse files
committed
Organized words on the HUD
1 parent d36e906 commit a0b79ea

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

res/commons-lang3-3.1.jar

308 KB
Binary file not shown.

src/com/redomar/game/Game.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import javax.swing.JFrame;
1313
import javax.swing.JOptionPane;
1414

15+
import org.apache.commons.lang3.text.WordUtils;
16+
1517
import com.redomar.game.entities.Player;
1618
import com.redomar.game.entities.PlayerMP;
1719
import com.redomar.game.gfx.Screen;
@@ -228,7 +230,7 @@ public void render() {
228230
// Font.render("Hi", screen, 0, 0, Colours.get(-1, -1, -1, 555), 1);
229231
g.drawImage(image2, 0, getHeight()-30, getWidth(), getHeight(), null);
230232
g.setColor(Color.WHITE);
231-
g.drawString("Welcome "+player.getUsername(), 0, getHeight()-19);
233+
g.drawString("Welcome "+WordUtils.capitalizeFully(player.getUsername()), 0, getHeight()-19);
232234
if (notActive == true){
233235
g.drawString("MUSIC is OFF | press 'M' to start", 0, getHeight()-8);
234236
} else{

0 commit comments

Comments
 (0)