added background music and improved model code

reduced switch case for creating different ship models
created a new class for background music
added a button to toggle background music
added a slider so adjust volume
added new style for labeling the slider
This commit is contained in:
Timo Brennförder
2024-10-03 22:08:26 +02:00
parent 3bcaca8810
commit 9cfabdb15d
18 changed files with 186 additions and 697582 deletions

View File

@@ -55,6 +55,12 @@
background.setColor(bgColor)
}
selector("slider_label", "pp"){
font = font("Interface/Fonts/Metropolis/Metropolis-Regular-32.fnt")
color = color(1,0.5,0,1)
textHAlignment = HAlignment.Center
}
def pressedCommand = new Command<Button>() {
void execute(Button source) {
if (source.isPressed())