From 0818bd9c93e2cc9319ac97809596df6a5cabbdbf Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Mon, 31 Mar 2025 19:51:22 -0400 Subject: [PATCH] disable results screen debugger --- project.hxp | 7 +++++++ source/funkin/ui/debug/DebugMenuSubState.hx | 2 ++ 2 files changed, 9 insertions(+) diff --git a/project.hxp b/project.hxp index 8e7e48d0d..0db5b022e 100644 --- a/project.hxp +++ b/project.hxp @@ -259,6 +259,12 @@ class Project extends HXProject { */ static final FEATURE_STAGE_EDITOR:FeatureFlag = "FEATURE_STAGE_EDITOR"; + /** + * `-DFEATURE_RESULTS_DEBUG + * If this flag is enabled, a debug menu for Results screen will be accessible from the debug menu. + */ + static final FEATURE_RESULTS_DEBUG:FeatureFlag = "FEATURE_RESULTS_DEBUG"; + /** * `-DFEATURE_POLYMOD_MODS` * If this flag is enabled, the game will enable the Polymod library's support for atomic mod loading from the `./mods` folder. @@ -499,6 +505,7 @@ class Project extends HXProject { FEATURE_PARTIAL_SOUNDS.apply(this, true); FEATURE_VIDEO_PLAYBACK.apply(this, true); FEATURE_STAGE_EDITOR.apply(this, true); + FEATURE_RESULTS_DEBUG.apply(this, true); // Should be true on debug builds or if GITHUB_BUILD is enabled. FEATURE_DEBUG_FUNCTIONS.apply(this, isDebug() || GITHUB_BUILD.isEnabled(this)); diff --git a/source/funkin/ui/debug/DebugMenuSubState.hx b/source/funkin/ui/debug/DebugMenuSubState.hx index a48b67778..158aa8b48 100644 --- a/source/funkin/ui/debug/DebugMenuSubState.hx +++ b/source/funkin/ui/debug/DebugMenuSubState.hx @@ -60,7 +60,9 @@ class DebugMenuSubState extends MusicBeatSubState #if FEATURE_STAGE_EDITOR createItem("STAGE EDITOR", openStageEditor); #end + #if FEATURE_RESULTS_DEBUG createItem("RESULTS SCREEN DEBUG", openTestResultsScreen); + #end // createItem("Input Offset Testing", openInputOffsetTesting); // createItem("CHARACTER SELECT", openCharSelect, true); // createItem("TEST STICKERS", testStickers);