@@ -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 ───────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user