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