Changed User panel name, created panel toggles, WIP equipment panel

This commit is contained in:
2024-08-26 23:04:48 +02:00
parent c460fe8457
commit ba5d235da0
7 changed files with 119 additions and 51 deletions

View File

@ -14,7 +14,7 @@ export const useGameStore = defineStore('game', {
isGmPanelOpen: false,
isMovingCamera: false,
isChatOpen: false,
isInventoryOpen: false
isUserPanelOpen: false
}),
actions: {
setScreen(screen: string) {
@ -41,8 +41,8 @@ export const useGameStore = defineStore('game', {
toggleChat() {
this.isChatOpen = !this.isChatOpen
},
toggleInventory() {
this.isInventoryOpen = !this.isInventoryOpen
toggleUserPanel() {
this.isUserPanelOpen = !this.isUserPanelOpen
},
initConnection() {
this.connection = io(config.server_endpoint, {
@ -77,7 +77,7 @@ export const useGameStore = defineStore('game', {
this.isGmPanelOpen = false
this.isMovingCamera = false
this.isChatOpen = false
this.isInventoryOpen = false
this.isUserPanelOpen = false
useCookies().remove('token')
}