Remove starttime
This commit is contained in:
parent
5b34fbe47e
commit
c9fe2f6177
@ -780,12 +780,6 @@ actions.prototype.clickAction = function (x,y) {
|
|||||||
|
|
||||||
////// 自定义事件时,按下某个键的操作 //////
|
////// 自定义事件时,按下某个键的操作 //////
|
||||||
actions.prototype.keyDownAction = function (keycode) {
|
actions.prototype.keyDownAction = function (keycode) {
|
||||||
// 视为无效
|
|
||||||
var startTime = core.status.event.data.startTime||0;
|
|
||||||
if (startTime>0 && new Date().getTime()-startTime<250)
|
|
||||||
return;
|
|
||||||
core.status.event.data.startTime = 0;
|
|
||||||
|
|
||||||
if (core.status.event.data.type=='choices') {
|
if (core.status.event.data.type=='choices') {
|
||||||
var data = core.status.event.data.current;
|
var data = core.status.event.data.current;
|
||||||
var choices = data.choices;
|
var choices = data.choices;
|
||||||
|
|||||||
@ -344,7 +344,7 @@ events.prototype.doEvents = function (list, x, y, callback) {
|
|||||||
core.status.event = {'id': 'action', 'data': {
|
core.status.event = {'id': 'action', 'data': {
|
||||||
'list': [
|
'list': [
|
||||||
{"todo": core.clone(list), "total": core.clone(list), "condition": "false"}
|
{"todo": core.clone(list), "total": core.clone(list), "condition": "false"}
|
||||||
], 'x': x, 'y': y, 'callback': callback, 'startTime': new Date().getTime()
|
], 'x': x, 'y': y, 'callback': callback
|
||||||
}}
|
}}
|
||||||
|
|
||||||
// 停止勇士
|
// 停止勇士
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user