Etterna 0.74.4
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
NoteDisplay Class Reference

Draws TapNotes and HoldNotes. More...

#include <NoteDisplay.h>

Public Member Functions

void Load (int iColNum, const PlayerState *pPlayerState, float fYReverseOffsetPixels)
 
auto DrawHoldsInRange (const NoteFieldRenderArgs &field_args, const NoteColumnRenderArgs &column_args, const std::vector< NoteData::TrackMap::const_iterator > &tap_set) -> bool
 
auto DrawTapsInRange (const NoteFieldRenderArgs &field_args, const NoteColumnRenderArgs &column_args, const std::vector< NoteData::TrackMap::const_iterator > &tap_set) -> bool
 
void DrawTap (const TapNote &tn, const NoteFieldRenderArgs &field_args, const NoteColumnRenderArgs &column_args, float fBeat, bool bOnSameRowAsHoldStart, bool bOnSameRowAsRollBeat, bool bIsAddition, float fPercentFadeToFail)
 Draw the TapNote onto the NoteField.
 
void DrawHold (const TapNote &tn, const NoteFieldRenderArgs &field_args, const NoteColumnRenderArgs &column_args, int iRow, bool bIsBeingHeld, const HoldNoteResult &Result, bool bIsAddition, float fPercentFadeToFail)
 
auto DrawHoldHeadForTapsOnSameRow () const -> bool
 
auto DrawRollHeadForTapsOnSameRow () const -> bool
 

Static Public Member Functions

static void Update (float fDeltaTime)
 

Public Attributes

float m_fYReverseOffsetPixels
 

Detailed Description

Draws TapNotes and HoldNotes.

Member Function Documentation

◆ DrawTap()

void NoteDisplay::DrawTap ( const TapNote tn,
const NoteFieldRenderArgs field_args,
const NoteColumnRenderArgs column_args,
float  fBeat,
bool  bOnSameRowAsHoldStart,
bool  bOnSameRowAsRollBeat,
bool  bIsAddition,
float  fPercentFadeToFail 
)

Draw the TapNote onto the NoteField.

Parameters
tnthe TapNote in question.
iColthe column.
floatfBeat the beat to draw them on.
bOnSameRowAsHoldStarta flag to see if a hold is on the same beat.
bOnSameRowAsRollStarta flag to see if a roll is on the same beat.
bIsAdditiona flag to see if this note was added via mods.
fPercentFadeToFailat what point do the notes fade on failure?
fReverseOffsetPixelsHow are the notes adjusted on Reverse?
fDrawDistanceAfterTargetsPixelshow much to draw after the receptors.
fDrawDistanceBeforeTargetsPixelshow much ot draw before the receptors.
fFadeInPercentOfDrawFarwhen to start fading in.

The documentation for this class was generated from the following files: