forked from noxious/client
22 lines
887 B
Vue
22 lines
887 B
Vue
<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>
|