Fix ClickMove & RM animate export custom ratio

This commit is contained in:
oc 2018-08-02 00:45:33 +08:00
parent 1432e5d979
commit ccdc613afd
5 changed files with 7 additions and 5 deletions

View File

@ -237,7 +237,7 @@
<option value="functions">脚本编辑</option>
<option value="appendpic">追加素材</option>
</select>
<span style="font-size: 12px; margin-left: 10px">
<span style="font-size: 12px; margin-left: 5px">
<input type="radio" id="brushMod" name="brushMod" value="line" checked="checked" />画线
<input type="radio" id="brushMod2" name="brushMod" value="rectangle" />画矩形
</span>

View File

@ -286,7 +286,7 @@ control.prototype.resetStatus = function(hero, hard, floorId, route, maps, value
// 保存的Index
core.status.saveIndex = core.getLocalStorage('saveIndex2', 1);
core.status.automaticRoute.clickMoveDirectly = core.getLocalStorage('clickMoveDirectly', false);
core.status.automaticRoute.clickMoveDirectly = core.getLocalStorage('clickMoveDirectly', true);
if (core.isset(values))
core.values = core.clone(values);

View File

@ -104,7 +104,7 @@ function core() {
'cursorX': null,
'cursorY': null,
"moveDirectly": false,
'clickMoveDirectly': false,
'clickMoveDirectly': true,
},
// 按下键的时间:为了判定双击

View File

@ -266,8 +266,10 @@ maps.prototype.canMoveDirectly = function (destX,destY) {
if (fromX==destX&&fromY==destY) return 0;
// 可以无视起点事件
// if (core.getBlock(fromX,fromY)!=null||core.status.checkBlock.damage[13*fromX+fromY]>0)
// return -1;
var nowBlockId = core.getBlockId(fromX, fromY);
if ((nowBlockId!=null&&nowBlockId!='upFloor'&&nowBlockId!='downFloor')
||core.status.checkBlock.damage[13*fromX+fromY]>0)
return -1;
// BFS
var visited=[], queue=[];

Binary file not shown.