1
0
forked from noxious/client

Best undo/redo function across all map editor elements

This commit is contained in:
2025-02-10 16:02:38 -06:00
parent 0c450b24ed
commit 87ffc98cce
6 changed files with 145 additions and 102 deletions

View File

@ -43,12 +43,6 @@ export function useMapEditorComposable() {
}
}
const clearMap = () => {
if (!currentMap.value) return
currentMap.value.placedMapObjects = []
currentMap.value.mapEventTiles = []
}
const toggleActive = () => {
if (active.value) reset()
active.value = !active.value
@ -124,7 +118,6 @@ export function useMapEditorComposable() {
// Methods
loadMap,
updateProperty,
clearMap,
toggleActive,
setTool,
setDrawMode,