1
0
forked from noxious/client

Added depth logics for objects

This commit is contained in:
2024-07-10 00:43:52 +02:00
parent abe58961ba
commit c4c12179b8
4 changed files with 18 additions and 4 deletions

View File

@ -11,6 +11,7 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
objectList: [] as Object[],
selectedTile: '',
selectedObject: null as Object | null,
objectDepth: 0,
isZoneListModalShown: false,
isCreateZoneModalShown: false,
isSettingsModalShown: false
@ -40,6 +41,9 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
setSelectedObject(object: any) {
this.selectedObject = object
},
setObjectDepth(depth: number) {
this.objectDepth = depth
},
toggleSettingsModal() {
this.isSettingsModalShown = !this.isSettingsModalShown
},
@ -57,6 +61,7 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
this.drawMode = 'tile'
this.selectedTile = ''
this.selectedObject = null
this.objectDepth = 0
this.isSettingsModalShown = false
this.isZoneListModalShown = false
this.isCreateZoneModalShown = false