Skip to content

Commit 223e837

Browse files
LasercarMAJigsaw77
authored andcommitted
Character icon clickable in playstate fix
1 parent 50c601a commit 223e837

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/funkin/ui/debug/charting/ChartEditorState.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,19 +2821,20 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
28212821

28222822
// Setup character dropdowns.
28232823
FlxMouseEvent.add(healthIconDad, function(_) {
2824-
if (!isCursorOverHaxeUI)
2824+
if (!isCursorOverHaxeUI && persistentDraw && persistentUpdate)
28252825
{
28262826
this.openCharacterDropdown(CharacterType.DAD, true);
28272827
}
28282828
});
28292829

28302830
FlxMouseEvent.add(healthIconBF, function(_) {
2831-
if (!isCursorOverHaxeUI)
2831+
if (!isCursorOverHaxeUI && persistentDraw && persistentUpdate)
28322832
{
28332833
this.openCharacterDropdown(CharacterType.BF, true);
28342834
}
28352835
});
28362836

2837+
28372838
buttonSelectOpponent = new Button();
28382839
buttonSelectOpponent.allowFocus = false;
28392840
buttonSelectOpponent.text = "Opponent"; // Default text.

0 commit comments

Comments
 (0)