send NoteUpcoming messages to receptors

This commit is contained in:
Chris Danford
2008-06-04 00:09:43 +00:00
parent 7fa2fd1f59
commit 605aac7472
3 changed files with 13 additions and 0 deletions
+6
View File
@@ -871,6 +871,7 @@ void NoteField::DrawPrimitives()
//
// Draw all TapNotes in this column
//
bool bAnyUpcomingInThisCol = false;
// draw notes from furthest to closest
@@ -924,7 +925,12 @@ void NoteField::DrawPrimitives()
bool bUseAdditionColoring = bIsAddition || bIsHopoPossible;
NoteDisplayCols *displayCols = tn.pn == PLAYER_INVALID ? m_pCurDisplay : m_pDisplays[tn.pn];
displayCols->display[c].DrawTap( tn, c, NoteRowToBeat(i), bHoldNoteBeginsOnThisBeat, bUseAdditionColoring, bIsInSelectionRange ? fSelectedRangeGlow : m_fPercentFadeToFail, m_fYReverseOffsetPixels, iDrawDistanceAfterTargetsPixels, iDrawDistanceBeforeTargetsPixels, FADE_BEFORE_TARGETS_PERCENT );
bool bNoteIsUpcoming = NoteRowToBeat(i) > GAMESTATE->m_fSongBeat;
bAnyUpcomingInThisCol |= bNoteIsUpcoming;
}
cur->m_ReceptorArrowRow.SetNoteUpcoming( c, bAnyUpcomingInThisCol );
}
cur->m_GhostArrowRow.Draw();
+6
View File
@@ -94,6 +94,12 @@ void ReceptorArrowRow::SetPressed( int iCol )
m_ReceptorArrow[iCol]->SetPressed();
}
void ReceptorArrowRow::SetNoteUpcoming( int iCol, bool b )
{
m_ReceptorArrow[iCol]->PlayCommand(b?"ShowNoteUpcoming":"HideNoteUpcoming");
}
/*
* (c) 2001-2003 Chris Danford
* All rights reserved.
+1
View File
@@ -21,6 +21,7 @@ public:
void Step( int iCol, TapNoteScore score );
void SetPressed( int iCol );
void SetNoteUpcoming( int iCol, bool b );
void SetFadeToFailPercent( float fFadeToFailPercent ) { m_fFadeToFailPercent = fFadeToFailPercent; }