Fixed issue with export
This commit is contained in:
parent
19ff6ddcaa
commit
65cebd67ee
@ -15,6 +15,8 @@ function Cursor(rune)
|
|||||||
{
|
{
|
||||||
this.clear();
|
this.clear();
|
||||||
|
|
||||||
|
if(!pos){ return; }
|
||||||
|
|
||||||
var ctx = this.context();
|
var ctx = this.context();
|
||||||
var radius = ronin.cursor.size;
|
var radius = ronin.cursor.size;
|
||||||
|
|
||||||
|
@ -58,6 +58,9 @@ function Hint()
|
|||||||
if(ac.length > 0){
|
if(ac.length > 0){
|
||||||
this.el.innerHTML = this.pad(ronin.commander.input_el.value)+"<span class='autocomplete'>"+ac[0]+"</span> > Press tab to autocomplete."
|
this.el.innerHTML = this.pad(ronin.commander.input_el.value)+"<span class='autocomplete'>"+ac[0]+"</span> > Press tab to autocomplete."
|
||||||
}
|
}
|
||||||
|
else if(ronin.commander.input_el.value == "~"){
|
||||||
|
this.el.innerHTML = this.pad(ronin.commander.input_el.value)+" > Select a color."
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
this.el.innerHTML = this.pad(ronin.commander.input_el.value)+" > Unknown command."
|
this.el.innerHTML = this.pad(ronin.commander.input_el.value)+" > Unknown command."
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ function Keyboard()
|
|||||||
|
|
||||||
if(e.key == "tab" || e.keyCode == 9){
|
if(e.key == "tab" || e.keyCode == 9){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
ronin.cursor.update();
|
||||||
ronin.commander.autocomplete();
|
ronin.commander.autocomplete();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,6 @@ function Guide()
|
|||||||
if(!show){ return; }
|
if(!show){ return; }
|
||||||
var originalData = ronin.render.context().getImageData(0, 0, ronin.frame.width*2, ronin.frame.height*2);
|
var originalData = ronin.render.context().getImageData(0, 0, ronin.frame.width*2, ronin.frame.height*2);
|
||||||
var data = originalData.data;
|
var data = originalData.data;
|
||||||
|
|
||||||
for(var i = 0; i < data.length; i += 4) {
|
for(var i = 0; i < data.length; i += 4) {
|
||||||
var x = i % (ronin.frame.width*8)
|
var x = i % (ronin.frame.width*8)
|
||||||
var y = i / (ronin.frame.width*32)
|
var y = i / (ronin.frame.width*32)
|
||||||
@ -52,7 +51,6 @@ function Guide()
|
|||||||
data[i + 2] = y;
|
data[i + 2] = y;
|
||||||
data[i + 3] = 255;
|
data[i + 3] = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
ronin.layers.guide.context().putImageData(originalData, 0, 0);
|
ronin.layers.guide.context().putImageData(originalData, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,6 +24,10 @@ function Brush()
|
|||||||
ronin.hint.update();
|
ronin.hint.update();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this.methods.set_color = new Method("set_color","#ff0033","Set color",function(q){
|
||||||
|
ronin.cursor.color = q;
|
||||||
|
})
|
||||||
|
|
||||||
this.absolute_thickness = 0;
|
this.absolute_thickness = 0;
|
||||||
|
|
||||||
this.thickness = function(line)
|
this.thickness = function(line)
|
||||||
|
@ -15,7 +15,7 @@ function Frame()
|
|||||||
this.methods.rescale = new Method("rescale","0.5","Rescale canvas to float.",function(p){
|
this.methods.rescale = new Method("rescale","0.5","Rescale canvas to float.",function(p){
|
||||||
var new_size = {width:ronin.frame.width * p,height:ronin.frame.height * p};
|
var new_size = {width:ronin.frame.width * p,height:ronin.frame.height * p};
|
||||||
ronin.render.context().drawImage(ronin.render.to_img(),0,0,new_size.width * 2,new_size.height * 2);
|
ronin.render.context().drawImage(ronin.render.to_img(),0,0,new_size.width * 2,new_size.height * 2);
|
||||||
setTimeout(ronin.frame.methods.resize.run(new_size),2000)
|
setTimeout(function(){ ronin.frame.methods.resize.run(new_size);},1000)
|
||||||
});
|
});
|
||||||
|
|
||||||
this.methods.crop = new Method("crop","X,Y|WxH","Crop canvas to rect.",function(p){
|
this.methods.crop = new Method("crop","X,Y|WxH","Crop canvas to rect.",function(p){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user