like a lot of things lmaooo
This commit is contained in:
@ -45,19 +45,28 @@ class Option
|
||||
}
|
||||
private var description:String = "";
|
||||
private var display:String;
|
||||
private var acceptValues:Bool = false;
|
||||
public final function getDisplay():String
|
||||
{
|
||||
return display;
|
||||
}
|
||||
|
||||
public final function getAccept():Bool
|
||||
{
|
||||
return acceptValues;
|
||||
}
|
||||
|
||||
public final function getDescription():String
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
// Returns whether the label is to be updated.
|
||||
public function press():Bool { return throw "stub!"; }
|
||||
private function updateDisplay():String { return throw "stub!"; }
|
||||
public function left():Bool { return throw "stub!"; }
|
||||
public function right():Bool { return throw "stub!"; }
|
||||
}
|
||||
|
||||
class DFJKOption extends Option
|
||||
@ -150,24 +159,55 @@ class SongPositionOption extends Option
|
||||
}
|
||||
}
|
||||
|
||||
class EtternaModeOption extends Option
|
||||
class Judgement extends Option
|
||||
{
|
||||
|
||||
|
||||
public function new(desc:String)
|
||||
{
|
||||
super();
|
||||
description = desc;
|
||||
acceptValues = true;
|
||||
}
|
||||
|
||||
public override function press():Bool
|
||||
{
|
||||
FlxG.save.data.etternaMode = !FlxG.save.data.etternaMode;
|
||||
display = updateDisplay();
|
||||
return true;
|
||||
}
|
||||
|
||||
private override function updateDisplay():String
|
||||
{
|
||||
return "Etterna Mode " + (!FlxG.save.data.etternaMode ? "off" : "on");
|
||||
return "Safe Frames";
|
||||
}
|
||||
|
||||
override function left():Bool {
|
||||
Conductor.safeFrames -= 1;
|
||||
FlxG.save.data.frames = Conductor.safeFrames;
|
||||
|
||||
Conductor.safeZoneOffset = (Conductor.safeFrames / 60) * 1000;
|
||||
|
||||
OptionsMenu.versionShit.text = "Current Safe Frames: " + Conductor.safeFrames + " - Description - " + description +
|
||||
" - SIK: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset * 0.25, 0) +
|
||||
"ms GD: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset * 0.40, 0) +
|
||||
"ms BD: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset * 0.50, 0) +
|
||||
"ms SHT: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset * 0.70, 0) +
|
||||
"ms TOTAL: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset,0) + "ms";
|
||||
return true;
|
||||
}
|
||||
|
||||
override function right():Bool {
|
||||
Conductor.safeFrames += 1;
|
||||
FlxG.save.data.frames = Conductor.safeFrames;
|
||||
|
||||
Conductor.safeZoneOffset = (Conductor.safeFrames / 60) * 1000;
|
||||
|
||||
OptionsMenu.versionShit.text = "Current Safe Frames: " + Conductor.safeFrames + " - Description - " + description +
|
||||
" - SIK: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset * 0.25, 0) +
|
||||
"ms GD: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset * 0.40, 0) +
|
||||
"ms BD: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset * 0.50, 0) +
|
||||
"ms SHT: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset * 0.70, 0) +
|
||||
"ms TOTAL: " + OptionsMenu.truncateFloat(Conductor.safeZoneOffset,0) + "ms";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -199,6 +239,7 @@ class FPSCapOption extends Option
|
||||
{
|
||||
super();
|
||||
description = desc;
|
||||
acceptValues = true;
|
||||
}
|
||||
|
||||
public override function press():Bool
|
||||
@ -210,6 +251,28 @@ class FPSCapOption extends Option
|
||||
{
|
||||
return "FPS Cap";
|
||||
}
|
||||
|
||||
override function right():Bool {
|
||||
if (FlxG.save.data.fpsCap > 290)
|
||||
return false;
|
||||
FlxG.save.data.fpsCap = FlxG.save.data.fpsCap + 10;
|
||||
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(FlxG.save.data.fpsCap);
|
||||
|
||||
OptionsMenu.versionShit.text = "Current FPS Cap: " + FlxG.save.data.fpsCap + " - Description - " + description;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
override function left():Bool {
|
||||
if (FlxG.save.data.fpsCap < 60)
|
||||
return false;
|
||||
FlxG.save.data.fpsCap = FlxG.save.data.fpsCap - 10;
|
||||
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(FlxG.save.data.fpsCap);
|
||||
|
||||
OptionsMenu.versionShit.text = "Current FPS Cap: " + FlxG.save.data.fpsCap + " - Description - " + description;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -219,6 +282,7 @@ class ScrollSpeedOption extends Option
|
||||
{
|
||||
super();
|
||||
description = desc;
|
||||
acceptValues = true;
|
||||
}
|
||||
|
||||
public override function press():Bool
|
||||
@ -230,6 +294,33 @@ class ScrollSpeedOption extends Option
|
||||
{
|
||||
return "Scroll Speed";
|
||||
}
|
||||
|
||||
override function right():Bool {
|
||||
FlxG.save.data.scrollSpeed += 0.1;
|
||||
|
||||
if (FlxG.save.data.scrollSpeed < 1)
|
||||
FlxG.save.data.scrollSpeed = 1;
|
||||
|
||||
if (FlxG.save.data.scrollSpeed > 10)
|
||||
FlxG.save.data.scrollSpeed = 10;
|
||||
|
||||
OptionsMenu.versionShit.text = "Current Scroll Speed: " + OptionsMenu.truncateFloat(FlxG.save.data.scrollSpeed,1) + " - Description - " + description;
|
||||
return true;
|
||||
}
|
||||
|
||||
override function left():Bool {
|
||||
FlxG.save.data.scrollSpeed -= 0.1;
|
||||
|
||||
if (FlxG.save.data.scrollSpeed < 1)
|
||||
FlxG.save.data.scrollSpeed = 1;
|
||||
|
||||
if (FlxG.save.data.scrollSpeed > 10)
|
||||
FlxG.save.data.scrollSpeed = 10;
|
||||
|
||||
|
||||
OptionsMenu.versionShit.text = "Current Scroll Speed: " + OptionsMenu.truncateFloat(FlxG.save.data.scrollSpeed,1) + " - Description - " + description;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user