tweak tween

This commit is contained in:
Glenn Maynard
2004-01-09 23:19:44 +00:00
parent b5ba023a37
commit 7b90012f9e
+4 -1
View File
@@ -632,11 +632,14 @@ void ScreenOptions::UpdateEnabledDisabled()
RageColor color = bExitRowIsSelectedByBoth ? colorSelected : colorNotSelected;
row.m_textItems[0]->SetGlobalDiffuseColor( color );
const float DiffuseAlpha = row.m_bHidden? 0.0f:1.0f;
if( row.m_textItems[0]->GetDestY() != row.m_fY ||
row.m_textItems[0]->DestTweenState().diffuse[0][3] != DiffuseAlpha )
if( row.m_textItems[0]->GetDestY() != row.m_fY )
{
row.m_textItems[0]->StopTweening();
row.m_textItems[0]->BeginTweening( 0.3f );
row.m_textItems[0]->SetDiffuseAlpha( row.m_bHidden? 0.0f:1.0f );
row.m_textItems[0]->SetDiffuseAlpha( DiffuseAlpha );
row.m_textItems[0]->SetY( row.m_fY );
}