Skip to content

Commit e4c9cd3

Browse files
committed
Hide preview hbox, when selected ease without it lul
1 parent 1580031 commit e4c9cd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/funkin/ui/debug/charting/toolboxes/ChartEditorEventDataToolbox.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,12 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
360360
easeHBox.addComponent(easeGraphImage);
361361
easeHBox.addComponent(easeDotImage);
362362
target.addComponent(easeHBox);
363+
currentEaseHBox = easeHBox;
363364
updateEasePreview();
364365
}
365366
}
366367

368+
var currentEaseHBox:HBox = null;
367369
function updateEasePreview():Void
368370
{
369371
if (easeGraphImage == null || easeDotImage == null) return;
@@ -387,8 +389,10 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
387389
if (_graphBd == null || easeGraphImage.resource == null)
388390
{
389391
easeDotImage.resource = null;
392+
if (currentEaseHBox != null) currentEaseHBox.hidden = true;
390393
return;
391394
}
395+
if (currentEaseHBox != null) currentEaseHBox.hidden = false;
392396

393397
var dotSprites:Array<flixel.FlxSprite> = SongEventHelper.getOrCreateEaseDotSprites(key, 30, 3, 16);
394398
if (dotSprites == null || dotSprites.length == 0) return;

0 commit comments

Comments
 (0)