forked from noxious/client
Tile asset management 90% done
This commit is contained in:
20
src/stores/gmPanel.ts
Normal file
20
src/stores/gmPanel.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import type { Character } from '@/types'
|
||||
import config from '@/config'
|
||||
|
||||
export const useGmPanelStore = defineStore('gmPanel', {
|
||||
state: () => ({
|
||||
isOpen: false,
|
||||
}),
|
||||
actions: {
|
||||
toggle() {
|
||||
this.isOpen = !this.isOpen
|
||||
},
|
||||
open() {
|
||||
this.isOpen = true
|
||||
},
|
||||
close() {
|
||||
this.isOpen = false
|
||||
},
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user