finished dialogue system

This commit is contained in:
2025-11-28 20:05:19 +01:00
parent dada9e4f2f
commit 4a9eefa416
6 changed files with 32 additions and 21 deletions

View File

@@ -51,10 +51,14 @@ public class UI {
int height = panel.tileSize*4;
drawSubWindow(x, y, width, height);
graphics2d.setFont(graphics2d.getFont().deriveFont(Font.PLAIN, 23));
graphics2d.setFont(graphics2d.getFont().deriveFont(Font.PLAIN, 28F));
x += panel.tileSize;
y += panel.tileSize;
graphics2d.drawString(currentDialogue, x, y);
for(String line : currentDialogue.split("\n")) {
graphics2d.drawString(line, x, y);
y += 40;
}
}
public void drawSubWindow(int x, int y, int width, int height) {