Restore F9/F10 for stops in the editor.

This commit is contained in:
Jason Felds
2011-11-26 13:33:21 -05:00
parent 16a7d5bab7
commit 40965d3c8d
3 changed files with 19 additions and 17 deletions
+5
View File
@@ -8,6 +8,11 @@ ________________________________________________________________________________
StepMania 5.0 $next | 20111xxx
--------------------------------------------------------------------------------
2011/11/26
----------
* [ScreenEdit] Restore using F9 and F10 to adjust stops by a fixed amount.
Sorry for the delay in this. [Wolfman2000]
2011/11/25
----------
* [PlayerStageStats] Hitting a mine no longer gives you full combo when
+10 -17
View File
@@ -1900,30 +1900,23 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB )
fDelta *= 40;
}
#if 0
unsigned i;
// is there a StopSegment on the current row?
const StopSegment *seg = GetAppropriateTiming().GetStopSegmentAtRow( GetRow() );
// a stop already exists here; change its value by the delta
if( seg->GetRow() == GetRow() )
TimingData & timing = GetAppropriateTiming();
StopSegment *seg = timing.GetStopSegmentAtRow( GetRow() );
int i = timing.GetSegmentIndexAtRow(SEGMENT_STOP, GetRow());
if (i == -1 || seg->GetRow() != GetRow()) // invalid
{
float fSeconds = seg->GetPause() + fDelta;
GetAppropriateTiming().AddSegment
if( i == stops.size() ) // there is no StopSegment at the current beat
{
// create a new StopSegment
if( fDelta > 0 )
GetAppropriateTiming().AddSegment( StopSegment(GetRow(), fDelta) );
timing.AddSegment( StopSegment(GetRow(), fDelta) );
}
else // StopSegment being modified is m_SongTiming.m_StopSegments[i]
else
{
StopSegment *s = static_cast<StopSegment *>(stops[i]);
s->SetPause(s->GetPause() + fDelta);
if( s->GetPause() <= 0 )
vector<TimingSegment *> &stops = timing.GetTimingSegments(SEGMENT_STOP);
seg->SetPause(seg->GetPause() + fDelta);
if( seg->GetPause() <= 0 )
stops.erase( stops.begin()+i, stops.begin()+i+1);
}
#endif
(fDelta>0 ? m_soundValueIncrease : m_soundValueDecrease).Play();
SetDirty( true );
}
+4
View File
@@ -360,6 +360,10 @@ public:
void SortSegments( TimingSegmentType tst );
const vector<TimingSegment*> &GetTimingSegments( TimingSegmentType tst ) const
{
return const_cast<TimingData *>(this)->GetTimingSegments(tst);
}
vector<TimingSegment *> &GetTimingSegments( TimingSegmentType tst )
{
return m_avpTimingSegments[tst];
}