clickMoveDirectly switch
This commit is contained in:
parent
10cf507016
commit
3308bb8e6a
@ -589,6 +589,12 @@ data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc =
|
|||||||
"_type": "checkbox",
|
"_type": "checkbox",
|
||||||
"_bool": "bool",
|
"_bool": "bool",
|
||||||
"_data": "是否允许瞬间移动"
|
"_data": "是否允许瞬间移动"
|
||||||
|
},
|
||||||
|
"clickMoveDirectly": {
|
||||||
|
"_leaf": true,
|
||||||
|
"_type": "checkbox",
|
||||||
|
"_bool": "bool",
|
||||||
|
"_data": "是否默认开启单击瞬移,用户可在菜单栏手动开关"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1591,8 +1591,8 @@ actions.prototype.clickSwitchs = function (x,y) {
|
|||||||
core.ui.drawSwitchs();
|
core.ui.drawSwitchs();
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
core.status.automaticRoute.clickMoveDirectly=!core.status.automaticRoute.clickMoveDirectly;
|
core.flags.clickMoveDirectly=!core.flags.clickMoveDirectly;
|
||||||
core.setLocalStorage('clickMoveDirectly', core.status.automaticRoute.clickMoveDirectly);
|
core.setLocalStorage('clickMoveDirectly', core.flags.clickMoveDirectly);
|
||||||
core.ui.drawSwitchs();
|
core.ui.drawSwitchs();
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
|
|||||||
@ -295,8 +295,6 @@ control.prototype.resetStatus = function(hero, hard, floorId, route, maps, value
|
|||||||
// 保存的Index
|
// 保存的Index
|
||||||
core.status.saveIndex = core.getLocalStorage('saveIndex2', 1);
|
core.status.saveIndex = core.getLocalStorage('saveIndex2', 1);
|
||||||
|
|
||||||
core.status.automaticRoute.clickMoveDirectly = core.getLocalStorage('clickMoveDirectly', true);
|
|
||||||
|
|
||||||
if (core.isset(values))
|
if (core.isset(values))
|
||||||
core.values = core.clone(values);
|
core.values = core.clone(values);
|
||||||
else core.values = core.clone(core.data.values);
|
else core.values = core.clone(core.data.values);
|
||||||
@ -457,7 +455,7 @@ control.prototype.setAutomaticRoute = function (destX, destY, stepPostfix) {
|
|||||||
if (core.timeout.turnHeroTimeout!=null) return;
|
if (core.timeout.turnHeroTimeout!=null) return;
|
||||||
|
|
||||||
// 单击瞬间移动
|
// 单击瞬间移动
|
||||||
if (core.status.automaticRoute.clickMoveDirectly && core.status.heroStop) {
|
if (core.flags.clickMoveDirectly && core.status.heroStop) {
|
||||||
if (core.control.tryMoveDirectly(destX, destY))
|
if (core.control.tryMoveDirectly(destX, destY))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -113,7 +113,6 @@ function core() {
|
|||||||
'cursorX': null,
|
'cursorX': null,
|
||||||
'cursorY': null,
|
'cursorY': null,
|
||||||
"moveDirectly": false,
|
"moveDirectly": false,
|
||||||
'clickMoveDirectly': true,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 按下键的时间:为了判定双击
|
// 按下键的时间:为了判定双击
|
||||||
@ -288,6 +287,8 @@ core.prototype.init = function (coreData, callback) {
|
|||||||
core.flags.displayEnemyDamage = core.getLocalStorage('enemyDamage', core.flags.displayEnemyDamage);
|
core.flags.displayEnemyDamage = core.getLocalStorage('enemyDamage', core.flags.displayEnemyDamage);
|
||||||
core.flags.displayCritical = core.getLocalStorage('critical', core.flags.displayCritical);
|
core.flags.displayCritical = core.getLocalStorage('critical', core.flags.displayCritical);
|
||||||
core.flags.displayExtraDamage = core.getLocalStorage('extraDamage', core.flags.displayExtraDamage);
|
core.flags.displayExtraDamage = core.getLocalStorage('extraDamage', core.flags.displayExtraDamage);
|
||||||
|
core.flags.clickMoveDirectly = core.getLocalStorage('clickMoveDirectly',
|
||||||
|
!(core.isset(core.flags.clickMoveDirectly) && !core.flags.clickMoveDirectly));
|
||||||
|
|
||||||
core.material.ground = new Image();
|
core.material.ground = new Image();
|
||||||
core.material.ground.src = "project/images/ground.png";
|
core.material.ground.src = "project/images/ground.png";
|
||||||
|
|||||||
@ -799,7 +799,7 @@ ui.prototype.drawSwitchs = function() {
|
|||||||
"怪物显伤: "+(core.flags.displayEnemyDamage ? "[ON]" : "[OFF]"),
|
"怪物显伤: "+(core.flags.displayEnemyDamage ? "[ON]" : "[OFF]"),
|
||||||
"临界显伤: "+(core.flags.displayCritical ? "[ON]" : "[OFF]"),
|
"临界显伤: "+(core.flags.displayCritical ? "[ON]" : "[OFF]"),
|
||||||
"领域显伤: "+(core.flags.displayExtraDamage ? "[ON]" : "[OFF]"),
|
"领域显伤: "+(core.flags.displayExtraDamage ? "[ON]" : "[OFF]"),
|
||||||
"单击瞬移: "+(core.status.automaticRoute.clickMoveDirectly ? "[ON]" : "[OFF]"),
|
"单击瞬移: "+(core.flags.clickMoveDirectly ? "[ON]" : "[OFF]"),
|
||||||
"新版存档: "+(core.platform.useLocalForage ? "[ON]":"[OFF]"),
|
"新版存档: "+(core.platform.useLocalForage ? "[ON]":"[OFF]"),
|
||||||
"查看工程",
|
"查看工程",
|
||||||
"下载离线版本",
|
"下载离线版本",
|
||||||
|
|||||||
@ -168,5 +168,6 @@ data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"portalWithoutTrigger": true,
|
"portalWithoutTrigger": true,
|
||||||
"canGoDeadZone": false,
|
"canGoDeadZone": false,
|
||||||
"enableMoveDirectly": true,
|
"enableMoveDirectly": true,
|
||||||
|
"clickMoveDirectly": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user