예제 #1
0
 protected override float GetStartX(BarRendererBase noteRenderer)
 {
     if (StartBeat.IsRest)
     {
         return(noteRenderer.GetBeatX(StartBeat));
     }
     else
     {
         return(noteRenderer.GetNoteX(StartBeat.MinNote));
     }
 }
예제 #2
0
 protected override float GetEndX(BarRendererBase noteRenderer)
 {
     if (EndBeat.IsRest)
     {
         return(noteRenderer.GetBeatX(EndBeat));
     }
     else
     {
         return(noteRenderer.GetNoteX(EndBeat.MinNote, false));
     }
 }
예제 #3
0
 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));
     }
 }
예제 #4
0
 protected override float GetStartX(BarRendererBase noteRenderer)
 {
     return(noteRenderer.GetBeatX(StartNote.Beat, BeatXPosition.MiddleNotes));
 }