forked from noxious/client
32 lines
1.4 KiB
Vue
32 lines
1.4 KiB
Vue
<template>
|
|
<Modal :isModalOpen="gameStore.uiSettings.isGmPanelOpen" @modal:close="() => gameStore.toggleGmPanel()" :modal-width="1000" :modal-height="650" :is-full-screen="true" :bg-style="'dark'">
|
|
<template #modalHeader>
|
|
<div class="flex gap-1.5 flex-wrap">
|
|
<button @mousedown.stop class="btn-cyan py-1.5 px-4 min-w-24">General</button>
|
|
<button @mousedown.stop class="btn-cyan py-1.5 px-4 min-w-24">Users</button>
|
|
<button @mousedown.stop class="btn-cyan py-1.5 px-4 min-w-24">Chats</button>
|
|
<button @mousedown.stop class="btn-cyan active py-1.5 px-4 min-w-24">Asset manager</button>
|
|
<button class="btn-cyan py-1.5 px-4 min-w-24" type="button" @click="() => zoneEditorStore.toggleActive()">Map editor</button>
|
|
</div>
|
|
</template>
|
|
<template #modalBody>
|
|
<div class="h-full margin-0">
|
|
<AssetManager v-if="toggle == 'asset-manager'" />
|
|
</div>
|
|
</template>
|
|
</Modal>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
import Modal from '@/components/utilities/Modal.vue'
|
|
import AssetManager from '@/components/gameMaster/assetManager/AssetManager.vue'
|
|
import { useGameStore } from '@/stores/gameStore'
|
|
import { useZoneEditorStore } from '@/stores/zoneEditorStore'
|
|
|
|
const gameStore = useGameStore()
|
|
const zoneEditorStore = useZoneEditorStore()
|
|
|
|
let toggle = ref('asset-manager')
|
|
</script>
|