Merge pull request #1651 from Lil-Parrot/Instant-Respawn-Option
Instant Respawn Option
This commit is contained in:
@ -307,6 +307,27 @@ class ResetButtonOption extends Option
|
||||
}
|
||||
}
|
||||
|
||||
class InstantRespawn extends Option
|
||||
{
|
||||
public function new(desc:String)
|
||||
{
|
||||
super();
|
||||
description = desc;
|
||||
}
|
||||
|
||||
public override function press():Bool
|
||||
{
|
||||
FlxG.save.data.InstantRespawn = !FlxG.save.data.InstantRespawn;
|
||||
display = updateDisplay();
|
||||
return true;
|
||||
}
|
||||
|
||||
private override function updateDisplay():String
|
||||
{
|
||||
return "Instant Respawn " + (!FlxG.save.data.InstantRespawn ? "off" : "on");
|
||||
}
|
||||
}
|
||||
|
||||
class FlashingLightsOption extends Option
|
||||
{
|
||||
public function new(desc:String)
|
||||
|
Reference in New Issue
Block a user