Add Fade[In/Out]Preview metrics for ScreenEdit.

Let the themer dictate how much fade in and fade out
there is for the preview music in the editor.
This commit is contained in:
Jason Felds
2011-10-08 19:01:06 -04:00
parent b478152e8c
commit ad5d29b205
3 changed files with 11 additions and 2 deletions
+5 -2
View File
@@ -1004,6 +1004,9 @@ void ScreenEdit::PlayTicks()
m_GameplayAssist.PlayTicks( m_Player->GetNoteData(), m_Player->GetPlayerState() );
}
static ThemeMetric<float> FADE_IN_PREVIEW("ScreenEdit", "FadeInPreview");
static ThemeMetric<float> FADE_OUT_PREVIEW("ScreenEdit", "FadeOutPreview");
void ScreenEdit::PlayPreviewMusic()
{
SOUND->StopMusic();
@@ -1013,8 +1016,8 @@ void ScreenEdit::PlayPreviewMusic()
false,
m_pSong->m_fMusicSampleStartSeconds,
m_pSong->m_fMusicSampleLengthSeconds,
0.0f,
1.5f );
FADE_IN_PREVIEW,
FADE_OUT_PREVIEW );
}
void ScreenEdit::MakeFilteredMenuDef( const MenuDef* pDef, MenuDef &menu )