[Banner] Added ScrollSpeedDivisor metric; controls the scroll speed of Random/Roulette banners.

This commit is contained in:
AJ Kelly
2011-04-22 04:48:42 -05:00
parent 438930f794
commit 55c5cb145b
3 changed files with 9 additions and 1 deletions
+5
View File
@@ -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]
+2
View File
@@ -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!
+2 -1
View File
@@ -17,6 +17,7 @@ REGISTER_ACTOR_CLASS( Banner );
ThemeMetric<bool> SCROLL_RANDOM ("Banner","ScrollRandom");
ThemeMetric<bool> SCROLL_ROULETTE ("Banner","ScrollRoulette");
ThemeMetric<float> 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();