RandomBGEndsAtLastBeat metric.
This commit is contained in:
@@ -11,6 +11,7 @@ ________________________________________________________________________________
|
|||||||
RandomBGStartBeat sets the beat of the music the first random bg occurs on.
|
RandomBGStartBeat sets the beat of the music the first random bg occurs on.
|
||||||
RandomBGChangeMeasures sets the number of measures between changes.
|
RandomBGChangeMeasures sets the number of measures between changes.
|
||||||
RandomBGChangesWhenBPMChangesAtMeasureStart toggles the behavior in its name.
|
RandomBGChangesWhenBPMChangesAtMeasureStart toggles the behavior in its name.
|
||||||
|
RandomBGEndsAtLastBeat toggles the behavior in its name.
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
StepMania 5.0.9 | 20150520
|
StepMania 5.0.9 | 20150520
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ BottomEdge=SCREEN_BOTTOM
|
|||||||
RandomBGStartBeat=-1000
|
RandomBGStartBeat=-1000
|
||||||
RandomBGChangeMeasures=4
|
RandomBGChangeMeasures=4
|
||||||
RandomBGChangesWhenBPMChangesAtMeasureStart=true
|
RandomBGChangesWhenBPMChangesAtMeasureStart=true
|
||||||
|
RandomBGEndsAtLastBeat=false
|
||||||
|
|
||||||
[Banner]
|
[Banner]
|
||||||
# Scroll stuff when you roll over it, DDR Extreme style.
|
# Scroll stuff when you roll over it, DDR Extreme style.
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ static ThemeMetric<bool> USE_STATIC_BG ("Background","UseStaticBackground");
|
|||||||
static ThemeMetric<float> RAND_BG_START_BEAT("Background", "RandomBGStartBeat");
|
static ThemeMetric<float> RAND_BG_START_BEAT("Background", "RandomBGStartBeat");
|
||||||
static ThemeMetric<float> RAND_BG_CHANGE_MEASURES("Background", "RandomBGChangeMeasures");
|
static ThemeMetric<float> RAND_BG_CHANGE_MEASURES("Background", "RandomBGChangeMeasures");
|
||||||
static ThemeMetric<bool> RAND_BG_CHANGES_WHEN_BPM_CHANGES("Background", "RandomBGChangesWhenBPMChangesAtMeasureStart");
|
static ThemeMetric<bool> RAND_BG_CHANGES_WHEN_BPM_CHANGES("Background", "RandomBGChangesWhenBPMChangesAtMeasureStart");
|
||||||
|
static ThemeMetric<bool> RAND_BG_ENDS_AT_LAST_BEAT("Background", "RandomBGEndsAtLastBeat");
|
||||||
|
|
||||||
|
|
||||||
static Preference<bool> g_bShowDanger( "ShowDanger", true );
|
static Preference<bool> g_bShowDanger( "ShowDanger", true );
|
||||||
@@ -613,12 +614,15 @@ void BackgroundImpl::LoadFromSong( const Song* pSong )
|
|||||||
|
|
||||||
LoadFromRandom( firstBeat, lastBeat, BackgroundChange() );
|
LoadFromRandom( firstBeat, lastBeat, BackgroundChange() );
|
||||||
|
|
||||||
|
if(RAND_BG_ENDS_AT_LAST_BEAT)
|
||||||
|
{
|
||||||
// end showing the static song background
|
// end showing the static song background
|
||||||
BackgroundChange change;
|
BackgroundChange change;
|
||||||
change.m_def = m_StaticBackgroundDef;
|
change.m_def = m_StaticBackgroundDef;
|
||||||
change.m_fStartBeat = lastBeat;
|
change.m_fStartBeat = lastBeat;
|
||||||
layer.m_aBGChanges.push_back( change );
|
layer.m_aBGChanges.push_back( change );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// sort segments
|
// sort segments
|
||||||
FOREACH_BackgroundLayer( i )
|
FOREACH_BackgroundLayer( i )
|
||||||
|
|||||||
Reference in New Issue
Block a user