[Banner] Added ScrollSpeedDivisor metric; controls the scroll speed of Random/Roulette banners.
This commit is contained in:
@@ -13,6 +13,11 @@ _____________________________________________________________________________
|
|||||||
sm-ssc v1.2.5 | 201104??
|
sm-ssc v1.2.5 | 201104??
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
20110422
|
||||||
|
--------
|
||||||
|
* [Banner] Added ScrollSpeedDivisor metric; controls the scroll speed of
|
||||||
|
Random/Roulette banners. [AJ]
|
||||||
|
|
||||||
20110421
|
20110421
|
||||||
--------
|
--------
|
||||||
* [ScreenSelectMusic] Changed "Percent Frame p1" to "PercentFrame P1" for consistency. [AJ]
|
* [ScreenSelectMusic] Changed "Percent Frame p1" to "PercentFrame P1" for consistency. [AJ]
|
||||||
|
|||||||
@@ -195,6 +195,8 @@ BottomEdge=SCREEN_BOTTOM
|
|||||||
# Scroll stuff when you roll over it, DDR Extreme style.
|
# Scroll stuff when you roll over it, DDR Extreme style.
|
||||||
ScrollRandom=false
|
ScrollRandom=false
|
||||||
ScrollRoulette=false
|
ScrollRoulette=false
|
||||||
|
# Control how fast the banner scrolls. Higher numbers mean slower.
|
||||||
|
ScrollSpeedDivisor=2
|
||||||
|
|
||||||
[BitmapText]
|
[BitmapText]
|
||||||
# The colors in the 'roulette' text. you can have alot!
|
# The colors in the 'roulette' text. you can have alot!
|
||||||
|
|||||||
+2
-1
@@ -17,6 +17,7 @@ REGISTER_ACTOR_CLASS( Banner );
|
|||||||
|
|
||||||
ThemeMetric<bool> SCROLL_RANDOM ("Banner","ScrollRandom");
|
ThemeMetric<bool> SCROLL_RANDOM ("Banner","ScrollRandom");
|
||||||
ThemeMetric<bool> SCROLL_ROULETTE ("Banner","ScrollRoulette");
|
ThemeMetric<bool> SCROLL_ROULETTE ("Banner","ScrollRoulette");
|
||||||
|
ThemeMetric<float> SCROLL_SPEED_DIVISOR ("Banner","ScrollSpeedDivisor");
|
||||||
|
|
||||||
Banner::Banner()
|
Banner::Banner()
|
||||||
{
|
{
|
||||||
@@ -79,7 +80,7 @@ void Banner::Update( float fDeltaTime )
|
|||||||
|
|
||||||
if( m_bScrolling )
|
if( m_bScrolling )
|
||||||
{
|
{
|
||||||
m_fPercentScrolling += fDeltaTime/2;
|
m_fPercentScrolling += fDeltaTime/(float)SCROLL_SPEED_DIVISOR;
|
||||||
m_fPercentScrolling -= (int)m_fPercentScrolling;
|
m_fPercentScrolling -= (int)m_fPercentScrolling;
|
||||||
|
|
||||||
const RectF *pTextureRect = GetCurrentTextureCoordRect();
|
const RectF *pTextureRect = GetCurrentTextureCoordRect();
|
||||||
|
|||||||
Reference in New Issue
Block a user