Clear vector with escape
This commit is contained in:
parent
5575e9f103
commit
407bc28cc7
@ -15,6 +15,7 @@ function Commander(element,element_input)
|
|||||||
queue = input_str.split(";");
|
queue = input_str.split(";");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
queue = [];
|
||||||
queue.push(input_str)
|
queue.push(input_str)
|
||||||
}
|
}
|
||||||
run();
|
run();
|
||||||
|
@ -109,7 +109,6 @@ function Vector(rune)
|
|||||||
this.coordinates.push("M"+position.render());
|
this.coordinates.push("M"+position.render());
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
var offset = this.last_pos ? position.offset(this.last_pos) : position;
|
var offset = this.last_pos ? position.offset(this.last_pos) : position;
|
||||||
|
|
||||||
if(keyboard.shift_held == true && keyboard.alt_held == true){
|
if(keyboard.shift_held == true && keyboard.alt_held == true){
|
||||||
@ -131,4 +130,11 @@ function Vector(rune)
|
|||||||
this.passive(commander.cmd());
|
this.passive(commander.cmd());
|
||||||
this.last_pos = position;
|
this.last_pos = position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.key_escape = function()
|
||||||
|
{
|
||||||
|
if(this.layer){ this.layer.remove(this); }
|
||||||
|
this.coordinates = [];
|
||||||
|
this.last_pos = null;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user