fix some bugs
This commit is contained in:
parent
f55c2c14d8
commit
b4ba8403e0
@ -84,6 +84,9 @@ class KadeEngineData
|
||||
if (FlxG.save.data.camzoom == null)
|
||||
FlxG.save.data.camzoom = true;
|
||||
|
||||
if (FlxG.save.data.scoreScreen == null)
|
||||
FlxG.save.data.scoreScreen = true;
|
||||
|
||||
Conductor.recalculateTimings();
|
||||
PlayerSettings.player1.controls.loadKeyBinds();
|
||||
KeyBinds.keyCheck();
|
||||
|
@ -338,6 +338,27 @@ class FPSOption extends Option
|
||||
}
|
||||
}
|
||||
|
||||
class ScoreScreen extends Option
|
||||
{
|
||||
public function new(desc:String)
|
||||
{
|
||||
super();
|
||||
description = desc;
|
||||
}
|
||||
|
||||
public override function press():Bool
|
||||
{
|
||||
FlxG.save.data.scoreScreen = !FlxG.save.data.scoreScreen;
|
||||
return true;
|
||||
}
|
||||
|
||||
private override function updateDisplay():String
|
||||
{
|
||||
return (FlxG.save.data.scoreScreen ? "Show Score Screen" : "No Score Screen");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
class FPSCapOption extends Option
|
||||
|
@ -57,7 +57,8 @@ class OptionsMenu extends MusicBeatState
|
||||
#end
|
||||
new FlashingLightsOption("Toggle flashing lights that can cause epileptic seizures and strain."),
|
||||
new WatermarkOption("Enable and disable all watermarks from the engine."),
|
||||
new BotPlay("Showcase your charts and mods with autoplay.")
|
||||
new BotPlay("Showcase your charts and mods with autoplay."),
|
||||
new ScoreScreen("Show the score screen after the end of a song")
|
||||
])
|
||||
|
||||
];
|
||||
|
@ -2713,7 +2713,7 @@ class PlayState extends MusicBeatState
|
||||
private function popUpScore(daNote:Note):Void
|
||||
{
|
||||
var noteDiff:Float = -(daNote.strumTime - Conductor.songPosition);
|
||||
var wife:Float = EtternaFunctions.wife3(noteDiff, Conductor.timeScale);
|
||||
var wife:Float = EtternaFunctions.wife3(-noteDiff, Conductor.timeScale);
|
||||
// boyfriend.playAnim('hey');
|
||||
vocals.volume = 1;
|
||||
var placement:String = Std.string(combo);
|
||||
@ -3286,7 +3286,7 @@ class PlayState extends MusicBeatState
|
||||
remove(boyfriend);
|
||||
remove(dad);
|
||||
add(videoSprite);
|
||||
add(gf);
|
||||
add(gf);
|
||||
add(boyfriend);
|
||||
add(dad);
|
||||
|
||||
@ -3311,8 +3311,13 @@ class PlayState extends MusicBeatState
|
||||
misses++;
|
||||
|
||||
if (daNote != null)
|
||||
{
|
||||
if (!loadRep)
|
||||
saveNotes.push([daNote.strumTime,daNote.sustainLength,daNote.noteData,166 * Math.floor((PlayState.rep.replay.sf / 60) * 1000) / 166]);
|
||||
saveNotes.push([daNote.strumTime,0,direction,166 * Math.floor((PlayState.rep.replay.sf / 60) * 1000) / 166]);
|
||||
}
|
||||
else
|
||||
if (!loadRep)
|
||||
saveNotes.push([Conductor.songPosition,0,direction,166 * Math.floor((PlayState.rep.replay.sf / 60) * 1000) / 166]);
|
||||
|
||||
//var noteDiff:Float = Math.abs(daNote.strumTime - Conductor.songPosition);
|
||||
//var wife:Float = EtternaFunctions.wife3(noteDiff, FlxG.save.data.etternaMode ? 1 : 1.7);
|
||||
|
@ -109,8 +109,7 @@ class Ratings
|
||||
|
||||
if (FlxG.save.data.botplay && !PlayState.loadRep)
|
||||
return "sick"; // FUNNY
|
||||
|
||||
trace(noteDiff);
|
||||
|
||||
|
||||
var rating = checkRating(noteDiff,customTimeScale);
|
||||
|
||||
|
@ -180,7 +180,9 @@ class ResultsScreen extends FlxSubState
|
||||
{
|
||||
music.fadeOut(0.3);
|
||||
|
||||
|
||||
PlayState.loadRep = false;
|
||||
PlayState.rep = null;
|
||||
|
||||
if (PlayState.isStoryMode)
|
||||
{
|
||||
FlxG.sound.playMusic(Paths.music('freakyMenu'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user