浏览代码

Use aysnc

tags/0.0.7
bertieb 4 年前
父节点
当前提交
2d8452c6c7
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +2
    -2
      module.json
  2. +1
    -1
      scripts/wallconvert.js

+ 2
- 2
module.json 查看文件

@@ -3,10 +3,10 @@
"title": "Walls-to-Drawing",
"description": "Convert selected walls to a Drawing to make walls visible to players",
"authors": [{ "name": "BertieB", "email": "foundry@bertieb.org", "url": "https://bertieb.org" }],
"version": "0.0.6",
"version": "0.0.7",
"minimumCoreVersion": "0.6.5",
"scripts": [ "scripts/wallconvert.js" ],
"url": "https://git.bertieb.org/bertieb/foundry-walls-to-drawing",
"manifest": "https://git.bertieb.org/bertieb/foundry-walls-to-drawing/raw/branch/master/module.json",
"download": "https://git.bertieb.org/bertieb/foundry-walls-to-drawing/archive/0.0.6.zip"
"download": "https://git.bertieb.org/bertieb/foundry-walls-to-drawing/archive/0.0.7.zip"
}

+ 1
- 1
scripts/wallconvert.js 查看文件

@@ -44,7 +44,7 @@ Hooks.on('getSceneControlButtons', controls => {
"icon": "far fa-square",
"title": "Convert selected to Drawing",
"onClick": () => {
canvas.walls.controlled.forEach(function(wall) {
canvas.walls.controlled.forEach(async (wall) => {
await Drawing.create({
type: CONST.DRAWING_TYPES.POLYGON,
author: game.user._id,


正在加载...
取消
保存