added option subwindow

This commit is contained in:
2025-12-08 14:23:39 +01:00
parent fb0273afb0
commit 7ac1207c83
4 changed files with 13 additions and 7 deletions

View File

@@ -221,11 +221,15 @@ public class UI {
// GAME STATES
public void drawPauseScreen() {
drawPlayerLife();
graphics2d.setFont(graphics2d.getFont().deriveFont(Font.PLAIN, 80));
String text = "PAUSED";
int y = panel.screenHeight / 2;
graphics2d.drawString(text, getCenteredX(text), y);
graphics2d.setColor(Color.white);
graphics2d.setFont(graphics2d.getFont().deriveFont(32F));
// SUB WINDOW
int frameX = panel.tileSize*6;
int frameY = panel.tileSize;
int frameWidth = panel.tileSize*8;
int frameHeight = panel.tileSize*10;
drawSubWindow(frameX, frameY, frameWidth, frameHeight);
}
public void drawDialogueScreen() {
drawPlayerLife();