add option for camera zooming
zoom zoom or no zoom
This commit is contained in:
@ -614,3 +614,23 @@ class BotPlay extends Option
|
||||
private override function updateDisplay():String
|
||||
return "BotPlay " + (FlxG.save.data.botplay ? "on" : "off");
|
||||
}
|
||||
|
||||
class CamZoomOption extends Option
|
||||
{
|
||||
public function new(desc:String)
|
||||
{
|
||||
super();
|
||||
description = desc;
|
||||
}
|
||||
public override function press():Bool
|
||||
{
|
||||
FlxG.save.data.camzoom = !FlxG.save.data.camzoom;
|
||||
display = updateDisplay();
|
||||
return true;
|
||||
}
|
||||
|
||||
private override function updateDisplay():String
|
||||
{
|
||||
return "Camera Zoom " + (!FlxG.save.data.camzoom ? "off" : "on");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user