From 3585905450d7abf6c200167e5e9021345f2f14cb Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Mon, 29 Jan 2024 22:55:47 -0700 Subject: [PATCH] fix a BUG --- source/funkin/editors/charter/CharterEventTypeSelection.hx | 5 +++++ source/funkin/editors/charter/CharterStrumline.hx | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/funkin/editors/charter/CharterEventTypeSelection.hx b/source/funkin/editors/charter/CharterEventTypeSelection.hx index 82f51249..bb32f41e 100644 --- a/source/funkin/editors/charter/CharterEventTypeSelection.hx +++ b/source/funkin/editors/charter/CharterEventTypeSelection.hx @@ -34,6 +34,7 @@ class CharterEventTypeSelection extends UISubstateWindow { close(); callback(eventName); }, w); + button.autoAlpha = false; button.cameras = [buttonCameras]; buttons.push(cast add(button)); @@ -60,6 +61,10 @@ class CharterEventTypeSelection extends UISubstateWindow { override function update(elapsed:Float) { super.update(elapsed); + + for (button in buttons) + button.selectable = buttonsBG.hovered; + buttonCameras.zoom = subCam.zoom; buttonCameras.x = -subCam.scroll.x + Std.int(windowSpr.x+10); diff --git a/source/funkin/editors/charter/CharterStrumline.hx b/source/funkin/editors/charter/CharterStrumline.hx index ed90b0cd..b78bb5ae 100644 --- a/source/funkin/editors/charter/CharterStrumline.hx +++ b/source/funkin/editors/charter/CharterStrumline.hx @@ -38,7 +38,6 @@ class CharterStrumline extends UISprite { healthIcons = new FlxSpriteGroup(x, y); for (i=>icon in icons) { - trace(i); var healthIcon = new HealthIcon(icon); healthIcon.scale.x = healthIcon.scale.y = 0.6 - (icons.length / 20); healthIcon.updateHitbox();