This commit is contained in:
Cameron Taylor 2021-01-20 07:19:48 -05:00
parent 3382e4e974
commit 589378b6bc
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,6 @@
# RIGHT NOW THE MODS FOLDER DOES NOT WORK ENTIRELY JUST YET!!!
## THIS IS WORK IN PROGRESS!!!
# QUICK AND DIRTY MOD GUIDE # QUICK AND DIRTY MOD GUIDE
With the 0.2.6 update, I added a bit of a slightly nicer mod support backend. With the 0.2.6 update, I added a bit of a slightly nicer mod support backend.

View file

@ -663,12 +663,15 @@ class ChartingState extends MusicBeatState
} }
function changeNoteSustain(value:Float):Void function changeNoteSustain(value:Float):Void
{
if (curSelectedNote != null)
{ {
if (curSelectedNote[2] != null) if (curSelectedNote[2] != null)
{ {
curSelectedNote[2] += value; curSelectedNote[2] += value;
curSelectedNote[2] = Math.max(curSelectedNote[2], 0); curSelectedNote[2] = Math.max(curSelectedNote[2], 0);
} }
}
updateNoteUI(); updateNoteUI();
updateGrid(); updateGrid();
@ -796,6 +799,7 @@ class ChartingState extends MusicBeatState
function updateNoteUI():Void function updateNoteUI():Void
{ {
if (curSelectedNote != null)
stepperSusLength.value = curSelectedNote[2]; stepperSusLength.value = curSelectedNote[2];
} }