[sm130labels] Force starting label, display all.
Now to fix the keyboard command...
This commit is contained in:
@@ -863,6 +863,19 @@ void NoteField::DrawPrimitives()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Label text
|
||||||
|
const vector<LabelSegment> &lLabelSegments = GAMESTATE->m_pCurSong->m_Timing.m_LabelSegments;
|
||||||
|
for( unsigned i=0; i<lLabelSegments.size(); i++ )
|
||||||
|
{
|
||||||
|
if( lLabelSegments[i].m_iStartRow >= iFirstRowToDraw &&
|
||||||
|
lLabelSegments[i].m_iStartRow <= iLastRowToDraw)
|
||||||
|
{
|
||||||
|
float fBeat = NoteRowToBeat(lLabelSegments[i].m_iStartRow);
|
||||||
|
if( IS_ON_SCREEN(fBeat) )
|
||||||
|
DrawLabelText( fBeat, lLabelSegments[i].m_sLabel );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Course mods text
|
// Course mods text
|
||||||
const Course *pCourse = GAMESTATE->m_pCurCourse;
|
const Course *pCourse = GAMESTATE->m_pCurCourse;
|
||||||
if( pCourse )
|
if( pCourse )
|
||||||
|
|||||||
+9
-7
@@ -781,10 +781,7 @@ void Song::TidyUpData()
|
|||||||
// If no time signature specified, assume 4/4 time for the whole song.
|
// If no time signature specified, assume 4/4 time for the whole song.
|
||||||
if( m_Timing.m_vTimeSignatureSegments.empty() )
|
if( m_Timing.m_vTimeSignatureSegments.empty() )
|
||||||
{
|
{
|
||||||
TimeSignatureSegment seg;
|
TimeSignatureSegment seg(0, 4, 4);
|
||||||
seg.m_iStartRow = 0;
|
|
||||||
seg.m_iNumerator = 4;
|
|
||||||
seg.m_iDenominator = 4;
|
|
||||||
m_Timing.m_vTimeSignatureSegments.push_back( seg );
|
m_Timing.m_vTimeSignatureSegments.push_back( seg );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -795,9 +792,7 @@ void Song::TidyUpData()
|
|||||||
*/
|
*/
|
||||||
if( m_Timing.m_TickcountSegments.empty() )
|
if( m_Timing.m_TickcountSegments.empty() )
|
||||||
{
|
{
|
||||||
TickcountSegment seg;
|
TickcountSegment seg(0, 2);
|
||||||
seg.m_iStartRow = 0;
|
|
||||||
seg.m_iTicks = 2;
|
|
||||||
m_Timing.m_TickcountSegments.push_back( seg );
|
m_Timing.m_TickcountSegments.push_back( seg );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -809,6 +804,13 @@ void Song::TidyUpData()
|
|||||||
seg.m_iCombo = 1;
|
seg.m_iCombo = 1;
|
||||||
m_Timing.m_ComboSegments.push_back( seg );
|
m_Timing.m_ComboSegments.push_back( seg );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Have a default label segment just in case.
|
||||||
|
if( m_Timing.m_LabelSegments.empty() )
|
||||||
|
{
|
||||||
|
LabelSegment seg(0, "Song Start");
|
||||||
|
m_Timing.m_LabelSegments.push_back( seg );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Song::TranslateTitles()
|
void Song::TranslateTitles()
|
||||||
|
|||||||
Reference in New Issue
Block a user