Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/poec987/FNF-V3
Browse files Browse the repository at this point in the history
  • Loading branch information
x8c8r committed Jun 26, 2024
2 parents d99518e + a2832a9 commit 2685089
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions source/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -645,15 +645,17 @@ class ChartingState extends MusicBeatState
FlxG.switchState(new PlayState());
}

if (FlxG.keys.justPressed.E)
{
changeNoteSustain(Conductor.stepCrochet);
}
if (FlxG.keys.justPressed.Q)
{
changeNoteSustain(-Conductor.stepCrochet);
if (!noteTypeParamTextBox.hasFocus) {
if (FlxG.keys.justPressed.E)
{
changeNoteSustain(Conductor.stepCrochet);
}
if (FlxG.keys.justPressed.Q)
{
changeNoteSustain(-Conductor.stepCrochet);
}
}

if (FlxG.keys.justPressed.TAB)
{
if (FlxG.keys.pressed.SHIFT)
Expand All @@ -670,7 +672,7 @@ class ChartingState extends MusicBeatState
}
}

if (!typingShit.hasFocus)
if (!typingShit.hasFocus && !noteTypeParamTextBox.hasFocus)
{
if (FlxG.keys.justPressed.SPACE)
{
Expand Down Expand Up @@ -757,10 +759,13 @@ class ChartingState extends MusicBeatState
var shiftThing:Int = 1;
if (FlxG.keys.pressed.SHIFT)
shiftThing = 4;
if (FlxG.keys.justPressed.RIGHT || FlxG.keys.justPressed.D)
changeSection(curSection + shiftThing);
if (FlxG.keys.justPressed.LEFT || FlxG.keys.justPressed.A)
changeSection(curSection - shiftThing);

if (!noteTypeParamTextBox.hasFocus) {
if (FlxG.keys.justPressed.RIGHT || FlxG.keys.justPressed.D)
changeSection(curSection + shiftThing);
if (FlxG.keys.justPressed.LEFT || FlxG.keys.justPressed.A)
changeSection(curSection - shiftThing);
}

// HITSOUNDS
if (doHitSounds) {
Expand Down

0 comments on commit 2685089

Please sign in to comment.