From db1fbb700c6d765814c94ad37adbf939a7d81d90 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 26 Dec 2021 23:57:20 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=84=B4=20=EC=84=A0=ED=83=9D=EA=B8=B0?= =?UTF-8?q?=EC=97=90=EC=84=9C=20'=ED=84=B4'=20=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=20=EC=8B=9C=20=EC=BB=A4=EB=A7=A8=EB=93=9C?= =?UTF-8?q?=EB=A1=9C=20=EC=84=A0=ED=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/PartialReservedCommand.vue | 12 ++++++++++++ hwe/ts/components/ChiefReservedCommand.vue | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/hwe/ts/PartialReservedCommand.vue b/hwe/ts/PartialReservedCommand.vue index ecede8c5..0a5b34b1 100644 --- a/hwe/ts/PartialReservedCommand.vue +++ b/hwe/ts/PartialReservedCommand.vue @@ -143,6 +143,7 @@ )" :key="turnIdx" class="turn_pad center" + @click="chooseCommand(turnObj.action)" > = {}; + for(const category of commandList){ + for(const command of category.values){ + invCommandMap[command.value] = command; + } + } + return { isDragSingle, isDragToggle, flippedMaxTurn, viewMaxTurn, rowGridStyle, + invCommandMap, }; }, mounted() { diff --git a/hwe/ts/components/ChiefReservedCommand.vue b/hwe/ts/components/ChiefReservedCommand.vue index 1f1b21c3..ecf8dcc3 100644 --- a/hwe/ts/components/ChiefReservedCommand.vue +++ b/hwe/ts/components/ChiefReservedCommand.vue @@ -63,6 +63,7 @@ v-for="(turnObj, turnIdx) in reservedCommandList" :key="turnIdx" class="turn_pad center" + @click="chooseCommand(turnObj.action)" > = {}; + for(const category of this.commandList){ + for(const command of category.values){ + invCommandMap[command.value] = command; + } + } + const searchModeOn = (localStorage.getItem(searchModeKey) ?? "0") != "0"; const emptyTurn: TurnObjWithTime[] = Array.from({ @@ -461,6 +472,7 @@ export default defineComponent({ rowGridStyle, isDragSingle: false, isDragToggle: false, + invCommandMap, }; }, mounted() {