1
0
forked from noxious/client

Added eraser to tool check

This commit is contained in:
Colin Kallemein 2025-01-31 23:01:19 +01:00
parent 67f83c3447
commit 4fba3678d6

View File

@ -109,7 +109,7 @@ defineExpose({ tileListShown, mapObjectListShown })
// drawMode // drawMode
function setDrawMode(value: string) { function setDrawMode(value: string) {
if (mapEditor.tool.value === 'paint' || mapEditor.tool.value === 'pencil') { if (mapEditor.tool.value === 'paint' || mapEditor.tool.value === 'pencil' || mapEditor.tool.value === 'eraser') {
emit('close-lists') emit('close-lists')
if (value === 'tile') emit('open-tile-list') if (value === 'tile') emit('open-tile-list')
if (value === 'map_object') emit('open-map-object-list') if (value === 'map_object') emit('open-map-object-list')