regular metric for InputMode

This commit is contained in:
Glenn Maynard
2006-01-16 02:37:19 +00:00
parent 87fed49701
commit 4fa6ab0e88
2 changed files with 8 additions and 18 deletions
+5 -13
View File
@@ -2169,7 +2169,7 @@ NextScreen=ScreenJukebox
PrevScreen=@ScreenTitleBranch() PrevScreen=@ScreenTitleBranch()
StyleIcon=0 StyleIcon=0
TimerSeconds=0 TimerSeconds=0
OptionMenuFlags=together InputMode=together
ForceAllPlayers=1 ForceAllPlayers=1
LineNames=1,2,3,4 LineNames=1,2,3,4
Line1=list,Styles Line1=list,Styles
@@ -2458,6 +2458,7 @@ WarningCommand0=stoptweening;stopeffect;linear,0.2;zoomx,1
[ScreenOptions] [ScreenOptions]
Fallback=ScreenWithMenuElements Fallback=ScreenWithMenuElements
InputMode=individual
NumRowsShown=10 NumRowsShown=10
RowInitCommand= RowInitCommand=
RowOnCommand= RowOnCommand=
@@ -3123,7 +3124,6 @@ IdleTimeoutSeconds=0
[ScreenInputOptions] [ScreenInputOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3,4,5,6 LineNames=1,2,3,4,5,6
OptionMenuFlags=together
Line1=conf,AutoMapOnJoyChange Line1=conf,AutoMapOnJoyChange
Line2=conf,OnlyDedicatedMenuButtons Line2=conf,OnlyDedicatedMenuButtons
Line3=conf,AutoPlay Line3=conf,AutoPlay
@@ -3134,7 +3134,6 @@ Line6=conf,MusicWheelSwitchSpeed
[ScreenCoinOptions] [ScreenCoinOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3,4,5 LineNames=1,2,3,4,5
OptionMenuFlags=together
Line1=conf,CoinMode Line1=conf,CoinMode
Line2=conf,SongsPerPlay Line2=conf,SongsPerPlay
Line3=conf,CoinsPerCredit Line3=conf,CoinsPerCredit
@@ -3144,7 +3143,6 @@ Line5=conf,EventMode
[ScreenMachineOptions] [ScreenMachineOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3,4,5,6,7,8,9,10,11 LineNames=1,2,3,4,5,6,7,8,9,10,11
OptionMenuFlags=together
Line1=conf,MenuTimer Line1=conf,MenuTimer
Line2=conf,ScoringType Line2=conf,ScoringType
Line3=conf,TimingWindowScale Line3=conf,TimingWindowScale
@@ -3160,7 +3158,6 @@ Line11=conf,AllowW1
[ScreenGraphicOptions] [ScreenGraphicOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3,4,5,6,7,8,9,10,11,12,13,14 LineNames=1,2,3,4,5,6,7,8,9,10,11,12,13,14
OptionMenuFlags=together
Line1=conf,Windowed Line1=conf,Windowed
Line2=conf,DisplayResolution Line2=conf,DisplayResolution
Line3=conf,DisplayAspectRatio Line3=conf,DisplayAspectRatio
@@ -3179,7 +3176,6 @@ Line14=conf,ShowBanners
[ScreenGameplayOptions] [ScreenGameplayOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3,4,5,6 LineNames=1,2,3,4,5,6
OptionMenuFlags=together
Line1=conf,SoloSingle Line1=conf,SoloSingle
Line2=conf,HiddenSongs Line2=conf,HiddenSongs
Line3=conf,EasterEggs Line3=conf,EasterEggs
@@ -3190,7 +3186,6 @@ Line6=conf,UseUnlockSystem
[ScreenBackgroundOptions] [ScreenBackgroundOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3,4,5,6 LineNames=1,2,3,4,5,6
OptionMenuFlags=together
Line1=conf,RandomBackgroundMode Line1=conf,RandomBackgroundMode
Line2=conf,BGBrightness Line2=conf,BGBrightness
Line3=conf,ShowDanger Line3=conf,ShowDanger
@@ -3201,7 +3196,6 @@ Line6=conf,NumBackgrounds
[ScreenAppearanceOptions] [ScreenAppearanceOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3,4,5,6,7,8,9,10,11,12,13 LineNames=1,2,3,4,5,6,7,8,9,10,11,12,13
OptionMenuFlags=together
Line1=conf,Language Line1=conf,Language
Line2=conf,Announcer Line2=conf,Announcer
Line3=conf,Theme Line3=conf,Theme
@@ -3219,7 +3213,6 @@ Line13=conf,ShowLyrics
[ScreenOtherOptions] [ScreenOtherOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3 LineNames=1,2,3
OptionMenuFlags=together
Line1=conf,AutogenSteps Line1=conf,AutogenSteps
Line2=conf,AutogenGroupCourses Line2=conf,AutogenGroupCourses
Line3=conf,FastLoad Line3=conf,FastLoad
@@ -3227,7 +3220,6 @@ Line3=conf,FastLoad
[ScreenSoundOptions] [ScreenSoundOptions]
Fallback=ScreenOptionsServiceChild Fallback=ScreenOptionsServiceChild
LineNames=1,2,3 LineNames=1,2,3
OptionMenuFlags=together
Line1=conf,SoundResampleQuality Line1=conf,SoundResampleQuality
Line2=conf,AttractSoundFrequency Line2=conf,AttractSoundFrequency
Line3=conf,SoundVolume Line3=conf,SoundVolume
@@ -3657,8 +3649,9 @@ TitleX=SCREEN_CENTER_X-180
TitleOnCommand=zoom,0.5;horizalign,left;ShadowLength,0 TitleOnCommand=zoom,0.5;horizalign,left;ShadowLength,0
TitleGainFocusCommand=diffuseshift;EffectColor1,1.3,1.3,1.3,1;EffectColor2,0.3,0.3,0.3,1 TitleGainFocusCommand=diffuseshift;EffectColor1,1.3,1.3,1.3,1;EffectColor2,0.3,0.3,0.3,1
TitleLoseFocusCommand=stopeffect TitleLoseFocusCommand=stopeffect
OptionMenuFlags=together;smnavigation OptionMenuFlags=smnavigation
ForceAllPlayers=1 ForceAllPlayers=1
InputMode=together
[ScreenOptionsService] [ScreenOptionsService]
Class=ScreenOptionsMaster Class=ScreenOptionsMaster
@@ -3701,12 +3694,12 @@ Line15=gamecommand;screen,ScreenTestInput;name,Test Input
[ScreenOptionsServiceChild] [ScreenOptionsServiceChild]
Fallback=ScreenOptionsMaster Fallback=ScreenOptionsMaster
InputMode=together
IconsOnCommand=x,-30 IconsOnCommand=x,-30
TimerOnCommand=hidden,1 TimerOnCommand=hidden,1
StyleIcon=0 StyleIcon=0
TimerSeconds=0 TimerSeconds=0
AllowOperatorMenuButton=0 AllowOperatorMenuButton=0
OptionMenuFlags=together
ForceAllPlayers=1 ForceAllPlayers=1
PrevScreen=ScreenOptionsService PrevScreen=ScreenOptionsService
NextScreen=ScreenOptionsService NextScreen=ScreenOptionsService
@@ -3774,7 +3767,6 @@ Fallback=ScreenOptionsServiceChild
PrevScreen=@ScreenTitleBranch() PrevScreen=@ScreenTitleBranch()
NextScreen=@ScreenTitleBranch() NextScreen=@ScreenTitleBranch()
LineNames=1 LineNames=1
OptionMenuFlags=together
Line1=conf,Game Line1=conf,Game
[ScreenPlayerOptions] [ScreenPlayerOptions]
+3 -5
View File
@@ -20,6 +20,7 @@
#define OPTION_MENU_FLAGS THEME->GetMetric (m_sName,"OptionMenuFlags") #define OPTION_MENU_FLAGS THEME->GetMetric (m_sName,"OptionMenuFlags")
#define LINE(sLineName) THEME->GetMetric (m_sName,ssprintf("Line%s",sLineName.c_str())) #define LINE(sLineName) THEME->GetMetric (m_sName,ssprintf("Line%s",sLineName.c_str()))
#define FORCE_ALL_PLAYERS THEME->GetMetricB(m_sName,"ForceAllPlayers") #define FORCE_ALL_PLAYERS THEME->GetMetricB(m_sName,"ForceAllPlayers")
#define INPUT_MODE THEME->GetMetric (m_sName,"InputMode")
REGISTER_SCREEN_CLASS( ScreenOptionsMaster ); REGISTER_SCREEN_CLASS( ScreenOptionsMaster );
@@ -34,7 +35,6 @@ void ScreenOptionsMaster::Init()
vector<CString> Flags; vector<CString> Flags;
split( OPTION_MENU_FLAGS, ";", Flags, true ); split( OPTION_MENU_FLAGS, ";", Flags, true );
InputMode im = INPUTMODE_INDIVIDUAL;
if( FORCE_ALL_PLAYERS ) if( FORCE_ALL_PLAYERS )
{ {
@@ -48,9 +48,7 @@ void ScreenOptionsMaster::Init()
CString sFlag = Flags[i]; CString sFlag = Flags[i];
sFlag.MakeLower(); sFlag.MakeLower();
if( sFlag == "together" ) if( sFlag == "smnavigation" )
im = INPUTMODE_SHARE_CURSOR;
else if( sFlag == "smnavigation" )
SetNavigation( NAV_THREE_KEY_MENU ); SetNavigation( NAV_THREE_KEY_MENU );
else if( sFlag == "toggle" ) else if( sFlag == "toggle" )
SetNavigation( PREFSMAN->m_bArcadeOptionsNavigation? NAV_TOGGLE_THREE_KEY:NAV_TOGGLE_FIVE_KEY ); SetNavigation( PREFSMAN->m_bArcadeOptionsNavigation? NAV_TOGGLE_THREE_KEY:NAV_TOGGLE_FIVE_KEY );
@@ -58,7 +56,7 @@ void ScreenOptionsMaster::Init()
RageException::Throw( "Unknown flag \"%s\"", sFlag.c_str() ); RageException::Throw( "Unknown flag \"%s\"", sFlag.c_str() );
} }
SetInputMode( im ); SetInputMode( StringToInputMode(INPUT_MODE) );
// Call this after enabling players, if any. // Call this after enabling players, if any.
ScreenOptions::Init(); ScreenOptions::Init();