Started refactoring zone editor

This commit is contained in:
2024-10-17 02:32:39 +02:00
parent 2fad54fd26
commit 3765cfe5e9
13 changed files with 245 additions and 427 deletions

View File

@ -12,7 +12,7 @@ export type TeleportSettings = {
export const useZoneEditorStore = defineStore('zoneEditor', {
state: () => {
return {
active: false,
active: true,
zone: null as Zone | null,
tool: 'move',
drawMode: 'tile',
@ -114,8 +114,8 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
setTeleportSettings(teleportSettings: TeleportSettings) {
this.teleportSettings = teleportSettings
},
reset() {
// this.zone = null
reset(resetZone = false) {
if (resetZone) this.zone = null
this.zoneList = []
this.tileList = []
this.objectList = []