Add walls to maps #100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Make a wall editor for the maps. Make it also sync with foundry's walls
Let me look at the existing tests, the Foundry proxy service, and the CreateMap window to understand conventions.
Now I have a good picture. Let me check the docs pages for maps and Foundry integration, then start implementing.
Now I have the full picture. Let me implement, starting with the backend model.
Now the
POST /wallsroute inroutes/map.js:Careful —
foundry-link.jsuses the JS built-inMap, so I must check hownote.jsimports the Map model:note.jsusesMap, butfoundry-link.jsuses the built-innew Map(), so I'll name the model import differently there. Now add the sync routes:Now the frontend service
MapWalls.js:Now update
MapViewerPane.vue. First the script imports and state:Now modify the pan handlers to support wall drawing:
Now the walls logic block — insert after the tokens section (after
handleActorEntry):Now add the hint element in the template (next to the drop hint):
Now the i18n strings —
campaigns.jsonin all three locales:Now the Foundry module. First the state variables at the top of
api.js:Refine
applyDragonrollWallsso unchanged documents are not written back at all:Now the test file:
Let me fix the module's name pairing to require the name to be unique, then rewrite the test harness issues:
Implementation is ready for review: #105
The automated implementation stopped because of an internal error. Please check the worker logs for details.