sound cues for buttons

This commit is contained in:
minjaesong
2024-04-01 03:15:57 +09:00
parent f72ed0f706
commit 576e868996
23 changed files with 193 additions and 41 deletions

View File

@@ -444,16 +444,6 @@ open class IngameInstance(val batch: FlippingSpriteBatch, val isMultiplayer: Boo
loadedTime_t = App.getTIME_T()
}
open fun playGUIsound(sound: MusicContainer, volume: Double = 1.0, pan: Float = 0f) {
App.audioMixer.guiTrack.let {
it.currentTrack = sound
it.maxVolumeFun= { volume }
it.volume = volume
it.playRequested.set(true)
it.getFilter<BinoPan>().pan = pan
}
}
/**
* Copies most recent `save` to `save.1`, leaving `save` for overwriting, previous `save.1` will be copied to `save.2`
*/