mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-05 06:14:36 +00:00
Fix issue where controller couldn't switch difficulties in Story Menu
This commit is contained in:
parent
b23ea58561
commit
66b45b526f
|
@ -344,6 +344,17 @@ class StoryMenuState extends MusicBeatState
|
|||
changeDifficulty(0);
|
||||
}
|
||||
|
||||
// TODO: Querying UI_RIGHT_P (justPressed) after UI_RIGHT always returns false. Fix it!
|
||||
if (controls.UI_RIGHT_P)
|
||||
{
|
||||
changeDifficulty(1);
|
||||
}
|
||||
|
||||
if (controls.UI_LEFT_P)
|
||||
{
|
||||
changeDifficulty(-1);
|
||||
}
|
||||
|
||||
if (controls.UI_RIGHT)
|
||||
{
|
||||
rightDifficultyArrow.animation.play('press');
|
||||
|
@ -362,16 +373,6 @@ class StoryMenuState extends MusicBeatState
|
|||
leftDifficultyArrow.animation.play('idle');
|
||||
}
|
||||
|
||||
if (controls.UI_RIGHT_P)
|
||||
{
|
||||
changeDifficulty(1);
|
||||
}
|
||||
|
||||
if (controls.UI_LEFT_P)
|
||||
{
|
||||
changeDifficulty(-1);
|
||||
}
|
||||
|
||||
if (FlxG.keys.justPressed.TAB && modeText.visible)
|
||||
{
|
||||
switchMode(!displayingModdedLevels);
|
||||
|
|
Loading…
Reference in a new issue