made music and sfx volume adjustable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user