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

@@ -29,12 +29,14 @@ port.number=Port
wait.its.not.your.turn=Warte, Du bist nicht dran!!
menu.quit=Spiel beenden
menu.return-to-game=Zurück zum Spiel
menu.sound-enabled=Sound eingeschaltet
menu.sound-enabled=An/Ausschalten des Sounds
menu.main.volume=Gesammt Lautstärke
menu.map.load=Karte von Datei laden...
menu.map.save=Karte in Datei speichern...
menu.music.toggle=An/Ausschalten der Musik
invalid.map=Die angegebene Karte war ungültig
menu.volume=Lautstärke
menu.volume=Lautstärke der Musik
menu.sound.volume=Lautstärke des Sounds
label.file=Datei:
label.connecting=Verbindung wird aufgebaut...
dialog.error=Fehler