Major refractor, cleaning and improvements.

This commit is contained in:
2024-08-24 03:07:48 +02:00
parent 6c44821ebb
commit bdc2ba35c9
33 changed files with 188 additions and 298 deletions

View File

@ -0,0 +1,21 @@
<template>
<Modal :isModalOpen="true" :closable="false" :is-resizable="false" :modal-width="200" :modal-height="160">
<template #modalHeader>
<h3 class="m-0 font-medium shrink-0">GM tools</h3>
</template>
<template #modalBody>
<div class="content flex flex-col gap-2.5 m-4 h-20">
<button class="btn-cyan py-1.5 px-4 w-full" type="button" @click="gameStore.toggleGmPanel()">Toggle GM panel</button>
<button class="btn-cyan py-1.5 px-4 w-full" type="button" @click="() => zoneEditorStore.toggleActive()">Zone manager</button>
</div>
</template>
</Modal>
</template>
<script setup lang="ts">
import Modal from '@/components/utilities/Modal.vue'
import { useZoneEditorStore } from '@/stores/zoneEditor'
import { useGameStore } from '@/stores/game'
const zoneEditorStore = useZoneEditorStore()
const gameStore = useGameStore()
</script>