clear up styleSheet be4 entering

This commit is contained in:
Kolo
2025-06-23 03:02:19 +08:00
committed by Hundrec
parent 3d3e2bd378
commit f9c1f7a5f7
@@ -71,6 +71,9 @@ class DebugMenuSubState extends MusicBeatSubState
#end
onMenuChange(items.members[0]);
FlxG.camera.focusOn(new FlxPoint(camFocusPoint.x, camFocusPoint.y + 500));
// Remove the "user" stylesheet to prevent components using incorrect style data when entering an editor.
haxe.ui.Toolkit.styleSheet.clear("user");
}
function onMenuChange(selected:TextMenuItem)