Added the LoopOnChartEnd metric for the editor.
Let the players decide whether to loop or not when playing charts in the editor.
This commit is contained in:
@@ -8,6 +8,13 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 $NEXT | 20110xyy
|
StepMania 5.0 $NEXT | 20110xyy
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/05/27
|
||||||
|
----------
|
||||||
|
* [ScreenEdit] Added the LoopOnChartEnd metric. Once you get to the end of
|
||||||
|
the chart while playing it in the editor, this controls whether it loops and
|
||||||
|
plays again, or simply stops. By default, this is true, replicating current
|
||||||
|
behavior. Set to false to replicate older StepMania behavior. [Wolfman2000]
|
||||||
|
|
||||||
2011/05/26
|
2011/05/26
|
||||||
----------
|
----------
|
||||||
* [ScoreKeeperNormal] Added the MissComboIsPerRow metric. Similar to the
|
* [ScoreKeeperNormal] Added the MissComboIsPerRow metric. Similar to the
|
||||||
|
|||||||
@@ -3626,6 +3626,8 @@ PlayRecordHelpX=SCREEN_LEFT+20
|
|||||||
PlayRecordHelpY=SCREEN_BOTTOM-20
|
PlayRecordHelpY=SCREEN_BOTTOM-20
|
||||||
PlayRecordHelpOnCommand=halign,0;valign,0;shadowlength,1
|
PlayRecordHelpOnCommand=halign,0;valign,0;shadowlength,1
|
||||||
|
|
||||||
|
LoopOnChartEnd=true
|
||||||
|
|
||||||
CurrentBeatFormat="%s:\n %.5f\n"
|
CurrentBeatFormat="%s:\n %.5f\n"
|
||||||
CurrentSecondFormat="%s:\n %.5f\n"
|
CurrentSecondFormat="%s:\n %.5f\n"
|
||||||
SnapToFormat="%s:\n %s\n"
|
SnapToFormat="%s:\n %s\n"
|
||||||
|
|||||||
+3
-2
@@ -701,6 +701,8 @@ static Preference1D<RString> EDITOR_NOTE_SKINS( SetDefaultEditorNoteSkin, NUM_PL
|
|||||||
|
|
||||||
static ThemeMetric<RString> EDIT_MODIFIERS ("ScreenEdit","EditModifiers");
|
static ThemeMetric<RString> EDIT_MODIFIERS ("ScreenEdit","EditModifiers");
|
||||||
|
|
||||||
|
static ThemeMetric<bool> LOOP_ON_CHART_END ("ScreenEdit","LoopOnChartEnd");
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS( ScreenEdit );
|
REGISTER_SCREEN_CLASS( ScreenEdit );
|
||||||
|
|
||||||
void ScreenEdit::Init()
|
void ScreenEdit::Init()
|
||||||
@@ -1017,8 +1019,7 @@ void ScreenEdit::Update( float fDeltaTime )
|
|||||||
float fStopAtSeconds = m_pSteps->m_Timing.GetElapsedTimeFromBeat( NoteRowToBeat(m_iStopPlayingAt) ) + 1;
|
float fStopAtSeconds = m_pSteps->m_Timing.GetElapsedTimeFromBeat( NoteRowToBeat(m_iStopPlayingAt) ) + 1;
|
||||||
if( GAMESTATE->m_pPlayerState[PLAYER_1]->m_Position.m_fMusicSeconds > fStopAtSeconds )
|
if( GAMESTATE->m_pPlayerState[PLAYER_1]->m_Position.m_fMusicSeconds > fStopAtSeconds )
|
||||||
{
|
{
|
||||||
// loop
|
TransitionEditState( ( LOOP_ON_CHART_END ? STATE_PLAYING : STATE_EDITING ) );
|
||||||
TransitionEditState( STATE_PLAYING );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user