fix a BUG

This commit is contained in:
lunarcleint
2024-01-29 22:55:47 -07:00
parent 51b5e81590
commit 3585905450
2 changed files with 5 additions and 1 deletions
@@ -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);
@@ -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();