made music and sfx volume adjustable

This commit is contained in:
2025-12-11 18:55:32 +01:00
parent e9fc671135
commit eba67d7cf8
4 changed files with 50 additions and 4 deletions

View File

@@ -381,11 +381,13 @@ public class UI {
// MUSIC VOLUME
textY += panel.tileSize;
graphics2d.drawRect(textX, textY, 120, panel.tileSize/2);
graphics2d.drawRect(textX, textY, 120, panel.tileSize/2); // 120/5 = 24
graphics2d.fillRect(textX, textY, 24 * panel.music.volumeScale, panel.tileSize/2);
// SFX VOLUME
textY += panel.tileSize;
graphics2d.drawRect(textX, textY, 120, panel.tileSize/2);
graphics2d.drawRect(textX, textY, 120, panel.tileSize/2); // 120/5 = 24
graphics2d.fillRect(textX, textY, 24 * panel.se.volumeScale, panel.tileSize/2);
}
public void optionsFSNotify(int frameX, int frameY) {
int textX = frameX + panel.tileSize;