From cf9237c330ac776f54c3832cdd5e914dfc270e5f Mon Sep 17 00:00:00 2001 From: Spel0 <75626813+Spel0@users.noreply.github.com> Date: Fri, 13 Aug 2021 20:42:34 +0300 Subject: [PATCH] conversion --- source/ChartingState.hx | 4 +++- source/Section.hx | 1 + source/Song.hx | 7 +++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 9bd80f7..87512ca 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -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 }; diff --git a/source/Section.hx b/source/Section.hx index b4980d1..cd17e25 100644 --- a/source/Section.hx +++ b/source/Section.hx @@ -10,6 +10,7 @@ typedef SwagSection = var mustHitSection:Bool; var bpm:Float; var changeBPM:Bool; + var altAnim:Bool; var p1AltAnim:Bool; var p2AltAnim:Bool; } diff --git a/source/Song.hx b/source/Song.hx index 36cd923..00292c7 100644 --- a/source/Song.hx +++ b/source/Song.hx @@ -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; }