conversion

This commit is contained in:
Spel0 2021-08-13 20:42:34 +03:00
parent 4952cf8283
commit cf9237c330
3 changed files with 9 additions and 3 deletions

View File

@ -301,7 +301,7 @@ class ChartingState extends MusicBeatState
{
var renderer = new SectionRender(0,640 * awfgaw,GRID_SIZE);
if (_song.notes[awfgaw] == null)
_song.notes.push(newSection(16,true,false));
_song.notes.push(newSection(16,true,false,false));
renderer.section = _song.notes[awfgaw];
sectionRenderes.add(renderer);
@ -2699,6 +2699,7 @@ class ChartingState extends MusicBeatState
mustHitSection: true,
sectionNotes: [],
typeOfSection: 0,
altAnim: false,
p1AltAnim: false,
p2AltAnim: false
};
@ -2838,6 +2839,7 @@ class ChartingState extends MusicBeatState
mustHitSection: mustHitSection,
sectionNotes: [],
typeOfSection: 0,
altAnim: false,
p1AltAnim: p1AltAnim,
p2AltAnim: p2AltAnim
};

View File

@ -10,6 +10,7 @@ typedef SwagSection =
var mustHitSection:Bool;
var bpm:Float;
var changeBPM:Bool;
var altAnim:Bool;
var p1AltAnim:Bool;
var p2AltAnim:Bool;
}

View File

@ -125,7 +125,6 @@ class Song
if (song.eventObjects == null)
song.eventObjects = [];
for(i in song.eventObjects)
{
var name = Reflect.field(i,"name");
@ -176,7 +175,11 @@ class Song
// conversion stuff
for (section in swagShit.notes)
{
if (section.altAnim)
section.p1AltAnim = section.altAnim;
}
return swagShit;
}