Update draw.js
Fixed the non working orientation and palette feature.
Dieser Commit ist enthalten in:
Ursprung
0324196b5d
Commit
d7ce7a2adf
@ -133,12 +133,12 @@ context.checkArgs(1, 3, "<image> <orientation> <palette>");
|
||||
|
||||
var f = context.getSafeOpenFile("drawings", argv[1], "png", ["png", "jpg", "jpeg", "bmp"]);
|
||||
var sess = context.remember();
|
||||
var upright = argv[2] === "v";
|
||||
var upright = argv[2] == "v";
|
||||
var colors = clothColors;
|
||||
if(argv[3] === "opt") {
|
||||
if(argv[3] == "opt") {
|
||||
colors = clothColorsOpt;
|
||||
player.print("Using optimized palette");
|
||||
} else if(argv[3] === "optHD") {
|
||||
} else if(argv[3] == "optHD") {
|
||||
colors = clothColorsOptHD;
|
||||
player.print("Using optimized HD palette");
|
||||
}
|
||||
@ -165,4 +165,4 @@ if (!f.exists()) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren