diff --git a/src/components/utilities/Modal.vue b/src/components/utilities/Modal.vue index 0ad90ef..a8cbc68 100644 --- a/src/components/utilities/Modal.vue +++ b/src/components/utilities/Modal.vue @@ -1,8 +1,6 @@ diff --git a/src/components/utilities/zoneEditor/ZoneList.vue b/src/components/utilities/zoneEditor/ZoneList.vue new file mode 100644 index 0000000..14336d9 --- /dev/null +++ b/src/components/utilities/zoneEditor/ZoneList.vue @@ -0,0 +1,58 @@ + + + diff --git a/src/components/utilities/zoneEditor/ZoneSettings.vue b/src/components/utilities/zoneEditor/ZoneSettings.vue index 161a0b0..4258b1a 100644 --- a/src/components/utilities/zoneEditor/ZoneSettings.vue +++ b/src/components/utilities/zoneEditor/ZoneSettings.vue @@ -1,5 +1,5 @@ diff --git a/src/screens/Characters.vue b/src/screens/Characters.vue index 8a1c91d..6ca095a 100644 --- a/src/screens/Characters.vue +++ b/src/screens/Characters.vue @@ -32,7 +32,11 @@
- diff --git a/src/stores/zoneEditor.ts b/src/stores/zoneEditor.ts index 59389b7..b3d7c17 100644 --- a/src/stores/zoneEditor.ts +++ b/src/stores/zoneEditor.ts @@ -4,6 +4,8 @@ import type { Object, ZoneObject } from '@/types' export const useZoneEditorStore = defineStore('zoneEditor', { state: () => ({ active: true, + isZoneListModalShown: false, + isCreateZoneModalShown: false, name: '', width: 10, height: 10, @@ -21,6 +23,13 @@ export const useZoneEditorStore = defineStore('zoneEditor', { toggleActive() { this.active = !this.active }, + toggleZoneListModal() { + this.isZoneListModalShown = !this.isZoneListModalShown + this.isCreateZoneModalShown = false + }, + toggleCreateZoneModal() { + this.isCreateZoneModalShown = !this.isCreateZoneModalShown + }, setName(name: string) { this.name = name }, diff --git a/src/types.ts b/src/types.ts index 2a0aef0..29ceba8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -76,7 +76,6 @@ export type Zone = { width: number height: number tiles: any // Using 'any' for Json type, consider using a more specific type if possible - walls: any // Using 'any' for Json type, consider using a more specific type if possible zoneObjects: ZoneObject[] characters: Character[] chats: Chat[]