Various fixes

This commit is contained in:
Devine Lu Linvega
2017-01-16 21:29:39 -07:00
parent 8b963e6283
commit a5a9fb3e6f
7 changed files with 13 additions and 19 deletions

View File

@@ -38,5 +38,4 @@ commander.query("# layer=background");
// commander.query("# #efefef");
commander.query("# layer=main");
commander.query("> 1 0,0 #ff0000");
commander.query("> 1 1,0 #ff0000");
commander.query("> 1 0,1 #ff0000");
commander.query("> 1 1,1 #ff0000");

View File

@@ -76,8 +76,7 @@ function Brush(rune)
this.widget_cursor = function()
{
var s = "> "+this.size+"<br />";
var s = "> "+this.size+" "+this.color.hex+"<br />";
for (i = 0; i < ronin.brush.pointers.length; i++) {
s += ronin.brush.pointers[i].widget();

View File

@@ -3,13 +3,15 @@ function FileSave(rune)
Module.call(this,rune);
this.parameters = [Any];
this.variables = {"format" : "png"};
this.variables = {"format" : "[png/jpg]"};
this.docs = "Creates a new window with a image of the resulting canvas in the specified format.";
this.active = function(cmd)
{
var d = null;
if(cmd.variable("format").value == "jpg"){
if(cmd.variable("format") && cmd.variable("format").value == "jpg"){
var d = ronin.surface.active_layer.element.toDataURL('image/jpeg');
}
else{

View File

@@ -63,7 +63,7 @@ function Help(rune)
html += "```\n# Light\n> 1,1;> 2,2;> 3,3;> 4,4\n# Hard\n> 2,2;> 4,4;> 6,6;> 8,8\n# Symmetric Light\n> 1,1 600x;> 2,2 600x;> 3,3 600x;> 4,4 600x\n```\n";
html += "## Templates\n";
html += "### Watermark\n";
html += "```\n# 1280x800 ; / ../assets/photo.jpg 1280x 0,0 ; / assets/logo.png 60x60 20,720\n```\n";
html += "```\n# 1280x720 ; / ../assets/photo.jpg 1280x 0,0 ; / ../assets/logo.png 60x60 20,640\n```\n";
return html;
}