From afec2ca1618d4fde7008c2e462db0eba6f7d1076 Mon Sep 17 00:00:00 2001 From: neki-dev Date: Wed, 11 Oct 2023 23:05:08 +0200 Subject: [PATCH] Minor fixes --- src/game/scenes/screen/interface/notices/styles.ts | 8 ++++---- src/game/scenes/world/world.ts | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/game/scenes/screen/interface/notices/styles.ts b/src/game/scenes/screen/interface/notices/styles.ts index 45528ef9..4ae36b02 100644 --- a/src/game/scenes/screen/interface/notices/styles.ts +++ b/src/game/scenes/screen/interface/notices/styles.ts @@ -28,7 +28,7 @@ export const Item = styled.div<{ $type: NoticeType }>` padding: 8px 13px 9px 13px; - border-radius: 5px;; + border-radius: 5px; color: #fff; font-family: ${InterfaceFont.PIXEL_LABEL}; font-size: 12px; @@ -37,8 +37,8 @@ export const Item = styled.div<{ animation: ${animationOpacity} 0.2s ease-in; background: ${(props) => InterfaceBackgroundColor[props.$type]}; @media ${INTERFACE_MOBILE_BREAKPOINT} { - font-size: 14px; - line-height: 14px; - padding: 8px 15px; + font-size: 10px; + line-height: 10px; + padding: 7px 11px 8px 11px; } `; diff --git a/src/game/scenes/world/world.ts b/src/game/scenes/world/world.ts index 0c228f31..01d06728 100644 --- a/src/game/scenes/world/world.ts +++ b/src/game/scenes/world/world.ts @@ -412,6 +412,10 @@ export class World extends Scene implements IWorld { } this.input.keyboard?.on(CONTROL_KEY.TOGGLE_INDICATORS, () => { + if (this.game.state !== GameState.STARTED) { + return; + } + this.isIndicatorsActive = !this.isIndicatorsActive; this.getEntities(EntityType.BUILDING).forEach((building) => {