send NoteUpcoming messages to receptors
This commit is contained in:
@@ -871,6 +871,7 @@ void NoteField::DrawPrimitives()
|
|||||||
//
|
//
|
||||||
// Draw all TapNotes in this column
|
// Draw all TapNotes in this column
|
||||||
//
|
//
|
||||||
|
bool bAnyUpcomingInThisCol = false;
|
||||||
|
|
||||||
// draw notes from furthest to closest
|
// draw notes from furthest to closest
|
||||||
|
|
||||||
@@ -924,7 +925,12 @@ void NoteField::DrawPrimitives()
|
|||||||
bool bUseAdditionColoring = bIsAddition || bIsHopoPossible;
|
bool bUseAdditionColoring = bIsAddition || bIsHopoPossible;
|
||||||
NoteDisplayCols *displayCols = tn.pn == PLAYER_INVALID ? m_pCurDisplay : m_pDisplays[tn.pn];
|
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 );
|
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();
|
cur->m_GhostArrowRow.Draw();
|
||||||
|
|||||||
@@ -94,6 +94,12 @@ void ReceptorArrowRow::SetPressed( int iCol )
|
|||||||
m_ReceptorArrow[iCol]->SetPressed();
|
m_ReceptorArrow[iCol]->SetPressed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ReceptorArrowRow::SetNoteUpcoming( int iCol, bool b )
|
||||||
|
{
|
||||||
|
m_ReceptorArrow[iCol]->PlayCommand(b?"ShowNoteUpcoming":"HideNoteUpcoming");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (c) 2001-2003 Chris Danford
|
* (c) 2001-2003 Chris Danford
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public:
|
|||||||
|
|
||||||
void Step( int iCol, TapNoteScore score );
|
void Step( int iCol, TapNoteScore score );
|
||||||
void SetPressed( int iCol );
|
void SetPressed( int iCol );
|
||||||
|
void SetNoteUpcoming( int iCol, bool b );
|
||||||
|
|
||||||
void SetFadeToFailPercent( float fFadeToFailPercent ) { m_fFadeToFailPercent = fFadeToFailPercent; }
|
void SetFadeToFailPercent( float fFadeToFailPercent ) { m_fFadeToFailPercent = fFadeToFailPercent; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user