From 3ddadbe82f3a0cd3a578c4dae5e5a4b3cd3b6548 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 30 Jan 2003 07:18:33 +0000 Subject: [PATCH] New ScreenEditMenu --- stepmania/NEWS | 2 + stepmania/Themes/default/metrics.ini | 35 ++- stepmania/src/GameConstantsAndTypes.h | 2 +- stepmania/src/GameDef.cpp | 2 +- stepmania/src/GameManager.cpp | 14 +- stepmania/src/GameManager.h | 7 +- stepmania/src/GameState.cpp | 6 +- stepmania/src/GrayArrow.cpp | 2 +- stepmania/src/GrooveRadar.h | 2 - stepmania/src/InputMapper.cpp | 2 +- stepmania/src/MenuElements.cpp | 2 +- stepmania/src/MusicWheel.cpp | 2 +- stepmania/src/Notes.cpp | 49 ++- stepmania/src/Notes.h | 11 +- stepmania/src/NotesLoaderSM.cpp | 4 +- stepmania/src/NotesWriterSM.cpp | 2 +- stepmania/src/RageInput.cpp | 115 +------ stepmania/src/ScreenEdit.cpp | 2 +- stepmania/src/ScreenEditMenu.cpp | 149 ++++++--- stepmania/src/ScreenEditMenu.h | 3 +- stepmania/src/ScreenEvaluation.cpp | 6 +- stepmania/src/ScreenEvaluation.h | 4 +- stepmania/src/ScreenManager.cpp | 2 +- stepmania/src/ScreenNameEntry.cpp | 14 +- stepmania/src/ScreenSelectStyle.cpp | 4 +- stepmania/src/Song.cpp | 56 +++- stepmania/src/SongSelector.cpp | 416 +++++++++++++------------- stepmania/src/SongSelector.h | 125 +++++--- stepmania/src/StageStats.cpp | 2 +- stepmania/src/StageStats.h | 4 +- stepmania/src/Style.h | 2 +- stepmania/src/TransitionFade.cpp | 2 +- stepmania/src/song.h | 7 +- stepmania/stepmania.nsi | 2 +- 34 files changed, 616 insertions(+), 443 deletions(-) diff --git a/stepmania/NEWS b/stepmania/NEWS index c6e2e8e17e..d567d723af 100644 --- a/stepmania/NEWS +++ b/stepmania/NEWS @@ -7,6 +7,8 @@ NEW FEATURE: New modifier: Acceleration-Boomerang CHANGE: Tweaked Acceleration-Wave for more of a challenge CHANGE: Changed format NoteSkin tap graphic format. Existing NoteSkins will need to update the tap graphic. +NEW FEATURE: New Edit menus with ability to delete Notes patterns and new + options for importing existing patterns into a new Notes pattern. ----------------------- Version 3.01 --------------------------- CHANGE: Simplified NoteSkin tap graphic format. Old NoteSkins will need to diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index 31497f00ac..3fd5527fb4 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -455,7 +455,7 @@ TextZoom=0.8 ExplanationX=320 ExplanationY=410 ExplanationText=In this mode, you can edit existing notes patterns,::create note patterns, or synchronize notes with the music. -HelpText=&UP; &DOWN change line &LEFT; &RIGHT; change value START to continue +HelpText=&UP; &DOWN; change line &LEFT; &RIGHT; change value START to continue [ScreenManager] StatsX=632 @@ -835,3 +835,36 @@ NumCharsToDrawBehind=2 NumCharsToDrawTotal=10 FakeBeatsPerSec=2.5 TimerSeconds=24 + +[SongSelector] +Arrows1X=190 +Arrows2X=590 +SongBannerX=490 +SongBannerY=130 +SongBannerWidth=130 +SongBannerHeight=40 +SongTextBannerX=320 +SongTextBannerY=130 +GroupBannerX=490 +GroupBannerY=80 +GroupBannerWidth=130 +GroupBannerHeight=40 +MeterX=490 +MeterY=220 +SourceMeterX=490 +SourceMeterY=300 +RowLabelsX=20 +RowValue1X=320 +RowValue2X=380 +RowValue3X=380 +RowValue4X=320 +RowValue5X=380 +RowValue6X=320 +RowValue7X=380 +Row1Y=80 +Row2Y=130 +Row3Y=180 +Row4Y=220 +Row5Y=260 +Row6Y=300 +Row7Y=340 diff --git a/stepmania/src/GameConstantsAndTypes.h b/stepmania/src/GameConstantsAndTypes.h index c351df6e7f..b662ad50bd 100644 --- a/stepmania/src/GameConstantsAndTypes.h +++ b/stepmania/src/GameConstantsAndTypes.h @@ -45,7 +45,7 @@ enum RadarCategory // starting from 12-o'clock rotating clockwise RADAR_AIR, RADAR_FREEZE, RADAR_CHAOS, - NUM_RADAR_VALUES // leave this at the end + NUM_RADAR_CATEGORIES // leave this at the end }; enum Difficulty diff --git a/stepmania/src/GameDef.cpp b/stepmania/src/GameDef.cpp index d5fcdcd478..7d8d97255b 100644 --- a/stepmania/src/GameDef.cpp +++ b/stepmania/src/GameDef.cpp @@ -34,7 +34,7 @@ MenuInput GameDef::GameInputToMenuInput( GameInput GameI ) const PlayerNumber pn; StyleDef::StyleType type = StyleDef::TWO_PLAYERS_TWO_CREDITS; - if( GAMESTATE->m_CurStyle != STYLE_NONE ) + if( GAMESTATE->m_CurStyle != STYLE_INVALID ) type = GAMESTATE->GetCurrentStyleDef()->m_StyleType; switch( type ) { diff --git a/stepmania/src/GameManager.cpp b/stepmania/src/GameManager.cpp index 8298eabc8d..095d8b7e4b 100644 --- a/stepmania/src/GameManager.cpp +++ b/stepmania/src/GameManager.cpp @@ -1508,11 +1508,11 @@ GameDef* GameManager::GetGameDefForGame( Game g ) const StyleDef* GameManager::GetStyleDefForStyle( Style s ) { - ASSERT( s != STYLE_NONE ); // the style must be set before calling this + ASSERT( s != STYLE_INVALID ); // the style must be set before calling this return &g_StyleDefs[ s ]; } -void GameManager::GetGameplayStylesForGame( Game game, vector