This commit is contained in:
Glenn Maynard
2007-03-18 10:26:45 +00:00
parent 463f69ba35
commit f49bd48803
+7 -2
View File
@@ -375,10 +375,15 @@ void OptionsList::Input( const InputEventPlus &input )
if( pTarget->m_Def.m_selectType == SELECT_ONE ) if( pTarget->m_Def.m_selectType == SELECT_ONE )
{ {
int iSelection = GetOneSelection(sDest); int iSelection = GetOneSelection(sDest);
iSelection += (input.MenuI == MENU_BUTTON_RIGHT? +1:-1); int iDir = (input.MenuI == MENU_BUTTON_RIGHT? +1:-1);
iSelection += iDir;
wrap( iSelection, bTargetSelections.size() ); wrap( iSelection, bTargetSelections.size() );
LOG->Trace( "sDest: %s, %i", sDest.c_str(), iSelection );
SelectItem( sDest, iSelection ); SelectItem( sDest, iSelection );
Message msg("OptionsListQuickChange");
msg.SetParam( "Player", pn );
msg.SetParam( "Direction", iDir );
MESSAGEMAN->Broadcast( msg );
} }
} }
return; return;