Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
neki-dev committed Oct 11, 2023
1 parent 4faaa1b commit afec2ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game/scenes/screen/interface/notices/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
`;
4 changes: 4 additions & 0 deletions src/game/scenes/world/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IBuilding>(EntityType.BUILDING).forEach((building) => {
Expand Down

0 comments on commit afec2ca

Please sign in to comment.