added MainVolume slider in the menu

added the logic so that the volume of music or sound is multiplied by the main volume
created the class MainVolume to handle the logic of the main volume
adjusted methods in GameSounds and BackgroundMusic to integrate main volume
This commit is contained in:
Hanno Fleischer hanno.fleischer@unibw.de
2024-10-05 17:32:14 +02:00
parent 586251b2ad
commit 52673dfbce
8 changed files with 167 additions and 21 deletions

View File

@@ -36,6 +36,7 @@
selector("label", "pp") {
insets = new Insets3f(2, 2, 2, 2)
color = buttonEnabledColor
textHAlignment = HAlignment.Center
}
selector("header", "pp") {