|
@@ -94,21 +94,21 @@ class Atlas extends Resource {
|
|
case "rotate":
|
|
case "rotate":
|
|
if( v == "true" ) throw "Rotation not supported in atlas";
|
|
if( v == "true" ) throw "Rotation not supported in atlas";
|
|
case "xy":
|
|
case "xy":
|
|
- var vals = v.split(", ");
|
|
|
|
|
|
+ var vals = v.split(",");
|
|
tileX = Std.parseInt(vals[0]);
|
|
tileX = Std.parseInt(vals[0]);
|
|
- tileY = Std.parseInt(vals[1]);
|
|
|
|
|
|
+ tileY = Std.parseInt(StringTools.trim(vals[1]));
|
|
case "size":
|
|
case "size":
|
|
- var vals = v.split(", ");
|
|
|
|
|
|
+ var vals = v.split(",");
|
|
tileW = Std.parseInt(vals[0]);
|
|
tileW = Std.parseInt(vals[0]);
|
|
- tileH = Std.parseInt(vals[1]);
|
|
|
|
|
|
+ tileH = Std.parseInt(StringTools.trim(vals[1]));
|
|
case "offset":
|
|
case "offset":
|
|
- var vals = v.split(", ");
|
|
|
|
|
|
+ var vals = v.split(",");
|
|
tileDX = Std.parseInt(vals[0]);
|
|
tileDX = Std.parseInt(vals[0]);
|
|
- tileDY = Std.parseInt(vals[1]);
|
|
|
|
|
|
+ tileDY = Std.parseInt(StringTools.trim(vals[1]));
|
|
case "orig":
|
|
case "orig":
|
|
- var vals = v.split(", ");
|
|
|
|
|
|
+ var vals = v.split(",");
|
|
origW = Std.parseInt(vals[0]);
|
|
origW = Std.parseInt(vals[0]);
|
|
- origH = Std.parseInt(vals[1]);
|
|
|
|
|
|
+ origH = Std.parseInt(StringTools.trim(vals[1]));
|
|
case "index":
|
|
case "index":
|
|
index = Std.parseInt(v);
|
|
index = Std.parseInt(v);
|
|
if( index < 0 ) index = 0;
|
|
if( index < 0 ) index = 0;
|