forked from noxious/client
Changed User panel name, created panel toggles, WIP equipment panel
This commit is contained in:
@ -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')
|
||||
}
|
||||
|
Reference in New Issue
Block a user