Various fixes
This commit is contained in:
@@ -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");
|
||||
@@ -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();
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user