@@ -265,7 +265,7 @@ void TitleScreen::UpdateIntroSlideshowSequence(bool skipSlideshow) {
265
265
m_IntroScrollDuration = 66 .6F - m_IntroScrollStartTime;
266
266
m_ScrollOffset.SetY (m_IntroScrollStartOffsetY);
267
267
268
- g_MusicMan.PlayInterruptingMusic (g_MusicMan. GetHardcodedIntroMusic ( ));
268
+ g_MusicMan.PlayInterruptingMusic (dynamic_cast < const SoundContainer*>(g_PresetMan. GetEntityPreset ( " SoundContainer " , " Intro Music " ) ));
269
269
g_AudioMan.SetMusicMuffledState (false );
270
270
}
271
271
m_FadeAmount = static_cast <int >(Lerp (0 , 1 .0F , 255 .0F , 0 , m_SectionProgress));
@@ -395,7 +395,7 @@ void TitleScreen::UpdateIntroPreMainMenuSequence() {
395
395
if (m_SectionSwitch) {
396
396
SetSectionDurationAndResetSwitch (0 .5F * g_SettingsMan.GetMenuTransitionDurationMultiplier ());
397
397
m_FadeAmount = 0 ;
398
- g_MusicMan.PlayInterruptingMusic (g_MusicMan. GetHardcodedMainMenuMusic ( ));
398
+ g_MusicMan.PlayInterruptingMusic (dynamic_cast < const SoundContainer*>(g_PresetMan. GetEntityPreset ( " SoundContainer " , " Main Menu Music " ) ));
399
399
g_AudioMan.SetMusicMuffledState (false );
400
400
}
401
401
m_ScrollOffset.SetY (EaseOut (m_PreMainMenuScrollOffsetY, 0 , m_SectionProgress));
@@ -433,7 +433,7 @@ void TitleScreen::UpdateTitleTransitions() {
433
433
if (m_SectionSwitch) {
434
434
SetSectionDurationAndResetSwitch (1 .0F * g_SettingsMan.GetMenuTransitionDurationMultiplier ());
435
435
g_GUISound.SplashSound ()->Play ();
436
- g_MusicMan.PlayInterruptingMusic (g_MusicMan. GetHardcodedScenarioMenuMusic ( ));
436
+ g_MusicMan.PlayInterruptingMusic (dynamic_cast < const SoundContainer*>(g_PresetMan. GetEntityPreset ( " SoundContainer " , " Scenario Menu Music " ) ));
437
437
g_AudioMan.SetMusicMuffledState (false );
438
438
}
439
439
m_ScrollOffset.SetY (EaseOut (0 , m_PlanetViewScrollOffsetY, m_SectionProgress));
@@ -445,7 +445,7 @@ void TitleScreen::UpdateTitleTransitions() {
445
445
case TitleTransition::PlanetToMainMenu:
446
446
if (m_SectionSwitch) {
447
447
SetSectionDurationAndResetSwitch (1 .0F * g_SettingsMan.GetMenuTransitionDurationMultiplier ());
448
- g_MusicMan.PlayInterruptingMusic (g_MusicMan. GetHardcodedMainMenuMusic ( ));
448
+ g_MusicMan.PlayInterruptingMusic (dynamic_cast < const SoundContainer*>(g_PresetMan. GetEntityPreset ( " SoundContainer " , " Main Menu Music " ) ));
449
449
g_AudioMan.SetMusicMuffledState (false );
450
450
}
451
451
m_ScrollOffset.SetY (EaseOut (m_PlanetViewScrollOffsetY, 0 , m_SectionProgress));
@@ -478,7 +478,7 @@ void TitleScreen::UpdateTitleTransitions() {
478
478
m_ScrollOffset.SetY (m_PlanetViewScrollOffsetY);
479
479
m_GameLogo.SetPos (Vector (static_cast <float >(m_TitleScreenMaxWidth / 2 ), m_GameLogoPlanetViewOffsetY));
480
480
m_StationOrbitTimer.SetElapsedRealTimeS (m_StationOrbitTimerElapsedTime);
481
- g_MusicMan.PlayInterruptingMusic (g_MusicMan. GetHardcodedScenarioMenuMusic ( ));
481
+ g_MusicMan.PlayInterruptingMusic (dynamic_cast < const SoundContainer*>(g_PresetMan. GetEntityPreset ( " SoundContainer " , " Scenario Menu Music " ) ));
482
482
g_AudioMan.SetMusicMuffledState (false );
483
483
}
484
484
m_FadeAmount = static_cast <int >(Lerp (0 , 1 .0F , 255 .0F , 0 , m_SectionProgress));
@@ -499,7 +499,7 @@ void TitleScreen::UpdateTitleTransitions() {
499
499
if (m_SectionSwitch) {
500
500
SetSectionDurationAndResetSwitch (0 .75F * g_SettingsMan.GetMenuTransitionDurationMultiplier ());
501
501
m_StationOrbitTimer.SetElapsedRealTimeS (m_StationOrbitTimerElapsedTime);
502
- g_MusicMan.PlayInterruptingMusic (g_MusicMan. GetHardcodedMainMenuMusic ( ));
502
+ g_MusicMan.PlayInterruptingMusic (dynamic_cast < const SoundContainer*>(g_PresetMan. GetEntityPreset ( " SoundContainer " , " Main Menu Music " ) ));
503
503
g_AudioMan.SetMusicMuffledState (false );
504
504
}
505
505
m_ScrollOffset.SetY (EaseOut (250 , 0 , m_SectionProgress));
0 commit comments