From 9614e2507c8a4ee7e796f5d5140b233dfbe47804 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 21 Feb 2005 20:36:07 +0000 Subject: [PATCH] hide underlines of hidden rows (for real this time) --- stepmania/src/OptionRow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stepmania/src/OptionRow.cpp b/stepmania/src/OptionRow.cpp index 711f8fe273..5480c55b17 100644 --- a/stepmania/src/OptionRow.cpp +++ b/stepmania/src/OptionRow.cpp @@ -408,15 +408,17 @@ void OptionRow::UpdateEnabledDisabled( case LAYOUT_SHOW_ONE_IN_ROW: FOREACH_HumanPlayer( pn ) { - bool bEnabled = m_RowDef.m_vEnabledForPlayers.find(pn) != m_RowDef.m_vEnabledForPlayers.end(); + bool bRowEnabled = m_RowDef.m_vEnabledForPlayers.find(pn) != m_RowDef.m_vEnabledForPlayers.end(); if( bThisRowHasFocus[pn] ) color = colorFocus; - else if( bEnabled ) + else if( bRowEnabled ) color = colorNoFocus; else color = colorDisabled; + float fEnabledDisabledAlpha = bRowEnabled ? 1:0; + unsigned item_no = m_RowDef.bOneChoiceForAllPlayers ? 0 : pn; // If player_no is 2 and there is no player 1: @@ -435,7 +437,7 @@ void OptionRow::UpdateEnabledDisabled( OptionsCursor &ul = *m_Underline[p][item_no]; ul.StopTweening(); ul.BeginTweening( fTweenSeconds ); - ul.SetDiffuseAlpha( fDiffuseAlpha ); + ul.SetDiffuseAlpha( fEnabledDisabledAlpha ); ul.SetY( m_fY ); } }