Skip to content

Commit

Permalink
chart editor window toggle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasercar committed Feb 15, 2025
1 parent 40d2a89 commit fdfdea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/funkin/ui/debug/charting/ChartEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2880,6 +2880,8 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
if (FlxG.keys.pressed.CONTROL)
{
this.setToolboxState(CHART_EDITOR_TOOLBOX_METADATA_LAYOUT, true);
// TODO: Figure out a way to prevent this from calling the on change event / opening the dialog twice
menubarItemToggleToolboxMetadata.selected = true;
}
else
{
Expand All @@ -2897,6 +2899,8 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
if (FlxG.keys.pressed.CONTROL)
{
this.setToolboxState(CHART_EDITOR_TOOLBOX_DIFFICULTY_LAYOUT, true);
// TODO: Figure out a way to prevent this from calling the on change event / opening the dialog twice
menubarItemToggleToolboxDifficulty.selected = true;
}
else
{
Expand Down

0 comments on commit fdfdea7

Please sign in to comment.