mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
do ambience too because might as well
This commit is contained in:
parent
b61ea5aaec
commit
c726b089e8
@ -40,10 +40,15 @@ namespace NewHorizons.External.Configs
|
||||
public SkyboxModule Skybox;
|
||||
|
||||
/// <summary>
|
||||
/// Relative path to music to replace the title screen music with.
|
||||
/// The music audio that will play on the title screen. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list.
|
||||
/// </summary>
|
||||
public string music;
|
||||
|
||||
/// <summary>
|
||||
/// The ambience audio that will play on the title screen. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list.
|
||||
/// </summary>
|
||||
public string ambience;
|
||||
|
||||
/// <summary>
|
||||
/// Changes the speed the main menu planet and the skybox rotates.
|
||||
/// </summary>
|
||||
|
||||
@ -60,6 +60,13 @@ namespace NewHorizons.Handlers
|
||||
Delay.FireOnNextUpdate(() => musicSource.AssignAudioLibraryClip(audioType));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(config.ambience))
|
||||
{
|
||||
var ambienceSource = SearchUtilities.Find("Scene/AudioSource_Ambience").GetComponent<OWAudioSource>();
|
||||
var audioType = AudioTypeHandler.GetAudioType(config.ambience, mod);
|
||||
Delay.FireOnNextUpdate(() => ambienceSource.AssignAudioLibraryClip(audioType));
|
||||
}
|
||||
|
||||
if (config.MenuPlanet != null)
|
||||
{
|
||||
if (config.MenuPlanet.destroyMenuPlanet)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user