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