keybindings and other shit
This commit is contained in:
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user