fix play here

This commit is contained in:
KadeDeveloper
2021-08-13 16:05:06 -07:00
parent 73d5f068c3
commit c3020d9dff
2 changed files with 65 additions and 47 deletions

View File

@@ -1285,7 +1285,7 @@ class ChartingState extends MusicBeatState
FlxG.sound.music.stop();
if (!PlayState.isSM)
vocals.stop();
PlayState.startTime = lastUpdatedSection.startTime;
PlayState.startTime = _song.notes[curSection].startTime;
LoadingState.loadAndSwitchState(new PlayState());
});
@@ -1834,6 +1834,7 @@ class ChartingState extends MusicBeatState
{
if (i.overlaps(selectBox) && !i.charterSelected)
{
trace("seleting " + i.strumTime);
selectNote(i, false);
}
}
@@ -2225,7 +2226,7 @@ class ChartingState extends MusicBeatState
{
if (FlxG.keys.pressed.CONTROL)
{
selectNote(note);
selectNote(note, false);
}
else
{
@@ -2699,27 +2700,31 @@ class ChartingState extends MusicBeatState
selectedBoxes.members.remove(selectedBoxes.members[0]);
}
for (i in getSectionByTime(note.strumTime).sectionNotes)
for(sec in _song.notes)
{
if (i[0] == note.strumTime && i[1] == note.rawNoteData)
swagNum = 0;
for(i in sec.sectionNotes)
{
curSelectedNote = getSectionByTime(note.strumTime).sectionNotes[swagNum];
if (curSelectedNoteObject != null)
curSelectedNoteObject.charterSelected = false;
curSelectedNoteObject = note;
if (!note.charterSelected)
{
var box = new ChartingBox(note.x,note.y,note);
box.connectedNoteData = i;
selectedBoxes.add(box);
note.charterSelected = true;
curSelectedNoteObject.charterSelected = true;
}
}
if (i[0] == note.strumTime && i[1] == note.rawNoteData)
{
curSelectedNote = sec.sectionNotes[swagNum];
if (curSelectedNoteObject != null)
curSelectedNoteObject.charterSelected = false;
swagNum += 1;
curSelectedNoteObject = note;
if (!note.charterSelected)
{
var box = new ChartingBox(note.x,note.y,note);
box.connectedNoteData = i;
selectedBoxes.add(box);
note.charterSelected = true;
curSelectedNoteObject.charterSelected = true;
}
}
swagNum += 1;
}
}
updateNoteUI();