misc UI stuff, gamesession additions, limbs don't have individual health anymore, background music

This commit is contained in:
Regalis
2015-06-09 18:18:34 +03:00
parent d3896383fd
commit d7fde606e9
50 changed files with 595 additions and 282 deletions
+10 -3
View File
@@ -13,6 +13,8 @@ namespace Subsurface
private static List<Sound> loadedSounds = new List<Sound>();
private static OggStream stream;
private OggSound oggSound;
string filePath;
@@ -218,12 +220,17 @@ namespace Subsurface
public static void StartStream(string file, float volume = 1.0f)
{
SoundManager.StartStream(file, volume);
stream = SoundManager.StartStream(file, volume);
}
public static void Stoptream()
public static void StreamVolume(float volume = 1.0f)
{
SoundManager.StopStream();
stream.Volume = volume;
}
public static void StopStream()
{
if (stream!=null) SoundManager.StopStream();
}
public static void Dispose()