Colors by quantization option & hud arrows code cleanup

-Added an option to make the colors of the arrows depend on their quantization instead of their direction (still needs to be adjusted to work on changing BPMs)

-Cleaned up the load code for the hud (static) arrow's animations

-Re ordered some appearance options
This commit is contained in:
sperez
2021-07-10 23:22:54 -04:00
parent 2897fdc489
commit 9e1db7155c
5 changed files with 83 additions and 82 deletions

View File

@@ -244,6 +244,26 @@ class DistractionsAndEffectsOption extends Option
}
}
class StepManiaOption extends Option
{
public function new(desc:String)
{
super();
description = desc;
}
public override function press():Bool
{
FlxG.save.data.stepMania = !FlxG.save.data.stepMania;
display = updateDisplay();
return true;
}
private override function updateDisplay():String
{
return "Colors by quantization " + (!FlxG.save.data.stepMania ? "off" : "on");
}
}
class ResetButtonOption extends Option
{
public function new(desc:String)
@@ -833,6 +853,7 @@ class ResetSettings extends Option
FlxG.save.data.strumline = null;
FlxG.save.data.customStrumLine = null;
FlxG.save.data.camzoom = null;
FlxG.save.data.stepMania = null;
KadeEngineData.initSave();
confirm = false;
trace('All settings have been reset');