fix steppy long note composition
This commit is contained in:
@@ -163,7 +163,7 @@ namespace WacK.Data.Chart
|
||||
curNote = new NotePlay(
|
||||
curTime, mb,
|
||||
chartNote.Item2.position, chartNote.Item2.size,
|
||||
type: NotePlayType.HoldMid,
|
||||
type: chartNote.Item2.value == "1" ? NotePlayType.HoldMid : NotePlayType.HoldMidInvis,
|
||||
holdIndex: chartNote.Item2.holdIdx,
|
||||
holdNext: chartNote.Item2.holdNextIdx
|
||||
);
|
||||
@@ -244,14 +244,14 @@ namespace WacK.Data.Chart
|
||||
{
|
||||
curHoldNote[np.holdIdx].points[curTime] = np;
|
||||
}
|
||||
else
|
||||
{
|
||||
// else
|
||||
// {
|
||||
if (!playNotes.ContainsKey(curTime))
|
||||
{
|
||||
playNotes[curTime] = new List<NotePlay>();
|
||||
}
|
||||
playNotes[curTime].Add(np);
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
// NoteEvent<float> -- tempo changes
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace WacK.Data.Chart
|
||||
Touch,
|
||||
HoldStart,
|
||||
HoldMid,
|
||||
HoldMidInvis,
|
||||
HoldEnd,
|
||||
Chain,
|
||||
SnapIn,
|
||||
|
||||
@@ -114,8 +114,8 @@ namespace WacK.Data.Mer
|
||||
notes[currentMeasure].Add((currentBeat, new MerNote(int.Parse(tokens[5]), int.Parse(tokens[6]), holdIndex: int.Parse(tokens[4]), holdNext: int.Parse(tokens[8]), type: MerType.HoldStart, bonus: true)));
|
||||
++playableNoteCount;
|
||||
break;
|
||||
case "10": // hold middle
|
||||
notes[currentMeasure].Add((currentBeat, new MerNote(int.Parse(tokens[5]), int.Parse(tokens[6]), holdIndex: int.Parse(tokens[4]), holdNext: int.Parse(tokens[8]), type: MerType.HoldMid)));
|
||||
case "10": // hold middle; value = should draw?
|
||||
notes[currentMeasure].Add((currentBeat, new MerNote(int.Parse(tokens[5]), int.Parse(tokens[6]), value: tokens[7],holdIndex: int.Parse(tokens[4]), holdNext: int.Parse(tokens[8]), type: MerType.HoldMid)));
|
||||
break;
|
||||
case "11": // hold end
|
||||
notes[currentMeasure].Add((currentBeat, new MerNote(int.Parse(tokens[5]), int.Parse(tokens[6]), holdIndex: int.Parse(tokens[4]), type: MerType.HoldEnd)));
|
||||
|
||||
Reference in New Issue
Block a user