Clear all managed layers
This commit is contained in:
parent
99f1929618
commit
6266763f32
@ -75,6 +75,12 @@ function Keyboard()
|
|||||||
this.key_escape = function()
|
this.key_escape = function()
|
||||||
{
|
{
|
||||||
commander.hide();
|
commander.hide();
|
||||||
ronin.overlay.clear();
|
|
||||||
|
// Clear managed layers
|
||||||
|
Object.keys(ronin.surface.layers).forEach(function (key) {
|
||||||
|
if(ronin.surface.layers[key].manager){
|
||||||
|
ronin.surface.layers[key].clear();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ function Typographe(rune)
|
|||||||
{
|
{
|
||||||
this.click = true;
|
this.click = true;
|
||||||
ronin.overlay.draw(position);
|
ronin.overlay.draw(position);
|
||||||
commander.element_input.value = "& "+position.render();
|
commander.element_input.value = "& "+position.render()+" ";
|
||||||
commander.hint.update();
|
commander.hint.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user