diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index fec245837a..efb4b522d9 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -13,6 +13,11 @@ _____________________________________________________________________________ sm-ssc v1.2.5 | 201104?? -------------------------------------------------------------------------------- +20110422 +-------- +* [Banner] Added ScrollSpeedDivisor metric; controls the scroll speed of + Random/Roulette banners. [AJ] + 20110421 -------- * [ScreenSelectMusic] Changed "Percent Frame p1" to "PercentFrame P1" for consistency. [AJ] diff --git a/Themes/_fallback/metrics.ini b/Themes/_fallback/metrics.ini index 1e78056217..4ac18a6dab 100644 --- a/Themes/_fallback/metrics.ini +++ b/Themes/_fallback/metrics.ini @@ -195,6 +195,8 @@ BottomEdge=SCREEN_BOTTOM # Scroll stuff when you roll over it, DDR Extreme style. ScrollRandom=false ScrollRoulette=false +# Control how fast the banner scrolls. Higher numbers mean slower. +ScrollSpeedDivisor=2 [BitmapText] # The colors in the 'roulette' text. you can have alot! diff --git a/src/Banner.cpp b/src/Banner.cpp index 3f8b7a8b09..3dd20b5b76 100644 --- a/src/Banner.cpp +++ b/src/Banner.cpp @@ -17,6 +17,7 @@ REGISTER_ACTOR_CLASS( Banner ); ThemeMetric SCROLL_RANDOM ("Banner","ScrollRandom"); ThemeMetric SCROLL_ROULETTE ("Banner","ScrollRoulette"); +ThemeMetric SCROLL_SPEED_DIVISOR ("Banner","ScrollSpeedDivisor"); Banner::Banner() { @@ -79,7 +80,7 @@ void Banner::Update( float fDeltaTime ) if( m_bScrolling ) { - m_fPercentScrolling += fDeltaTime/2; + m_fPercentScrolling += fDeltaTime/(float)SCROLL_SPEED_DIVISOR; m_fPercentScrolling -= (int)m_fPercentScrolling; const RectF *pTextureRect = GetCurrentTextureCoordRect();