fix play here
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user