protected override float GetStartX(BarRendererBase noteRenderer) { if (StartBeat.IsRest) { return(noteRenderer.GetBeatX(StartBeat)); } else { return(noteRenderer.GetNoteX(StartBeat.MinNote)); } }
protected override float GetEndX(BarRendererBase noteRenderer) { if (EndBeat.IsRest) { return(noteRenderer.GetBeatX(EndBeat)); } else { return(noteRenderer.GetNoteX(EndBeat.MinNote, false)); } }
protected virtual float CalculateEndX(BarRendererBase endBeatRenderer, Beat endBeat, float cx, BeatXPosition endPosition) { if (endBeat == null) { return(cx + endBeatRenderer.X + X + Width); } else { return(cx + endBeatRenderer.X + endBeatRenderer.GetBeatX(endBeat, endPosition)); } }
protected override float GetStartX(BarRendererBase noteRenderer) { return(noteRenderer.GetBeatX(StartNote.Beat, BeatXPosition.MiddleNotes)); }