diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index 19e8d0f871..e68872d306 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -22,6 +22,7 @@ sm-ssc v1.2.1 | 2011011? default is 50, as it was before. [Wolfman2000] * [Player] Allow the default attack times for both random and mine attacks to be changed. [Wolfman2000] +* [NoteField] Allow for adjustable fade fail time (for AJ). [Wolfman2000] 20110112 -------- diff --git a/Themes/_fallback/metrics.ini b/Themes/_fallback/metrics.ini index 17e6a99321..43a0807150 100644 --- a/Themes/_fallback/metrics.ini +++ b/Themes/_fallback/metrics.ini @@ -873,6 +873,7 @@ ShowBoard=false ShowBeatBars=false # FadeBeforeTargetsPercent=0 +FadeFailTime=1.5 # BarMeasureAlpha=1 Bar4thAlpha=1 diff --git a/src/NoteField.cpp b/src/NoteField.cpp index d0305eeb36..ae57b6a238 100644 --- a/src/NoteField.cpp +++ b/src/NoteField.cpp @@ -27,6 +27,7 @@ static ThemeMetric BAR_MEASURE_ALPHA( "NoteField", "BarMeasureAlpha" ); static ThemeMetric BAR_4TH_ALPHA( "NoteField", "Bar4thAlpha" ); static ThemeMetric BAR_8TH_ALPHA( "NoteField", "Bar8thAlpha" ); static ThemeMetric BAR_16TH_ALPHA( "NoteField", "Bar16thAlpha" ); +static ThemeMetric FADE_FAIL_TIME( "NoteField", "FadeFailTime" ); static RString RoutineNoteSkinName( size_t i ) { return ssprintf("RoutineNoteSkinP%i",int(i+1)); } static ThemeMetric1D ROUTINE_NOTESKIN( "NoteField", RoutineNoteSkinName, NUM_PLAYERS ); @@ -264,9 +265,8 @@ void NoteField::Update( float fDeltaTime ) cur->m_ReceptorArrowRow.Update( fDeltaTime ); cur->m_GhostArrowRow.Update( fDeltaTime ); - // TODO: make fade time of 1.5 seconds metricable instead? -aj if( m_fPercentFadeToFail >= 0 ) - m_fPercentFadeToFail = min( m_fPercentFadeToFail + fDeltaTime/1.5f, 1 ); // take 1.5 seconds to totally fade + m_fPercentFadeToFail = min( m_fPercentFadeToFail + fDeltaTime/FADE_FAIL_TIME, 1 ); // Update fade to failed m_pCurDisplay->m_ReceptorArrowRow.SetFadeToFailPercent( m_fPercentFadeToFail );