1
0
forked from noxious/client

Fixed controls issues

This commit is contained in:
2024-07-21 23:29:47 +02:00
parent 338d4d312b
commit 016b8e082f
3 changed files with 69 additions and 37 deletions

View File

@ -1,5 +1,5 @@
import { defineStore } from 'pinia'
import { useGameStore } from '@/stores/game';
import { useGameStore } from '@/stores/game'
import type { Zone, Object, Tile, ZoneObject } from '@/types'
export const useZoneEditorStore = defineStore('zoneEditor', {
@ -63,9 +63,9 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
this.selectedObject = object
},
setSelectedZoneObject(zoneObject: ZoneObject) {
const gameStore = useGameStore(); // Access the gameStore
if (gameStore.isMovingCamera) return; // Step 2: Check isMovingCamera before proceeding
const gameStore = useGameStore() // Access the gameStore
if (gameStore.isMovingCamera) return // Step 2: Check isMovingCamera before proceeding
this.selectedZoneObject = zoneObject
},
setObjectDepth(depth: number) {