From 28f2a5bfe5b88cbfffbe6152d02092197af62bbb Mon Sep 17 00:00:00 2001 From: "DESKTOP-64JNFCF\\keyra" Date: Sat, 23 Dec 2023 14:11:24 +0900 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E3=81=AA=E3=82=8A=E9=A0=86=E3=81=AEUI?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/game-table-mask/game-table-mask.component.ts | 4 ++-- src/app/component/terrain/terrain.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/component/game-table-mask/game-table-mask.component.ts b/src/app/component/game-table-mask/game-table-mask.component.ts index f2b2b298..663adbe0 100644 --- a/src/app/component/game-table-mask/game-table-mask.component.ts +++ b/src/app/component/game-table-mask/game-table-mask.component.ts @@ -532,7 +532,7 @@ export class GameTableMaskComponent implements OnChanges, OnDestroy, AfterViewIn checkBox: 'check' } ), - { name: '重なり順', action: null, subActions: [ + (this.isLock ? null : { name: '重なり順', action: null, subActions: [ { name: 'マップマスクの一番上に', action: () => { if (!this.isLock) { @@ -552,7 +552,7 @@ export class GameTableMaskComponent implements OnChanges, OnDestroy, AfterViewIn disabled: this.isLock }], disabled: this.isLock - }, + }), ContextMenuSeparator, (!this.gameTableMask.isMine ? { diff --git a/src/app/component/terrain/terrain.component.ts b/src/app/component/terrain/terrain.component.ts index 8976f05a..a38b82da 100644 --- a/src/app/component/terrain/terrain.component.ts +++ b/src/app/component/terrain/terrain.component.ts @@ -315,7 +315,7 @@ export class TerrainComponent implements OnChanges, OnDestroy, AfterViewInit { checkBox: 'check' } ), - { name: `重なり順 ${this.height === 0 ? '' : ' (平面地形のみ)' }`, action: null, subActions: [ + (this.isLocked ? null : { name: `重なり順 ${this.height === 0 ? '' : ' (平面地形のみ)' }`, action: null, subActions: [ { name: '平面地形の一番上に', action: () => { if (!this.isLocked) { @@ -335,7 +335,7 @@ export class TerrainComponent implements OnChanges, OnDestroy, AfterViewInit { disabled: this.isLocked }], disabled: this.isLocked || this.height != 0 - }, + }), ContextMenuSeparator, { name: '傾斜', action: null, subActions: [ {