more OptionsList control
This commit is contained in:
@@ -265,6 +265,8 @@ void OptionsList::Input( const InputEventPlus &input )
|
||||
{
|
||||
if( input.type == IET_RELEASE )
|
||||
return;
|
||||
if( input.type != IET_FIRST_PRESS )
|
||||
return;
|
||||
|
||||
const OptionRowHandler *pHandler = GetCurrentHandler();
|
||||
|
||||
@@ -286,6 +288,7 @@ void OptionsList::Input( const InputEventPlus &input )
|
||||
Message msg("OptionsListLeft");
|
||||
msg.SetParam( "Player", input.pn );
|
||||
MESSAGEMAN->Broadcast( msg );
|
||||
return;
|
||||
}
|
||||
else if( input.MenuI == MENU_BUTTON_RIGHT )
|
||||
{
|
||||
@@ -304,11 +307,18 @@ void OptionsList::Input( const InputEventPlus &input )
|
||||
Message msg("OptionsListRight");
|
||||
msg.SetParam( "Player", input.pn );
|
||||
MESSAGEMAN->Broadcast( msg );
|
||||
return;
|
||||
}
|
||||
else if( input.MenuI == MENU_BUTTON_START )
|
||||
{
|
||||
LOG->Trace( "X5" );
|
||||
Start( input.pn );
|
||||
return;
|
||||
}
|
||||
else if( input.MenuI == MENU_BUTTON_SELECT )
|
||||
{
|
||||
Close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -393,23 +393,12 @@ void ScreenSelectMusic::Input( const InputEventPlus &input )
|
||||
{
|
||||
if( m_OptionsList[pn].IsOpened() )
|
||||
{
|
||||
if( input.type == IET_FIRST_PRESS )
|
||||
{
|
||||
switch( input.MenuI )
|
||||
{
|
||||
case GAME_BUTTON_SELECT:
|
||||
CloseOptionsList( pn );
|
||||
return;
|
||||
case GAME_BUTTON_START:
|
||||
if( m_OptionsList[pn].Start(pn) )
|
||||
CloseOptionsList( pn );
|
||||
return;
|
||||
case GAME_BUTTON_MENULEFT:
|
||||
case GAME_BUTTON_MENURIGHT:
|
||||
m_OptionsList[pn].Input( input );
|
||||
return;
|
||||
}
|
||||
}
|
||||
m_OptionsList[pn].Input( input );
|
||||
|
||||
if( !m_OptionsList[pn].IsOpened() )
|
||||
CloseOptionsList( pn );
|
||||
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user