some changes, + modcharts work

This commit is contained in:
Kade M
2021-05-08 18:26:38 -07:00
parent 1f49941f54
commit 00d15a3cfb
5 changed files with 18 additions and 9 deletions

View File

@ -329,18 +329,23 @@ class FPSCapOption extends Option
override function right():Bool {
if (FlxG.save.data.fpsCap >= 290)
FlxG.save.data.fpsCap = 2000; // set it really high lol, I mean. if you hit that cap, it really doesn't do much lol.
{
FlxG.save.data.fpsCap = 800; // set it really high lol, I mean. if you hit that cap, it really doesn't do much lol.
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(290);
}
else
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;
OptionsMenu.versionShit.text = "Current FPS Cap: " + (FlxG.save.data.fpsCap > 290 ? "Unlimited (In Gameplay)" : FlxG.save.data.fpsCap) + " - Description - " + description;
return true;
}
override function left():Bool {
if (FlxG.save.data.fpsCap < 60)
if (FlxG.save.data.fpsCap > 290)
FlxG.save.data.fpsCap = 290;
else if (FlxG.save.data.fpsCap < 60)
FlxG.save.data.fpsCap = Application.current.window.displayMode.refreshRate;
else
FlxG.save.data.fpsCap = FlxG.save.data.fpsCap - 10;