forked from noxious/client
Fixed controls issues
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user