From 3d4a4399601c0a0592e64a8908feba5fad60d289 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 30 Apr 2011 05:22:17 -0500 Subject: [PATCH] [OptionRow] Added SelectMultipleMessageCommand, ChangeValueMessageCommand. --- src/ScreenOptions.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ScreenOptions.cpp b/src/ScreenOptions.cpp index ad90be30ee..4cf574d9b5 100644 --- a/src/ScreenOptions.cpp +++ b/src/ScreenOptions.cpp @@ -878,6 +878,13 @@ void ScreenOptions::ProcessMenuStart( const InputEventPlus &input ) m_pRows[iCurRow]->PositionUnderlines( pn ); RefreshIcons( iCurRow, pn ); + Message msg( "SelectMultiple" ); + msg.SetParam( "PlayerNumber", pn ); + msg.SetParam( "RowIndex", iCurRow ); + msg.SetParam( "ChoiceInRow", iChoiceInRow ); + msg.SetParam( "Selected", bSelected ); + MESSAGEMAN->Broadcast( msg ); + if( row.GetFirstItemGoesDown() ) { // move to the first choice in the row @@ -990,6 +997,11 @@ void ScreenOptions::ChangeValueInRowAbsolute( int iRow, PlayerNumber pn, int iCh int iCurrentChoiceWithFocus = row.GetChoiceInRowWithFocus(pn); int iDelta = iChoiceIndex - iCurrentChoiceWithFocus; + Message msg( "ChangeValue" ); + msg.SetParam( "PlayerNumber", pn ); + msg.SetParam( "RowIndex", iRow ); + MESSAGEMAN->Broadcast( msg ); + ChangeValueInRowRelative( iRow, pn, iDelta, bRepeat ); }