diff --git a/source/ChartingState.hx b/source/ChartingState.hx index cc93694e8..1832c6d00 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -242,6 +242,19 @@ class ChartingState extends MusicBeatState copySection(Std.int(stepperCopy.value)); }); + var clearSectionButton:FlxButton = new FlxButton(10, 150, "Clear", clearSection); + + var swapSection:FlxButton = new FlxButton(10, 170, "Swap section", function() + { + for (i in 0..._song.notes[curSection].sectionNotes.length) + { + var note = _song.notes[curSection].sectionNotes[i]; + note[1] = (note[1] + 4) % 8; + _song.notes[curSection].sectionNotes[i] = note; + updateGrid(); + } + }); + check_mustHitSection = new FlxUICheckBox(10, 30, null, null, "Must hit section", 100); check_mustHitSection.name = 'check_mustHit'; check_mustHitSection.checked = true; @@ -256,6 +269,8 @@ class ChartingState extends MusicBeatState tab_group_section.add(check_mustHitSection); tab_group_section.add(check_changeBPM); tab_group_section.add(copyButton); + tab_group_section.add(clearSectionButton); + tab_group_section.add(swapSection); UI_box.addGroup(tab_group_section); } @@ -722,6 +737,13 @@ class ChartingState extends MusicBeatState updateGrid(); } + function clearSection():Void + { + _song.notes[curSection].sectionNotes = []; + + updateGrid(); + } + function clearSong():Void { for (daSection in 0..._song.notes.length) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index 0f287a040..5b1afb628 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -13,6 +13,8 @@ import flixel.util.FlxColor; import io.newgrounds.NG; import lime.app.Application; +using StringTools; + class MainMenuState extends MusicBeatState { var curSelected:Int = 0; @@ -87,7 +89,7 @@ class MainMenuState extends MusicBeatState versionShit.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK); add(versionShit); - if (versionShit.text != NGio.GAME_VER && !OutdatedSubState.leftState) + if (versionShit.text.trim() != NGio.GAME_VER.trim() && !OutdatedSubState.leftState) { trace('OLD VERSION!');