This commit is contained in:
Glenn Maynard
2003-10-03 06:34:34 +00:00
parent f4b70646ce
commit 26d3f375e2
2 changed files with 4 additions and 11 deletions
+1 -3
View File
@@ -1953,9 +1953,7 @@ BannerHeight=184
[LyricDisplay]
InCommand=shadowlength,0;zoomy,0;spring,0.20;zoomy,1;
OutCommand=linear,0.20;zoomy,0
//Affects Lyrics PreSwipe 1 = no Swipe
Alpha=.5
WashOut=2 //Bigger number = Larger effect
WipeDimFactor=0.5,0.5,0.5,0.5
[ScoreKeeperRave]
AttackDurationSeconds=10
+3 -8
View File
@@ -6,6 +6,7 @@
#define IN_COMMAND THEME->GetMetric("LyricDisplay","InCommand")
#define OUT_COMMAND THEME->GetMetric("LyricDisplay","OutCommand")
#define WIPE_DIM_FACTOR THEME->GetMetricC("LyricDisplay","WipeDimFactor")
float g_TweenInTime, g_TweenOutTime;
@@ -98,15 +99,9 @@ void LyricDisplay::Update( float fDeltaTime )
RageColor color = GAMESTATE->m_pCurSong->m_LyricSegments[m_iCurLyricNumber].m_Color;
float WashOut = THEME->GetMetricF("LyricDisplay","WashOut");//DW
if (WashOut == 0) WashOut = 1;
if( i==0 )
{
for( int c=0; c<4; c++ )
color[c] /= WashOut;
color.a = THEME->GetMetricF("LyricDisplay","Alpha");//DW;
}
color *= WIPE_DIM_FACTOR;
m_textLyrics[i].SetDiffuse(color);
/* Crop the bottom layer of text away as we crop the top layer on. That