Skip to content

Commit

Permalink
Only display the Stage Editor in builds that enable it, and enable it…
Browse files Browse the repository at this point in the history
… by default (this re-enables the Stage Editor keybind).
  • Loading branch information
EliteMasterEric committed Dec 18, 2024
1 parent 4ce83b2 commit 7f8937d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project.hxp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ class Project extends HXProject {

// Should be false unless explicitly requested.
GITHUB_BUILD.apply(this, false);
FEATURE_STAGE_EDITOR.apply(this, false);
FEATURE_NEWGROUNDS.apply(this, false);
FEATURE_GHOST_TAPPING.apply(this, false);

Expand All @@ -471,6 +470,7 @@ class Project extends HXProject {
FEATURE_FUNKVIS.apply(this, true);
FEATURE_PARTIAL_SOUNDS.apply(this, true);
FEATURE_VIDEO_PLAYBACK.apply(this, true);
FEATURE_STAGE_EDITOR.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));
Expand Down
8 changes: 5 additions & 3 deletions source/funkin/ui/debug/DebugMenuSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ class DebugMenuSubState extends MusicBeatSubState
// Create each menu item.
// Call onMenuChange when the first item is created to move the camera .
#if FEATURE_CHART_EDITOR
onMenuChange(createItem("CHART EDITOR", openChartEditor));
createItem("CHART EDITOR", openChartEditor);
#end
// createItem("Input Offset Testing", openInputOffsetTesting);
createItem("CHARACTER SELECT", openCharSelect, true);
createItem("ANIMATION EDITOR", openAnimationEditor);
#if FEATURE_STAGE_EDITOR
createItem("STAGE EDITOR", openStageEditor);
#end
// createItem("Input Offset Testing", openInputOffsetTesting);
// createItem("CHARACTER SELECT", openCharSelect, true);
// createItem("TEST STICKERS", testStickers);
#if sys
createItem("OPEN CRASH LOG FOLDER", openLogFolder);
Expand Down

0 comments on commit 7f8937d

Please sign in to comment.