forked from noxious/client
Zone updating stuff
This commit is contained in:
@ -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
|
||||
},
|
||||
|
Reference in New Issue
Block a user