Skip to content

Commit

Permalink
the j
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored May 31, 2024
1 parent 004fc05 commit a8cc8b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 21 deletions.
3 changes: 1 addition & 2 deletions compileData/haxelibs.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
},
{
"name": "flixel",
"type": "haxelib",
"version": "5.5.0"
"type": "haxelib"
},
{
"name": "flixel-addons",
Expand Down
5 changes: 0 additions & 5 deletions source/meta/data/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class ClientPrefs {
public static var middleScroll:Bool = false;
public static var opponentStrums:Bool = true;
public static var showFPS:Bool = true;
public static var fpsRainbow:Bool = false;
public static var flashing:Bool = true;
public static var globalAntialiasing:Bool = true;
public static var noteSplashes:Bool = true;
Expand Down Expand Up @@ -112,7 +111,6 @@ class ClientPrefs {
FlxG.save.data.middleScroll = middleScroll;
FlxG.save.data.opponentStrums = opponentStrums;
FlxG.save.data.showFPS = showFPS;
FlxG.save.data.fpsRainbow = fpsRainbow;
FlxG.save.data.flashing = flashing;
FlxG.save.data.globalAntialiasing = globalAntialiasing;
FlxG.save.data.noteSplashes = noteSplashes;
Expand Down Expand Up @@ -180,9 +178,6 @@ class ClientPrefs {
Main.fpsVar.visible = showFPS;
}
}
if(FlxG.save.data.fpsRainbow != null) {
fpsRainbow = FlxG.save.data.fpsRainbow;
}
if(FlxG.save.data.flashing != null) {
flashing = FlxG.save.data.flashing;
}
Expand Down
9 changes: 1 addition & 8 deletions source/meta/data/options/OptionsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1436,13 +1436,6 @@ class VisualsSubState extends BaseOptionsMenu
'bool',
true);
addOption(option);

var option:Option = new Option('Rainbow FPS',
'If checked, makes the FPS have a chroma effect.',
'fpsRainbow',
'bool',
false);
addOption(option);

var option:Option = new Option('FPS Counter',
'If unchecked, hides FPS Counter.',
Expand All @@ -1459,7 +1452,7 @@ class VisualsSubState extends BaseOptionsMenu
'None',
['None', 'Deuteranopia', 'Protanopia', 'Tritanopia']);
addOption(option);
option.onChange = () -> meta.Colorblind.updateFilter();
option.onChange = () -> Colorblind.updateFilter();

var option:Option = new Option('Simple Main Menu',
'Just a simple version of the Main Menu for low-end users.',
Expand Down
12 changes: 6 additions & 6 deletions source/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1849,8 +1849,8 @@ class PlayState extends MusicBeatState
FlxG.sound.music.pitch = value;
}
playbackRate = value;
FlxG.animationTimeScale = value;
trace('Anim speed: ' + FlxG.animationTimeScale);
FlxG.timeScale = value;
trace('Anim speed: ' + FlxG.timeScale);
Conductor.safeZoneOffset = (ClientPrefs.safeFrames / 60) * 1000 * value;
setOnLuas('playbackRate', playbackRate);
return value;
Expand Down Expand Up @@ -4080,7 +4080,7 @@ class PlayState extends MusicBeatState
{
var ret:Dynamic = callOnLuas('onGameOver', [], false);
if(ret != FunkinLua.Function_Stop) {
FlxG.animationTimeScale = 1;
FlxG.timeScale = 1;
boyfriend.stunned = true;
deathCounter++;

Expand Down Expand Up @@ -5810,6 +5810,8 @@ class PlayState extends MusicBeatState
}

override function destroy() {
instance = null;

for (lua in luaArray) {
lua.call('onDestroy', []);
lua.stop();
Expand All @@ -5833,12 +5835,10 @@ class PlayState extends MusicBeatState
FlxG.stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPress);
FlxG.stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyRelease);

FlxG.animationTimeScale = 1;
FlxG.timeScale = 1;
#if FLX_PITCH FlxG.sound.music.pitch = 1; #end

super.destroy();

instance = null;
}

public static function cancelMusicFadeTween() {
Expand Down

0 comments on commit a8cc8b9

Please sign in to comment.