Skip to content

[BUGFIX] Close Chart Editor menubar dropdowns before playtest#7540

Open
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:fix/chart-editor-dropdown-stays-open
Open

[BUGFIX] Close Chart Editor menubar dropdowns before playtest#7540
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:fix/chart-editor-dropdown-stays-open

Conversation

@VICK-sys

@VICK-sys VICK-sys commented May 8, 2026

Copy link
Copy Markdown

Linked Issues

Closes #7533

Description

Top-bar dropdown menus (File, Edit, View, etc.) stayed open after pressing Enter to playtest from the chart editor. The dropdown panel was hidden during playtest, but it reappeared on return — and the menubar's internal selected-button state was stale, so clicking the same dropdown afterwards behaved incorrectly.

Dropdowns are added to Screen.instance (not the chart editor's own UI tree), so they survive the substate transition. The fix calls the menubar's internal hideCurrentMenu from testSongInPlayState, which both hides the panel and clears _currentMenu/_currentButton.selected — so every entry point (Enter, gamepad START, menubar Test → Playtest) leaves the menubar in a clean state.

Screenshots/Videos

Demo.Video.mp4

@github-actions github-actions Bot added pr: haxe PR modifies game code. size: small A small pull request with 10 or fewer changes. status: pending triage Awaiting review. labels May 8, 2026
@NotHyper-474 NotHyper-474 added type: minor bug Involves a minor bug or issue. topic: chart editor Related to the operation of the Chart Editor. labels May 8, 2026
@Hundrec Hundrec linked an issue May 9, 2026 that may be closed by this pull request
4 tasks
@Hundrec Hundrec changed the title fix: Close chart editor menubar dropdowns before playtest [BUGFIX] Close Chart Editor menubar dropdowns before playtest May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: small A small pull request with 10 or fewer changes. status: pending triage Awaiting review. topic: chart editor Related to the operation of the Chart Editor. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

Bug Report: Chart Editor dropdown stays open after playtesting

2 participants