some changes, + modcharts work
This commit is contained in:
parent
1f49941f54
commit
00d15a3cfb
@ -690,10 +690,6 @@ class ModchartState
|
||||
FlxG.camera.setFilters([new ShaderFilter(shaders[shaderIndex])]);
|
||||
});*/
|
||||
|
||||
|
||||
objectToLua(lua,PlayState.instance.camHUD);
|
||||
Lua.setglobal(lua,"fuckyou");
|
||||
|
||||
// default strums
|
||||
|
||||
for (i in 0...PlayState.strumLineNotes.length) {
|
||||
|
@ -70,7 +70,7 @@ class MusicBeatState extends FlxUIState
|
||||
else
|
||||
skippedFrames++;
|
||||
|
||||
if ((cast (Lib.current.getChildAt(0), Main)).getFPSCap != FlxG.save.data.fpsCap)
|
||||
if ((cast (Lib.current.getChildAt(0), Main)).getFPSCap != FlxG.save.data.fpsCap && FlxG.save.data.fpsCap <= 290)
|
||||
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(FlxG.save.data.fpsCap);
|
||||
|
||||
super.update(elapsed);
|
||||
|
@ -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;
|
||||
|
@ -1,5 +1,6 @@
|
||||
package;
|
||||
|
||||
import openfl.Lib;
|
||||
#if windows
|
||||
import llua.Lua;
|
||||
#end
|
||||
@ -189,6 +190,8 @@ class PauseSubState extends MusicBeatSubstate
|
||||
PlayState.luaModchart = null;
|
||||
}
|
||||
#end
|
||||
if (FlxG.save.data.fpsCap > 290)
|
||||
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(290);
|
||||
FlxG.switchState(new MainMenuState());
|
||||
}
|
||||
}
|
||||
|
@ -216,7 +216,9 @@ class PlayState extends MusicBeatState
|
||||
{
|
||||
instance = this;
|
||||
|
||||
|
||||
if (FlxG.save.data.fpsCap > 290)
|
||||
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(800);
|
||||
|
||||
if (FlxG.sound.music != null)
|
||||
FlxG.sound.music.stop();
|
||||
|
||||
@ -2316,6 +2318,9 @@ class PlayState extends MusicBeatState
|
||||
if (!loadRep)
|
||||
rep.SaveReplay();
|
||||
|
||||
if (FlxG.save.data.fpsCap > 290)
|
||||
(cast (Lib.current.getChildAt(0), Main)).setFPSCap(290);
|
||||
|
||||
#if windows
|
||||
if (luaModchart != null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user