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() {