Added cutscene audio #420
|
@ -31,7 +31,6 @@ namespace SHADE_Scripting.UI
|
||||||
if (mv != null)
|
if (mv != null)
|
||||||
{
|
{
|
||||||
mv.ScaledValue = Settings.masterVolume;
|
mv.ScaledValue = Settings.masterVolume;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (sfx != null)
|
if (sfx != null)
|
||||||
{
|
{
|
||||||
|
@ -68,19 +67,19 @@ namespace SHADE_Scripting.UI
|
||||||
|
|
||||||
if (mv != null)
|
if (mv != null)
|
||||||
{
|
{
|
||||||
Settings.masterVolume = mv.ScaledValue * 0.01f;
|
Settings.masterVolume = mv.ScaledValue;
|
||||||
SHADE.Audio.SetVCAVolume("vca:/MASTER", Settings.masterVolume);
|
SHADE.Audio.SetVCAVolume("vca:/MASTER", Settings.masterVolume * 0.01f);
|
||||||
}
|
}
|
||||||
if (sfx != null)
|
if (sfx != null)
|
||||||
{
|
{
|
||||||
Settings.sfxVolume = sfx.ScaledValue * 0.01f;
|
Settings.sfxVolume = sfx.ScaledValue;
|
||||||
SHADE.Audio.SetVCAVolume("vca:/SFX", Settings.sfxVolume);
|
SHADE.Audio.SetVCAVolume("vca:/SFX", Settings.sfxVolume * 0.01f);
|
||||||
SHADE.Audio.SetVCAVolume("vca:/UI", Settings.sfxVolume);
|
SHADE.Audio.SetVCAVolume("vca:/UI", Settings.sfxVolume * 0.01f);
|
||||||
}
|
}
|
||||||
if (bgm != null)
|
if (bgm != null)
|
||||||
{
|
{
|
||||||
Settings.bgmVolume = bgm.ScaledValue * 0.01f;
|
Settings.bgmVolume = bgm.ScaledValue;
|
||||||
SHADE.Audio.SetVCAVolume("vca:/MUSIC", Settings.bgmVolume);
|
SHADE.Audio.SetVCAVolume("vca:/MUSIC", Settings.bgmVolume * 0.01f);
|
||||||
}
|
}
|
||||||
if (fov != null)
|
if (fov != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue