1
0
forked from noxious/client

Zone updating stuff

This commit is contained in:
2024-07-10 17:31:12 +02:00
parent c4c12179b8
commit a763405a4a
7 changed files with 106 additions and 34 deletions

View File

@ -23,6 +23,21 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
setZone(zone: Zone) {
this.zone = zone
},
setZoneName(name: string) {
if (this.zone) {
this.zone.name = name
}
},
setZoneWidth(width: number) {
if (this.zone) {
this.zone.width = width
}
},
setZoneHeight(height: number) {
if (this.zone) {
this.zone.height = height
}
},
setTool(tool: string) {
this.tool = tool
},