mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-22 12:55:13 -04:00
debugger fixes
This commit is contained in:
parent
57ac960850
commit
6e0f577d54
5 changed files with 15 additions and 15 deletions
|
@ -89,7 +89,7 @@ class InitState extends FlxState
|
||||||
//
|
//
|
||||||
// FLIXEL DEBUG SETUP
|
// FLIXEL DEBUG SETUP
|
||||||
//
|
//
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
// Disable using ~ to open the console (we use that for the Editor menu)
|
// Disable using ~ to open the console (we use that for the Editor menu)
|
||||||
FlxG.debugger.toggleKeys = [F2];
|
FlxG.debugger.toggleKeys = [F2];
|
||||||
|
|
||||||
|
@ -141,16 +141,15 @@ class InitState extends FlxState
|
||||||
FlxG.sound.music.pause();
|
FlxG.sound.music.pause();
|
||||||
FlxG.sound.music.time += FlxG.elapsed * 1000;
|
FlxG.sound.music.time += FlxG.elapsed * 1000;
|
||||||
});
|
});
|
||||||
|
#end
|
||||||
|
|
||||||
// Make errors and warnings less annoying.
|
// Make errors and warnings less annoying.
|
||||||
// TODO: Disable this so we know to fix warnings.
|
|
||||||
#if FORCE_DEBUG_VERSION
|
#if FORCE_DEBUG_VERSION
|
||||||
LogStyle.ERROR.openConsole = false;
|
LogStyle.ERROR.openConsole = false;
|
||||||
LogStyle.ERROR.errorSound = null;
|
LogStyle.ERROR.errorSound = null;
|
||||||
LogStyle.WARNING.openConsole = false;
|
LogStyle.WARNING.openConsole = false;
|
||||||
LogStyle.WARNING.errorSound = null;
|
LogStyle.WARNING.errorSound = null;
|
||||||
#end
|
#end
|
||||||
#end
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// FLIXEL TRANSITIONS
|
// FLIXEL TRANSITIONS
|
||||||
|
|
|
@ -90,6 +90,7 @@ class GameOverSubState extends MusicBeatSubState
|
||||||
{
|
{
|
||||||
animationSuffix = "";
|
animationSuffix = "";
|
||||||
musicSuffix = "";
|
musicSuffix = "";
|
||||||
|
blueBallSuffix = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
override public function create()
|
override public function create()
|
||||||
|
|
|
@ -168,7 +168,7 @@ class PauseSubState extends MusicBeatSubState
|
||||||
var downP = controls.UI_DOWN_P;
|
var downP = controls.UI_DOWN_P;
|
||||||
var accepted = controls.ACCEPT;
|
var accepted = controls.ACCEPT;
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
// to pause the game and get screenshots easy, press H on pause menu!
|
// to pause the game and get screenshots easy, press H on pause menu!
|
||||||
if (FlxG.keys.justPressed.H)
|
if (FlxG.keys.justPressed.H)
|
||||||
{
|
{
|
||||||
|
|
|
@ -638,7 +638,7 @@ class PlayState extends MusicBeatSubState
|
||||||
rightWatermarkText.cameras = [camHUD];
|
rightWatermarkText.cameras = [camHUD];
|
||||||
|
|
||||||
// Initialize some debug stuff.
|
// Initialize some debug stuff.
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
// Display the version number (and git commit hash) in the bottom right corner.
|
// Display the version number (and git commit hash) in the bottom right corner.
|
||||||
this.rightWatermarkText.text = Constants.VERSION;
|
this.rightWatermarkText.text = Constants.VERSION;
|
||||||
|
|
||||||
|
@ -907,7 +907,7 @@ class PlayState extends MusicBeatSubState
|
||||||
|
|
||||||
// Disable updates, preventing animations in the background from playing.
|
// Disable updates, preventing animations in the background from playing.
|
||||||
persistentUpdate = false;
|
persistentUpdate = false;
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
if (FlxG.keys.pressed.THREE)
|
if (FlxG.keys.pressed.THREE)
|
||||||
{
|
{
|
||||||
// TODO: Change the key or delete this?
|
// TODO: Change the key or delete this?
|
||||||
|
@ -918,7 +918,7 @@ class PlayState extends MusicBeatSubState
|
||||||
{
|
{
|
||||||
#end
|
#end
|
||||||
persistentDraw = false;
|
persistentDraw = false;
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
@ -1368,7 +1368,7 @@ class PlayState extends MusicBeatSubState
|
||||||
// Add the stage to the scene.
|
// Add the stage to the scene.
|
||||||
this.add(currentStage);
|
this.add(currentStage);
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
FlxG.console.registerObject('stage', currentStage);
|
FlxG.console.registerObject('stage', currentStage);
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
@ -1458,7 +1458,7 @@ class PlayState extends MusicBeatSubState
|
||||||
{
|
{
|
||||||
currentStage.addCharacter(girlfriend, GF);
|
currentStage.addCharacter(girlfriend, GF);
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
FlxG.console.registerObject('gf', girlfriend);
|
FlxG.console.registerObject('gf', girlfriend);
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
@ -1467,7 +1467,7 @@ class PlayState extends MusicBeatSubState
|
||||||
{
|
{
|
||||||
currentStage.addCharacter(boyfriend, BF);
|
currentStage.addCharacter(boyfriend, BF);
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
FlxG.console.registerObject('bf', boyfriend);
|
FlxG.console.registerObject('bf', boyfriend);
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
@ -1478,7 +1478,7 @@ class PlayState extends MusicBeatSubState
|
||||||
// Camera starts at dad.
|
// Camera starts at dad.
|
||||||
cameraFollowPoint.setPosition(dad.cameraFocusPoint.x, dad.cameraFocusPoint.y);
|
cameraFollowPoint.setPosition(dad.cameraFocusPoint.x, dad.cameraFocusPoint.y);
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
FlxG.console.registerObject('dad', dad);
|
FlxG.console.registerObject('dad', dad);
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
@ -2253,7 +2253,7 @@ class PlayState extends MusicBeatSubState
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
// 1: End the song immediately.
|
// 1: End the song immediately.
|
||||||
if (FlxG.keys.justPressed.ONE) endSong();
|
if (FlxG.keys.justPressed.ONE) endSong();
|
||||||
|
|
||||||
|
@ -2267,7 +2267,7 @@ class PlayState extends MusicBeatSubState
|
||||||
// 9: Toggle the old icon.
|
// 9: Toggle the old icon.
|
||||||
if (FlxG.keys.justPressed.NINE) iconP1.toggleOldIcon();
|
if (FlxG.keys.justPressed.NINE) iconP1.toggleOldIcon();
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
// PAGEUP: Skip forward two sections.
|
// PAGEUP: Skip forward two sections.
|
||||||
// SHIFT+PAGEUP: Skip forward twenty sections.
|
// SHIFT+PAGEUP: Skip forward twenty sections.
|
||||||
if (FlxG.keys.justPressed.PAGEUP) changeSection(FlxG.keys.pressed.SHIFT ? 20 : 2);
|
if (FlxG.keys.justPressed.PAGEUP) changeSection(FlxG.keys.pressed.SHIFT ? 20 : 2);
|
||||||
|
@ -2768,7 +2768,7 @@ class PlayState extends MusicBeatSubState
|
||||||
FlxG.camera.focusOn(cameraFollowPoint.getPosition());
|
FlxG.camera.focusOn(cameraFollowPoint.getPosition());
|
||||||
}
|
}
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
/**
|
/**
|
||||||
* Jumps forward or backward a number of sections in the song.
|
* Jumps forward or backward a number of sections in the song.
|
||||||
* Accounts for BPM changes, does not prevent death from skipped notes.
|
* Accounts for BPM changes, does not prevent death from skipped notes.
|
||||||
|
|
|
@ -3183,7 +3183,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
||||||
handleTestKeybinds();
|
handleTestKeybinds();
|
||||||
handleHelpKeybinds();
|
handleHelpKeybinds();
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
handleQuickWatch();
|
handleQuickWatch();
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue