mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-23 10:29:29 +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);
|
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)
|
if (controls.UI_RIGHT)
|
||||||
{
|
{
|
||||||
rightDifficultyArrow.animation.play('press');
|
rightDifficultyArrow.animation.play('press');
|
||||||
|
@ -362,16 +373,6 @@ class StoryMenuState extends MusicBeatState
|
||||||
leftDifficultyArrow.animation.play('idle');
|
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)
|
if (FlxG.keys.justPressed.TAB && modeText.visible)
|
||||||
{
|
{
|
||||||
switchMode(!displayingModdedLevels);
|
switchMode(!displayingModdedLevels);
|
||||||
|
|
Loading…
Reference in a new issue