Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowMario committed Oct 18, 2022
1 parent aa89c2f commit d208168
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions source/editors/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ class ChartingState extends MusicBeatState

#if !html5
sliderRate = new FlxUISlider(this, 'playbackSpeed', 120, 120, 0.5, 3, 150, null, 5, FlxColor.WHITE, FlxColor.BLACK);
sliderRate.name = 'Playback Rate';
sliderRate.nameLabel.text = 'Playback Rate';
tab_group_chart.add(sliderRate);
#end

Expand Down Expand Up @@ -1446,11 +1446,9 @@ class ChartingState extends MusicBeatState
}
else if (wname == 'note_susLength')
{
if(curSelectedNote != null && curSelectedNote[1] > -1) {
if(curSelectedNote != null && curSelectedNote[2] != null) {
curSelectedNote[2] = nums.value;
updateGrid();
} else {
sender.value = 0;
}
}
else if (wname == 'section_bpm')
Expand All @@ -1474,12 +1472,18 @@ class ChartingState extends MusicBeatState
else if(curSelectedNote != null)
{
if(sender == value1InputText) {
curSelectedNote[1][curEventSelected][1] = value1InputText.text;
updateGrid();
if(curSelectedNote[1][curEventSelected] != null)
{
curSelectedNote[1][curEventSelected][1] = value1InputText.text;
updateGrid();
}
}
else if(sender == value2InputText) {
curSelectedNote[1][curEventSelected][2] = value2InputText.text;
updateGrid();
if(curSelectedNote[1][curEventSelected] != null)
{
curSelectedNote[1][curEventSelected][2] = value2InputText.text;
updateGrid();
}
}
else if(sender == strumTimeInputText) {
var value:Float = Std.parseFloat(strumTimeInputText.text);
Expand Down Expand Up @@ -2771,11 +2775,11 @@ class ChartingState extends MusicBeatState
{
curSelectedNote = i;
curEventSelected = Std.int(curSelectedNote[1].length) - 1;
changeEventSelected();
break;
}
}
}
changeEventSelected();

updateGrid();
updateNoteUI();
Expand Down Expand Up @@ -2877,8 +2881,8 @@ class ChartingState extends MusicBeatState
_song.events.push([noteStrum, [[event, text1, text2]]]);
curSelectedNote = _song.events[_song.events.length - 1];
curEventSelected = 0;
changeEventSelected();
}
changeEventSelected();

if (FlxG.keys.pressed.CONTROL && noteData > -1)
{
Expand Down

0 comments on commit d208168

Please sign in to comment.