Fix: uiOpacity auf Stockpile und Action Bar vereinheitlicht (#39, #40) #43

Merged
claude merged 4 commits from fix/ui-opacity-panels into master 2026-03-24 17:14:50 +00:00
Showing only changes of commit f78645bb79 - Show all commits

View File

@@ -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 ───────────────────────────────────────────────────────────────