fix results for gamepad
This commit is contained in:
parent
f611c5e255
commit
1ea1fc36a4
@ -82,7 +82,7 @@ class ResultsScreen extends FlxSubState
|
|||||||
comboText.scrollFactor.set();
|
comboText.scrollFactor.set();
|
||||||
add(comboText);
|
add(comboText);
|
||||||
|
|
||||||
contText = new FlxText(FlxG.width - 475,FlxG.height + 50,0,'Press ENTER to continue.');
|
contText = new FlxText(FlxG.width - 475,FlxG.height + 50,0,'Press ${KeyBinds.gamepad ? 'A' : 'ENTER'} to continue.');
|
||||||
contText.size = 28;
|
contText.size = 28;
|
||||||
contText.setBorderStyle(FlxTextBorderStyle.OUTLINE,FlxColor.BLACK,4,1);
|
contText.setBorderStyle(FlxTextBorderStyle.OUTLINE,FlxColor.BLACK,4,1);
|
||||||
contText.color = FlxColor.WHITE;
|
contText.color = FlxColor.WHITE;
|
||||||
@ -172,7 +172,7 @@ class ResultsScreen extends FlxSubState
|
|||||||
|
|
||||||
// keybinds
|
// keybinds
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.ENTER)
|
if (PlayerSettings.player1.controls.ACCEPT)
|
||||||
{
|
{
|
||||||
music.fadeOut(0.3);
|
music.fadeOut(0.3);
|
||||||
|
|
||||||
@ -199,12 +199,6 @@ class ResultsScreen extends FlxSubState
|
|||||||
FlxG.switchState(new FreeplayState());
|
FlxG.switchState(new FreeplayState());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.EIGHT)
|
|
||||||
{
|
|
||||||
graph.showInput = !graph.showInput;
|
|
||||||
graph.update();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.F1)
|
if (FlxG.keys.justPressed.F1)
|
||||||
{
|
{
|
||||||
trace(PlayState.rep.path);
|
trace(PlayState.rep.path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user