StringToInputMode
This commit is contained in:
@@ -72,6 +72,12 @@ static CString OPTION_EXPLANATION( CString s )
|
|||||||
return THEME->GetString("OptionExplanations",s);
|
return THEME->GetString("OptionExplanations",s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const char *InputModeNames[] = {
|
||||||
|
"Individual",
|
||||||
|
"Together"
|
||||||
|
};
|
||||||
|
StringToX( InputMode );
|
||||||
|
|
||||||
//REGISTER_SCREEN_CLASS( ScreenOptions ); // can't be instantiated
|
//REGISTER_SCREEN_CLASS( ScreenOptions ); // can't be instantiated
|
||||||
ScreenOptions::ScreenOptions()
|
ScreenOptions::ScreenOptions()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,8 +20,11 @@ AutoScreenMessage( SM_ExportOptions )
|
|||||||
enum InputMode
|
enum InputMode
|
||||||
{
|
{
|
||||||
INPUTMODE_INDIVIDUAL, // each player controls their own cursor
|
INPUTMODE_INDIVIDUAL, // each player controls their own cursor
|
||||||
INPUTMODE_SHARE_CURSOR // both players control the same cursor
|
INPUTMODE_SHARE_CURSOR, // both players control the same cursor
|
||||||
|
NUM_InputMode,
|
||||||
|
InputMode_Invalid
|
||||||
};
|
};
|
||||||
|
InputMode StringToInputMode( const CString& str );
|
||||||
|
|
||||||
#define FOREACH_OptionsPlayer( pn ) \
|
#define FOREACH_OptionsPlayer( pn ) \
|
||||||
for( PlayerNumber pn=GetNextHumanPlayer((PlayerNumber)-1); pn!=PLAYER_INVALID && (m_InputMode==INPUTMODE_INDIVIDUAL || pn==0); pn=GetNextHumanPlayer(pn) )
|
for( PlayerNumber pn=GetNextHumanPlayer((PlayerNumber)-1); pn!=PLAYER_INVALID && (m_InputMode==INPUTMODE_INDIVIDUAL || pn==0); pn=GetNextHumanPlayer(pn) )
|
||||||
|
|||||||
Reference in New Issue
Block a user