From f78645bb791947cc0ceb8b5d80a70e563fcfb7ea Mon Sep 17 00:00:00 2001 From: tekki mariani Date: Tue, 24 Mar 2026 17:12:30 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20seam=20between=20action=20?= =?UTF-8?q?tray=20and=20bar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tray bg now covers bar area (TRAY_H + BAR_H), actionBarBg is hidden while tray is open to avoid double-transparency artifacts. Co-Authored-By: Claude Sonnet 4.6 --- src/scenes/UIScene.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/scenes/UIScene.ts b/src/scenes/UIScene.ts index 9d12b43..d1c37e9 100644 --- a/src/scenes/UIScene.ts +++ b/src/scenes/UIScene.ts @@ -1255,12 +1255,13 @@ export class UIScene extends Phaser.Scene { this.actionTrayVisible = true this.actionTrayGroup.destroy(true) this.actionTrayGroup = this.add.group() + this.actionBarBg.setAlpha(0) const { width, height } = this.scale const trayY = height - UIScene.BAR_H - UIScene.TRAY_H - const bg = this.add.rectangle(0, trayY, width, UIScene.TRAY_H, 0x0d0d0d, this.uiOpacity) - .setOrigin(0, 0).setScrollFactor(0).setDepth(300) + const bg = this.add.rectangle(0, trayY, width, UIScene.TRAY_H + UIScene.BAR_H, 0x080808, this.uiOpacity) + .setOrigin(0, 0).setScrollFactor(0).setDepth(299) this.actionTrayGroup.add(bg) const buildings: { kind: BuildingType; emoji: string; label: string }[] = [ @@ -1305,6 +1306,7 @@ export class UIScene extends Phaser.Scene { this.actionTrayVisible = false this.actionTrayGroup.destroy(true) this.actionTrayGroup = this.add.group() + this.actionBarBg.setAlpha(1) } // ─── Resize ───────────────────────────────────────────────────────────────