save game settings and parse them

This commit is contained in:
2025-12-12 11:34:01 +01:00
parent d294578a74
commit 099f52278c
6 changed files with 91 additions and 18 deletions

View File

@@ -370,7 +370,7 @@ public class UI {
// END GAME
textY += panel.tileSize;
graphics2d.drawString("Quit Game", textX, textY);
graphics2d.drawString("Title Screen", textX, textY);
if(commandNum == 4) {
graphics2d.drawString(">", textX-25, textY);
if(panel.keyH.spacePressed) {
@@ -408,7 +408,9 @@ public class UI {
// SFX VOLUME
textY += panel.tileSize;
graphics2d.drawRect(textX, textY, 120, panel.tileSize/2); // 120/5 = 24
graphics2d.fillRect(textX, textY, 24 * panel.se.volumeScale, panel.tileSize/2);
graphics2d.fillRect(textX, textY, 24 * panel.sfx.volumeScale, panel.tileSize/2);
panel.config.save();
}
public void optionsControls(int frameX, int frameY) {
int textX;