keybindings and other shit

This commit is contained in:
Kade M
2021-06-04 15:56:12 -07:00
parent af3e47be07
commit 4226f95baf
7 changed files with 378 additions and 105 deletions

View File

@ -86,20 +86,13 @@ class DFJKOption extends Option
public override function press():Bool
{
FlxG.save.data.dfjk = !FlxG.save.data.dfjk;
if (FlxG.save.data.dfjk)
controls.setKeyboardScheme(KeyboardScheme.Solo, true);
else
controls.setKeyboardScheme(KeyboardScheme.Duo(true), true);
display = updateDisplay();
return true;
OptionsMenu.instance.openSubState(new KeyBindMenu());
return false;
}
private override function updateDisplay():String
{
return FlxG.save.data.dfjk ? "DFJK" : "WASD";
return "Key Bindings";
}
}