forked from noxious/client
Added eraser to tool check
This commit is contained in:
parent
67f83c3447
commit
4fba3678d6
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user