mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-26 06:09:02 +00:00
Merge pull request #675 from FunkinCrew/bugfix/hud-hiding
Several tiny bug fixes
This commit is contained in:
commit
bfa0bafc6f
|
|
@ -251,6 +251,10 @@ class PolymodHandler
|
||||||
// Lib.load() can load malicious DLLs
|
// Lib.load() can load malicious DLLs
|
||||||
Polymod.blacklistImport('cpp.Lib');
|
Polymod.blacklistImport('cpp.Lib');
|
||||||
|
|
||||||
|
// `Unserializer`
|
||||||
|
// Unserializerr.DEFAULT_RESOLVER.resolveClass() can access blacklisted packages
|
||||||
|
Polymod.blacklistImport('Unserializer');
|
||||||
|
|
||||||
// `polymod.*`
|
// `polymod.*`
|
||||||
// You can probably unblacklist a module
|
// You can probably unblacklist a module
|
||||||
for (cls in ClassMacro.listClassesInPackage('polymod'))
|
for (cls in ClassMacro.listClassesInPackage('polymod'))
|
||||||
|
|
|
||||||
|
|
@ -578,7 +578,6 @@ class PlayState extends MusicBeatSubState
|
||||||
|
|
||||||
// TODO: Refactor or document
|
// TODO: Refactor or document
|
||||||
var generatedMusic:Bool = false;
|
var generatedMusic:Bool = false;
|
||||||
var perfectMode:Bool = false;
|
|
||||||
|
|
||||||
static final BACKGROUND_COLOR:FlxColor = FlxColor.BLACK;
|
static final BACKGROUND_COLOR:FlxColor = FlxColor.BLACK;
|
||||||
|
|
||||||
|
|
@ -2535,12 +2534,6 @@ class PlayState extends MusicBeatSubState
|
||||||
*/
|
*/
|
||||||
function debugKeyShit():Void
|
function debugKeyShit():Void
|
||||||
{
|
{
|
||||||
#if !debug
|
|
||||||
perfectMode = false;
|
|
||||||
#else
|
|
||||||
if (FlxG.keys.justPressed.H) camHUD.visible = !camHUD.visible;
|
|
||||||
#end
|
|
||||||
|
|
||||||
#if CHART_EDITOR_SUPPORTED
|
#if CHART_EDITOR_SUPPORTED
|
||||||
// Open the stage editor overlaying the current state.
|
// Open the stage editor overlaying the current state.
|
||||||
if (controls.DEBUG_STAGE)
|
if (controls.DEBUG_STAGE)
|
||||||
|
|
@ -2572,6 +2565,9 @@ class PlayState extends MusicBeatSubState
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#if (debug || FORCE_DEBUG_VERSION)
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
|
// H: Hide the HUD.
|
||||||
|
if (FlxG.keys.justPressed.H) camHUD.visible = !camHUD.visible;
|
||||||
|
|
||||||
// 1: End the song immediately.
|
// 1: End the song immediately.
|
||||||
if (FlxG.keys.justPressed.ONE) endSong(true);
|
if (FlxG.keys.justPressed.ONE) endSong(true);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ class Song implements IPlayStateScriptedClass implements IRegistryEntry<SongMeta
|
||||||
// If there are no difficulties in the metadata, there's a problem.
|
// If there are no difficulties in the metadata, there's a problem.
|
||||||
if (metadata.playData.difficulties.length == 0)
|
if (metadata.playData.difficulties.length == 0)
|
||||||
{
|
{
|
||||||
throw 'Song $id has no difficulties listed in metadata!';
|
trace('[WARN] Song $id has no difficulties listed in metadata!');
|
||||||
}
|
}
|
||||||
|
|
||||||
// There may be more difficulties in the chart file than in the metadata,
|
// There may be more difficulties in the chart file than in the metadata,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue