tweak tween
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user