diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index bd4a4d8688..6176756ed7 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -4,15 +4,12 @@ // - ScreenSelectMode // - ScreenInstructions // - ScreenSelectCourse -// - ScreenSelectDifficulty -// - ScreenSelectDifficultyEX +// - ScreenSelectMaxType2 +// - ScreenSelectMaxType2EX // - ScreenSelectGroup // - ScreenSelectMusic -// - ScreenSelectStyle5th -// - ScreenSelectStyle -// Possible Selector names: -// - ModeSelectorMaxType1 (Max's Select Style) -// - ModeSelectorMaxType2 (Max's Select Difficulty) +// - ScreenSelectMaxType15th +// - ScreenSelectMaxType1 [Common] ColorP1=0.4,1.0,0.8,1 // sea green @@ -42,7 +39,7 @@ HelpTextFree=No charge to join in. Press START NextScreen=ScreenCaution [ScreenCaution] -NextScreen=ScreenSelectStyle +NextScreen=ScreenSelectMaxType1 [ScreenEz2SelectPlayer] JoinFrameP1X=120 @@ -60,16 +57,34 @@ SilentWait=1 BounceJoinMessage=1 FoldOnJoin=1 -[ScreenSelectStyle] -Selector=ModeSelectorMaxType1 +[ScreenSelectMaxType1] +ChoicesType=0 // 0=styles, 1=difficulties, 2=modes, 3=games HelpText=Use &LEFT; &RIGHT; to select, then press START TimerSeconds=40 -NextScreen=ScreenSelectDifficulty - -[ScreenSelectStyle5th] +NextScreen=ScreenSelectMaxType2 +JointPremiumOnCommand=x,550;y,400;xoffset,400;bounceend,0.5;xoffset,-400 +JointPremiumOffCommand=bouncebegin,0.5;xoffset,400 +Icon1OnCommand=x,60;y,84;xoffset,-800;sleep,0.20;decelerate,0.4;xoffset,800 +Icon1OffCommand=bouncebegin,0.5;zoomy,0 +Icon2OnCommand=x,140;y,84;xoffset,-800;sleep,0.15;decelerate,0.4;xoffset,800 +Icon2OffCommand=bouncebegin,0.5;zoomy,0 +Icon3OnCommand=x,220;y,84;xoffset,-800;sleep,0.10;decelerate,0.4;xoffset,800 +Icon3OffCommand=bouncebegin,0.5;zoomy,0 +Icon4OnCommand=x,300;y,84;xoffset,-800;sleep,0.05;decelerate,0.4;xoffset,800 +Icon4OffCommand=bouncebegin,0.5;zoomy,0 +Icon5OnCommand=x,380;y,84;xoffset,-800;sleep,0.00;decelerate,0.4;xoffset,800 +Icon5OffCommand=bouncebegin,0.5;zoomy,0 +DisabledColor=0.2,0.2,0.2,1 +ExplanationOnCommand=x,480;y,170;xoffset,400;bounceend,0.5;xoffset,-400 +ExplanationOffCommand=bouncebegin,0.5;xoffset,400 +InfoOnCommand=x,480;y,280;zoomy,0;bounceend,0.5;zoomy,1 +InfoOffCommand=bouncebegin,0.5;zoomy,0 +PreviewOnCommand=x,160;y,260;diffuse,1,1,1,0;glow,1,1,1,0;linear,0.2;glow,1,1,1,1;linear,0.0;diffuse,1,1,1,1;linear,0.2;glow,1,1,1,0 +PreviewOffCommand=linear,0.5;diffuse,1,1,1,0 +[ScreenSelectMaxType15th] HelpText=Use &LEFT; &RIGHT; to select, then press START TimerSeconds=40 -NextScreen=ScreenSelectDifficulty +NextScreen=ScreenSelectMaxType2 [ScreenSelectMode] JoinFrameP1X=120 @@ -95,16 +110,72 @@ FoldOnJoin=1 [ScreenStyleSplash] NextScreen=ScreenSelectGroup -[ScreenSelectDifficulty] +[ScreenSelectMaxType2] +ChoicesType=1 // 0=styles, 1=difficulties, 2=modes, 3=games Choices=Beginner,Easy,Medium,Hard,Nonstop,Oni,Endless -Selector=ModeSelectorMaxType2 HelpText=Use &LEFT; &RIGHT; to select, then press START TimerSeconds=40 NextScreenArcade=ScreenSelectGroup NextScreenOni=ScreenInstructions NextScreenBattle=ScreenInstructions +NumChoicesOnPage1=4 +LockInputSeconds=0.5 +SleepAfterChoiceSeconds=0.5 +SleepAfterTweenOffSeconds=1.3 +MorePage1OnCommand=diffuse,1,1,1,0;x,580;y,90;linear,0.5;diffuse,1,1,1,1 +MorePage1OffCommand=linear,0.5;diffuse,1,1,1,0 +MorePage2OnCommand=x,700;y,90 +MorePage2OffCommand=linear,0.5;diffuse,1,1,1,0 +ExplanationPage1OnCommand=x,170;y,70;xoffset,-400;bounceend,0.5;xoffset,400; +ExplanationPage1OffCommand=bouncebegin,0.5;xoffset,-400 +ExplanationPage2OnCommand=x,1100;y,70 +ExplanationPage2OffCommand=bouncebegin,0.5;xoffset,400 +HeaderPage1Choice1OnCommand=vertalign,bottom;x,90;y,180;xoffset,-800;sleep,0.0;decelerate,0.4;xoffset,800 +HeaderPage1Choice1OffCommand=sleep,0.3;accelerate,0.4;xoffset,-800 +HeaderPage1Choice2OnCommand=vertalign,bottom;x,246;y,220;xoffset,-800;sleep,0.2;decelerate,0.4;xoffset,800 +HeaderPage1Choice2OffCommand=sleep,0.5;accelerate,0.4;xoffset,-800 +HeaderPage1Choice3OnCommand=vertalign,bottom;x,394;y,180;xoffset,-800;sleep,0.4;decelerate,0.4;xoffset,800 +HeaderPage1Choice3OffCommand=sleep,0.7;accelerate,0.4;xoffset,-800 +HeaderPage1Choice4OnCommand=vertalign,bottom;x,542;y,220;xoffset,-800;sleep,0.6;decelerate,0.4;xoffset,800 +HeaderPage1Choice4OffCommand=sleep,0.9;accelerate,0.4;xoffset,-800 +HeaderPage2Choice1OnCommand=vertalign,bottom;x,760;y,200 +HeaderPage2Choice1OffCommand=sleep,0.3;accelerate,0.4;xoffset,-800 +HeaderPage2Choice2OnCommand=vertalign,bottom;x,960;y,200 +HeaderPage2Choice2OffCommand=sleep,0.5;accelerate,0.4;xoffset,-800 +HeaderPage2Choice3OnCommand=vertalign,bottom;x,1160;y,200 +HeaderPage2Choice3OffCommand=sleep,0.7;accelerate,0.4;xoffset,-800 +PicturePage1Choice1OnCommand=vertalign,top;x,90;y,180;zoomy,0.0;sleep,0.4;bounceend,0.3;zoomy,1 +PicturePage1Choice1OffCommand=sleep,0.0;bouncebegin,0.3;zoomy,0 +PicturePage1Choice2OnCommand=vertalign,top;x,246;y,220;zoomy,0.0;sleep,0.6;bounceend,0.3;zoomy,1 +PicturePage1Choice2OffCommand=sleep,0.2;bouncebegin,0.3;zoomy,0 +PicturePage1Choice3OnCommand=vertalign,top;x,394;y,180;zoomy,0.0;sleep,0.8;bounceend,0.3;zoomy,1 +PicturePage1Choice3OffCommand=sleep,0.4;bouncebegin,0.3;zoomy,0 +PicturePage1Choice4OnCommand=vertalign,top;x,542;y,220;zoomy,0.0;sleep,1.0;bounceend,0.3;zoomy,1 +PicturePage1Choice4OffCommand=sleep,0.6;bouncebegin,0.3;zoomy,0 +PicturePage2Choice1OnCommand=vertalign,top;x,760;y,200; +PicturePage2Choice1OffCommand=sleep,0.0;bouncebegin,0.3;zoomy,0 +PicturePage2Choice2OnCommand=vertalign,top;x,960;y,200 +PicturePage2Choice2OffCommand=sleep,0.2;bouncebegin,0.3;zoomy,0 +PicturePage2Choice3OnCommand=vertalign,top;x,1160;y,200 +PicturePage2Choice3OffCommand=sleep,0.4;bouncebegin,0.3;zoomy,0 +CursorOnCommand=diffuse,1,1,1,0;rotationz,6;zoom,4;linear,0.3;diffuse,1,1,1,1;rotationz,0;zoom,1;glowshift +CursorChooseCommand=sleep,0.2;linear,0.2;xoffset,10;yoffset,10 +CursorOffCommand=sleep,0.2;linear,0.3;zoom,0 +CursorP1OffsetXFromPicture=-40 +CursorP1OffsetYFromPicture=188 +CursorP2OffsetXFromPicture=+40 +CursorP2OffsetYFromPicture=188 +ShadowOnCommand=diffuse,1,1,1,0;rotationz,6;zoom,4;linear,0.3;diffuse,1,1,1,1;rotationz,0;zoom,1 +ShadowChooseCommand=sleep,0.2;linear,0.2;diffuse,1,1,1,0 +ShadowOffCommand=sleep,0.2;linear,0.3;diffuse,1,1,1,0 +ShadowLengthX=10 +ShadowLengthY=10 +OKOnCommand=diffuse,1,1,1,1 +OKChooseCommand=diffuse,1,1,1,1;zoom,2;linear,0.2;diffuse,1,1,1,1;zoom,1 +OKOffCommand=sleep,0.2;linear,0.3;zoom,0 +DisabledColor=0.2,0.2,0.2,1 -[ScreenSelectDifficultyEX] +[ScreenSelectMaxType2EX] DifficultyP1X=216 DifficultyP1Y=180 DifficultyP2X=440 @@ -983,77 +1054,3 @@ TextHorizAlignP1=0 TextHorizAlignP2=0 TextZoom=0 SpacingY=0 - -[ModeSelectorMaxType1] -JointPremiumBannerX=550 -JointPremiumBannerY=400 -IconsStartX=60 -IconsSpacingX=76 -IconsStartY=100 -IconsSpacingY=0 -IconsDisabledColor=0.2,0.2,0.2,1 -ExplanationX=480 -ExplanationY=170 -InfoX=480 -InfoY=280 -PreviewX=160 -PreviewY=240 -FadeSeconds=0.5 - -[ModeSelectorMaxType2] -NumChoicesOnPage1=4 -LockInputSeconds=0.5 -SleepAfterChoiceSeconds=0.5 -SleepAfterTweenOffSeconds=1.3 -MorePage1OnCommand=diffuse,1,1,1,0;x,580;y,90;linear,0.5;diffuse,1,1,1,1 -MorePage1OffCommand=linear,0.5;diffuse,1,1,1,0 -MorePage2OnCommand=x,700;y,90 -MorePage2OffCommand=linear,0.5;diffuse,1,1,1,0 -ExplanationPage1OnCommand=x,170;y,70;xoffset,-400;bounceend,0.5;xoffset,400; -ExplanationPage1OffCommand=bouncebegin,0.5;xoffset,-400 -ExplanationPage2OnCommand=x,1100;y,70 -ExplanationPage2OffCommand=bouncebegin,0.5;xoffset,400 -HeaderPage1Choice1OnCommand=vertalign,bottom;x,90;y,180;xoffset,-800;sleep,0.0;decelerate,0.4;xoffset,800 -HeaderPage1Choice1OffCommand=sleep,0.3;accelerate,0.4;xoffset,-800 -HeaderPage1Choice2OnCommand=vertalign,bottom;x,246;y,220;xoffset,-800;sleep,0.2;decelerate,0.4;xoffset,800 -HeaderPage1Choice2OffCommand=sleep,0.5;accelerate,0.4;xoffset,-800 -HeaderPage1Choice3OnCommand=vertalign,bottom;x,394;y,180;xoffset,-800;sleep,0.4;decelerate,0.4;xoffset,800 -HeaderPage1Choice3OffCommand=sleep,0.7;accelerate,0.4;xoffset,-800 -HeaderPage1Choice4OnCommand=vertalign,bottom;x,542;y,220;xoffset,-800;sleep,0.6;decelerate,0.4;xoffset,800 -HeaderPage1Choice4OffCommand=sleep,0.9;accelerate,0.4;xoffset,-800 -HeaderPage2Choice1OnCommand=vertalign,bottom;x,760;y,200 -HeaderPage2Choice1OffCommand=sleep,0.3;accelerate,0.4;xoffset,-800 -HeaderPage2Choice2OnCommand=vertalign,bottom;x,960;y,200 -HeaderPage2Choice2OffCommand=sleep,0.5;accelerate,0.4;xoffset,-800 -HeaderPage2Choice3OnCommand=vertalign,bottom;x,1160;y,200 -HeaderPage2Choice3OffCommand=sleep,0.7;accelerate,0.4;xoffset,-800 -PicturePage1Choice1OnCommand=vertalign,top;x,90;y,180;zoomy,0.0;sleep,0.4;bounceend,0.3;zoomy,1 -PicturePage1Choice1OffCommand=sleep,0.0;bouncebegin,0.3;zoomy,0 -PicturePage1Choice2OnCommand=vertalign,top;x,246;y,220;zoomy,0.0;sleep,0.6;bounceend,0.3;zoomy,1 -PicturePage1Choice2OffCommand=sleep,0.2;bouncebegin,0.3;zoomy,0 -PicturePage1Choice3OnCommand=vertalign,top;x,394;y,180;zoomy,0.0;sleep,0.8;bounceend,0.3;zoomy,1 -PicturePage1Choice3OffCommand=sleep,0.4;bouncebegin,0.3;zoomy,0 -PicturePage1Choice4OnCommand=vertalign,top;x,542;y,220;zoomy,0.0;sleep,1.0;bounceend,0.3;zoomy,1 -PicturePage1Choice4OffCommand=sleep,0.6;bouncebegin,0.3;zoomy,0 -PicturePage2Choice1OnCommand=vertalign,top;x,760;y,200; -PicturePage2Choice1OffCommand=sleep,0.0;bouncebegin,0.3;zoomy,0 -PicturePage2Choice2OnCommand=vertalign,top;x,960;y,200 -PicturePage2Choice2OffCommand=sleep,0.2;bouncebegin,0.3;zoomy,0 -PicturePage2Choice3OnCommand=vertalign,top;x,1160;y,200 -PicturePage2Choice3OffCommand=sleep,0.4;bouncebegin,0.3;zoomy,0 -CursorOnCommand=diffuse,1,1,1,0;rotationz,6;zoom,4;linear,0.3;diffuse,1,1,1,1;rotationz,0;zoom,1;glowshift -CursorChooseCommand=sleep,0.2;linear,0.2;xoffset,10;yoffset,10 -CursorOffCommand=sleep,0.2;linear,0.3;zoom,0 -CursorP1OffsetXFromPicture=-40 -CursorP1OffsetYFromPicture=188 -CursorP2OffsetXFromPicture=+40 -CursorP2OffsetYFromPicture=188 -ShadowOnCommand=diffuse,1,1,1,0;rotationz,6;zoom,4;linear,0.3;diffuse,1,1,1,1;rotationz,0;zoom,1 -ShadowChooseCommand=sleep,0.2;linear,0.2;diffuse,1,1,1,0 -ShadowOffCommand=sleep,0.2;linear,0.3;diffuse,1,1,1,0 -ShadowLengthX=10 -ShadowLengthY=10 -OKOnCommand=diffuse,1,1,1,1 -OKChooseCommand=diffuse,1,1,1,1;zoom,2;linear,0.2;diffuse,1,1,1,1;zoom,1 -OKOffCommand=sleep,0.2;linear,0.3;zoom,0 -DisabledColor=0.2,0.2,0.2,1 diff --git a/stepmania/src/GameManager.cpp b/stepmania/src/GameManager.cpp index 04fde0d2ee..f396b8a186 100644 --- a/stepmania/src/GameManager.cpp +++ b/stepmania/src/GameManager.cpp @@ -1265,6 +1265,7 @@ StyleDef g_StyleDefs[NUM_STYLES] = }; +/* ModeChoice g_ModeChoices[] = { { @@ -1525,7 +1526,7 @@ ModeChoice g_ModeChoices[] = }, }; const int NUM_MODE_CHOICES = sizeof(g_ModeChoices) / sizeof(g_ModeChoices[0]); - +*/ GameManager::GameManager() { @@ -1571,12 +1572,14 @@ Style GameManager::GetEditorStyleForNotesType( NotesType nt ) return STYLE_INVALID; } +/* void GameManager::GetModesChoicesForGame( Game game, vector& apChoicesAddTo ) { for( int s=0; s& aNotesTypeAddTo ) { @@ -1645,15 +1648,6 @@ NotesType GameManager::StringToNotesType( CString sNotesType ) return NOTES_TYPE_DANCE_SINGLE; } -Game GameManager::StringToGameType( CString sGameType ) -{ - for( int i=0; i= NUM_NOTES_TYPES) @@ -1665,3 +1659,28 @@ CString GameManager::NotesTypeToString( NotesType nt ) return NotesTypes[nt].name; } + +Game GameManager::StringToGameType( CString sGameType ) +{ + for( int i=0; im_Game != game ) + continue; + if( sStyle.CompareNoCase(pStyleDef->m_szName) == 0 ) + return style; + } + + return STYLE_INVALID; +} diff --git a/stepmania/src/GameManager.h b/stepmania/src/GameManager.h index 80a3ca8b4f..4a47372966 100644 --- a/stepmania/src/GameManager.h +++ b/stepmania/src/GameManager.h @@ -15,7 +15,6 @@ #include "StyleDef.h" #include "Style.h" #include "Game.h" -#include "ModeChoice.h" class IniFile; @@ -29,7 +28,6 @@ public: const StyleDef* GetStyleDefForStyle( Style s ); void GetStylesForGame( Game game, vector