Skip to content

Commit

Permalink
Fuck You!! Clear Chart Button ADDED
Browse files Browse the repository at this point in the history
  • Loading branch information
poec987 committed Jun 27, 2024
1 parent 64c8c33 commit 2de20a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,15 @@ class ChartingState extends MusicBeatState
saveLevel();
});

var clearChart:FlxButton = new FlxButton(110, saveButton.y + 30, "Clear Chart", function()
{
for (i in 0..._song.notes.length) {
_song.notes[i].sectionNotes = [];
}

updateGrid();
});

var reloadSong:FlxButton = new FlxButton(saveButton.x + saveButton.width + 10, saveButton.y, "Reload Audio", function()
{
loadSong(_song.song);
Expand Down Expand Up @@ -304,6 +313,8 @@ class ChartingState extends MusicBeatState
tab_group_song.add(isGoodCheckbox);
tab_group_song.add(isPixelCheckbox);

tab_group_song.add(clearChart);

UI_box.addGroup(tab_group_song);
UI_box.scrollFactor.set();

Expand Down

0 comments on commit 2de20a1

Please sign in to comment.