From 4faaa1b3bdfc88e9481820063a0cae381cf315d6 Mon Sep 17 00:00:00 2001 From: neki-dev Date: Wed, 11 Oct 2023 21:20:55 +0200 Subject: [PATCH] Minor fixes --- src/game/scenes/menu/interface/content/controls/styles.ts | 8 +++++--- src/game/scenes/world/entities/building/building.ts | 2 +- .../scenes/world/entities/building/variants/ammunition.ts | 2 +- src/game/scenes/world/entities/crystal.ts | 4 ++++ 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/game/scenes/menu/interface/content/controls/styles.ts b/src/game/scenes/menu/interface/content/controls/styles.ts index 9037ddd3..c32bc1bc 100644 --- a/src/game/scenes/menu/interface/content/controls/styles.ts +++ b/src/game/scenes/menu/interface/content/controls/styles.ts @@ -5,7 +5,7 @@ import { InterfaceFont } from '~type/interface'; export const Wrapper = styled.div` display: flex; flex-direction: column; - gap: 15px; + gap: 17px; `; export const Control = styled.div` @@ -22,10 +22,12 @@ export const Keys = styled.div` export const Key = styled.div` color: #000; font-family: ${InterfaceFont.PIXEL_LABEL}; - font-size: 13px; - line-height: 13px; + font-size: 12px; + line-height: 12px; padding: 4px 7px 5px 7px; background: #fff; + box-shadow: 0 4px 0 #999; text-align: center; + margin-top: -3px; border-radius: 3px; `; diff --git a/src/game/scenes/world/entities/building/building.ts b/src/game/scenes/world/entities/building/building.ts index 80b150cb..3f4d0dd9 100644 --- a/src/game/scenes/world/entities/building/building.ts +++ b/src/game/scenes/world/entities/building/building.ts @@ -373,7 +373,7 @@ export class Building extends Phaser.GameObjects.Image implements IBuilding, ITi } private addIndicatorsContainer() { - this.indicators = this.scene.add.container(this.x - (LEVEL_TILE_SIZE.width / 4), this.y - 8); + this.indicators = this.scene.add.container(this.x - (LEVEL_TILE_SIZE.width / 4), this.y - 6); this.indicators.setDepth(WORLD_DEPTH_GRAPHIC); this.indicators.setActive(false); diff --git a/src/game/scenes/world/entities/building/variants/ammunition.ts b/src/game/scenes/world/entities/building/variants/ammunition.ts index fc013f67..0e7cccf4 100644 --- a/src/game/scenes/world/entities/building/variants/ammunition.ts +++ b/src/game/scenes/world/entities/building/variants/ammunition.ts @@ -57,7 +57,7 @@ export class BuildingAmmunition extends Building implements IBuildingAmmunition }); this.addIndicator({ - color: 0xaf9ae0, + color: 0xfcb97e, size: LEVEL_TILE_SIZE.width / 2, value: () => this.ammo / this.maxAmmo, }); diff --git a/src/game/scenes/world/entities/crystal.ts b/src/game/scenes/world/entities/crystal.ts index a42e2363..453ec7dd 100644 --- a/src/game/scenes/world/entities/crystal.ts +++ b/src/game/scenes/world/entities/crystal.ts @@ -81,6 +81,10 @@ export class Crystal extends Phaser.GameObjects.Image implements ICrystal, ITile private handlePointer() { this.on(Phaser.Input.Events.POINTER_OVER, () => { + if (this.scene.builder.isBuild) { + return; + } + this.addShader('OutlineShader', { size: 4.0, color: 0xffffff,